发送公告

master
gaojie 2019-04-26 17:21:36 +08:00
parent 704c99a97f
commit f82507eda2
3 changed files with 7 additions and 3 deletions

View File

@ -142,7 +142,6 @@ public class CdkInfoController {
for (CdkInfo cdkInfo :cdkInfoList){
cdkNumList.add(cdkInfo.getId());
}
System.out.println("downloadFile=>path="+path);
TXTUtils.writeToTxt(cdkNumList ,path);
File file = new File(path);
return TXTUtils.buildResponseEntity(file);

View File

@ -45,6 +45,7 @@ public class NoticeController {
String contentType = parameterMap.get("contentType");
String popType = parameterMap.get("popType");
String outline = parameterMap.get("outline");
String skipUrl = parameterMap.get("skipUrl");
String noticeTitle = parameterMap.get("noticeTitle");
String noticeContent = parameterMap.get("noticeContent");
String priorityLevel = parameterMap.get("priorityLevel");
@ -59,6 +60,10 @@ public class NoticeController {
cNotice.setServerId(Integer.parseInt(serverId));
cNotice.setContentType(Integer.parseInt(contentType));
cNotice.setPopType(Integer.parseInt(popType));
if (skipUrl == null){
skipUrl = "";
}
cNotice.setSkipUrl(skipUrl);
cNotice.setOutline(outline);
cNotice.setNoticeTitle(noticeTitle);
cNotice.setNoticeCountent(noticeContent);

View File

@ -13,10 +13,10 @@ public class NoticeDaoImpl implements NoticeDao {
public static final String colon = ":";
@Override
public void sendSnotice(CNotice cSnotice,String plat) throws Exception {
public void sendSnotice(CNotice cSnotice,String plat) {
if (cSnotice.getServerId() == 0) {
RedisUtil.getInstence().putMapEntry(cSnotice.getServerId() + colon + RedisUserKey.Notice_key,
plat, cSnotice.getId(), cSnotice, GlobalsDef.REDIS_OVER_FOREVER);
String.valueOf(cSnotice.getServerId()), cSnotice.getId(), cSnotice, GlobalsDef.REDIS_OVER_FOREVER);
} else {
RedisUtil.getInstence().putMapEntry(cSnotice.getServerId() + colon + RedisUserKey.Notice_key,
String.valueOf(cSnotice.getServerId()), cSnotice.getId(), cSnotice, GlobalsDef.REDIS_OVER_FOREVER);