Commit 6b552ae4 authored by 高建强's avatar 高建强

item:应急处置执行推送优化

parent 415a36f2
......@@ -25,8 +25,6 @@ import com.yeejoin.amos.fas.business.dao.repository.IPlanOperationRecordDao;
import com.yeejoin.amos.fas.business.feign.IDutyModeServer;
import com.yeejoin.amos.fas.business.feign.JcsFeign;
import com.yeejoin.amos.fas.business.feign.RemoteSecurityService;
import com.yeejoin.amos.fas.business.jpush.JPushTypeEnum;
import com.yeejoin.amos.fas.business.jpush.PushMsgParam;
import com.yeejoin.amos.fas.business.service.impl.RuleRunigSnapshotServiceImpl;
import com.yeejoin.amos.fas.business.service.intfc.*;
import com.yeejoin.amos.fas.business.service.model.ContingencyDeviceStatus;
......@@ -502,16 +500,10 @@ public class ContingencyAction implements CustomerAction {
ContingencyPlanInstance planInstance = contingencyInstance.updateExtendColumn(instance);
contingencyPlanInstanceMapper.updateMessageById(planInstance);
}
//极光推送
// iPlanVisual3dService.sendMessage(buttonCode, null);
// PushMsgParam pushMsgParam = new PushMsgParam();
// pushMsgParam.setSubject("应急处置执行任务提醒");
// pushMsgParam.setContent("【" + actionName + "】- " + DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
// pushMsgParam.setType(JPushTypeEnum.TAG.getCode());
MessageVO messageVO = new MessageVO();
messageVO.setTitle("应急处置执行任务提醒");
messageVO.setBody("【" + actionName + "】- 【已完成】-" + DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
messageVO.setTitle("应急处置事项提醒");
messageVO.setBody("【" + actionName + "】" + DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
messageVO.setMsgType("emergencyPlan");
messageVO.setCategory(1);
messageVO.setIsSendApp(true);
......
......@@ -453,7 +453,7 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
dto.setContent(StringUtil.isNotEmpty(dto.getContent()) ? dto.getContent() : "");
repository.save(dto);
String topic = String.format("/%s/%s/%s", serviceName, stationName, "plan");
webMqttComponent.publish(topic, "{'msgType':'REPLYMESSAGE'}");
webMqttComponent.publish(topic, "{\"msgType\":\"replayMessage\"}");
return dto;
}
......
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