|
@@ -1257,6 +1257,23 @@ public class IncidentController {
|
|
|
incidentService.insert(incident);
|
|
|
incidentStepService.insert(incidentStep);
|
|
|
|
|
|
+ //保存到交办单位操作表
|
|
|
+ //List<IncidentStepStatus> incidentStepStatusList = incidentStepStatusService.findByIncidentId(incident.getId());
|
|
|
+ incidentStepStatusService.deleteByIncidentId(incident.getId());
|
|
|
+ String [] orgIds = incidentStep.getOrgId().split(",");
|
|
|
+ for(String orgId : orgIds){
|
|
|
+ IncidentStepStatus incidentStepStatus = new IncidentStepStatus();
|
|
|
+ incidentStepStatus.setId(UUID.randomUUID().toString());
|
|
|
+ incidentStepStatus.setCreateBy(subject);
|
|
|
+ incidentStepStatus.setCreateTime(new Date());
|
|
|
+ incidentStepStatus.setIncidentId(incident.getId());
|
|
|
+ incidentStepStatus.setIncidentStepId(incidentStep.getId());
|
|
|
+ incidentStepStatus.setOrgId(orgId);
|
|
|
+ incidentStepStatus.setStatus("0");
|
|
|
+ incidentStepStatus.setDelFlag(false);
|
|
|
+ incidentStepStatusService.insert(incidentStepStatus);
|
|
|
+ }
|
|
|
+
|
|
|
String templateId = "";
|
|
|
String MessageContent = "";
|
|
|
//发送跟踪专班短信
|