Browse Source

PC消息中心

master
dimengzhe 2 years ago
parent
commit
fa884892ae
  1. 23
      yxt_supervise/supervise-report/supervise-report-biz/src/main/java/com/yxt/supervise/report/biz/messagepushlog/MessagePushLogService.java

23
yxt_supervise/supervise-report/supervise-report-biz/src/main/java/com/yxt/supervise/report/biz/messagepushlog/MessagePushLogService.java

@ -229,16 +229,35 @@ public class MessagePushLogService extends MybatisBaseService<MessagePushLogMapp
String createTime = "";
if ("数据消息".equals(type)) {
String thing2 = map.get("thing2");
title = thing2;
if(StringUtils.isNotBlank(thing2)){
title = thing2;
}else{
title = "无";
}
createTime = map.get("time1");
} else if ("风险提示".equals(type)) {
String thing3 = map.get("thing3");
String thing4 = map.get("thing4");
if(StringUtils.isNotBlank(thing3) && StringUtils.isNotBlank(thing4)){
title = thing3 + "-" + thing4;
}else if(StringUtils.isNotBlank(thing3)){
title = thing3;
}else if(StringUtils.isNotBlank(thing4)){
title = thing4;
}else{
title = "无";
}
title = thing3 + "-" + thing4;
createTime = map.get("time5");
} else if ("设备状态".equals(type)) {
String thing3 = map.get("thing3");
title = thing3;
if(StringUtils.isNotBlank(thing3)){
title = thing3;
}else{
title = "无";
}
createTime = map.get("time4");
}
messagePushPcLogVo.setTitle(title);

Loading…
Cancel
Save