Commit fe8181c9 authored by 高建强's avatar 高建强

item:应急处置执行业务完善

parent fc567654
...@@ -566,8 +566,16 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService { ...@@ -566,8 +566,16 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
@Override @Override
public void sendMessage(String batchNo, String buttonCode, PushMsgParam pushMsgParam) { public void sendMessage(String batchNo, String buttonCode, PushMsgParam pushMsgParam) {
List<String> userIds = getUserIds(buttonCode); List<String> userIds = getUserIds(buttonCode);
pushMsgParam.setRecivers(userIds); if (!CollectionUtils.isEmpty(userIds)) {
sendMessage(batchNo, pushMsgParam); if (pushMsgParam != null) {
pushMsgParam.setRecivers(userIds);
sendMessage(batchNo, pushMsgParam);
} else {
PushMsgParam msgParam = new PushMsgParam();
msgParam.setRecivers(userIds);
sendMessage(batchNo, msgParam);
}
}
} }
private void sendMessage(String batchNo, PushMsgParam pushMsgParam){ private void sendMessage(String batchNo, PushMsgParam pushMsgParam){
...@@ -591,6 +599,12 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService { ...@@ -591,6 +599,12 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
model.setTerminal("APP/WEB"); model.setTerminal("APP/WEB");
// 0 任务 1 通知 // 0 任务 1 通知
model.setCategory(1); model.setCategory(1);
String title = model.getTitle();
String body = model.getBody();
if (StringUtils.isBlank(title) || StringUtils.isBlank(body)) {
model.setTitle("应急处置通知");
model.setBody("应急处置通知");
}
Systemctl.messageClient.create(model); Systemctl.messageClient.create(model);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment