|
|
@ -151,17 +151,26 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public void addBusinessAlertList(List<BusinessAlertVo> alertVoList) { |
|
|
|
if(!alertVoList.isEmpty()) { |
|
|
|
if (ObjectUtil.isEmpty(alertVoList)) { |
|
|
|
throw new ServiceException("预警参数为空!"); |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
incrementalCount(alertVoList); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error(e.getMessage(),e); |
|
|
|
} |
|
|
|
|
|
|
|
List<RemoteStartProcess> remoteStartProcessList = new ArrayList<>(); |
|
|
|
for (BusinessAlertVo alertVo : alertVoList) { |
|
|
|
alertVo.setBusinessType(2); |
|
|
|
alertVo.setHandleType(BusinessStatusEnum.WAITING.getStatus()); |
|
|
|
BusinessAlert alert = addBusinessAlert(alertVo); |
|
|
|
RemoteStartProcess startProcess = new RemoteStartProcess(); |
|
|
|
startProcess.setBusinessId(String.valueOf(alert.getId())); |
|
|
|
startProcess.setFlowCode("alertChz"); |
|
|
|
//根据标签获取流程code
|
|
|
|
String flowCode = remoteWorkflowService.getFlowCode(alertVo.getLabelEn()); |
|
|
|
log.info("flowCode:{}",flowCode); |
|
|
|
startProcess.setFlowCode(flowCode); |
|
|
|
remoteStartProcessList.add(startProcess); |
|
|
|
} |
|
|
|
|
|
|
@ -171,7 +180,6 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService { |
|
|
|
//批量新增部门区域数据
|
|
|
|
remoteWorkflowService.startWorkFlowBatch(batch); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|