|
@@ -20,6 +20,7 @@ import com.usky.fire.service.PatrolInspectionPersonnelService;
|
|
import com.usky.fire.service.PatrolInspectionPlanScheduleService;
|
|
import com.usky.fire.service.PatrolInspectionPlanScheduleService;
|
|
import com.usky.fire.service.config.rabbitmq.RabbitMQConfig;
|
|
import com.usky.fire.service.config.rabbitmq.RabbitMQConfig;
|
|
import com.usky.fire.service.vo.PatrolInspectionPlanRequestVO;
|
|
import com.usky.fire.service.vo.PatrolInspectionPlanRequestVO;
|
|
|
|
+import com.usky.system.RemoteDictService;
|
|
import com.usky.system.RemoteMceService;
|
|
import com.usky.system.RemoteMceService;
|
|
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
|
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -50,6 +51,8 @@ public class PatrolInspectionEventServiceImpl extends AbstractCrudService<Patrol
|
|
private RabbitMQConfig rabbitMQConfig;
|
|
private RabbitMQConfig rabbitMQConfig;
|
|
@Autowired
|
|
@Autowired
|
|
private RemoteMceService remoteMceService;
|
|
private RemoteMceService remoteMceService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private RemoteDictService remoteDictService;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -118,9 +121,11 @@ public class PatrolInspectionEventServiceImpl extends AbstractCrudService<Patrol
|
|
// rabbitTemplate.convertAndSend(rabbitMQConfig.patrolEventExchange,rabbitMQConfig.patrolEventRoute,map);
|
|
// rabbitTemplate.convertAndSend(rabbitMQConfig.patrolEventExchange,rabbitMQConfig.patrolEventRoute,map);
|
|
rabbitTemplate.convertAndSend(rabbitMQConfig.patrolFEventExchange,"", JSONObject.toJSONString(map));
|
|
rabbitTemplate.convertAndSend(rabbitMQConfig.patrolFEventExchange,"", JSONObject.toJSONString(map));
|
|
this.save(patrolInspectionEvent);
|
|
this.save(patrolInspectionEvent);
|
|
|
|
+ String eventTypeName = remoteDictService.selectNameById("patrol_event_type",
|
|
|
|
+ patrolInspectionEvent.getEventType().toString());
|
|
JsonObject jsonObject = new JsonObject();
|
|
JsonObject jsonObject = new JsonObject();
|
|
jsonObject.addProperty("infoTitle", patrolInspectionEvent.getEventName());
|
|
jsonObject.addProperty("infoTitle", patrolInspectionEvent.getEventName());
|
|
- jsonObject.addProperty("infoContent",patrolInspectionEvent.getEventType());
|
|
|
|
|
|
+ jsonObject.addProperty("infoContent",eventTypeName);
|
|
jsonObject.addProperty("infoType",2);
|
|
jsonObject.addProperty("infoType",2);
|
|
jsonObject.addProperty("id",patrolInspectionEvent.getId());
|
|
jsonObject.addProperty("id",patrolInspectionEvent.getId());
|
|
remoteMceService.addMce(jsonObject.toString());
|
|
remoteMceService.addMce(jsonObject.toString());
|