|
|
@ -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); |
|
|
|