|
|
@ -155,19 +155,31 @@ 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<Map<String, Object>> noticeList=new ArrayList<>(); |
|
|
|
List<RemoteStartProcess> remoteStartProcessList = new ArrayList<>(); |
|
|
|
for (BusinessAlertVo alertVo : alertVoList) { |
|
|
|
Map<String,Object>map=new HashMap<>(); |
|
|
|
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"); |
|
|
|
|
|
|
|
String flowCode = remoteWorkflowService.getFlowCode(alertVo.getLabelEn()); |
|
|
|
log.info("flowCode:{}",flowCode); |
|
|
|
|
|
|
|
startProcess.setFlowCode(flowCode); |
|
|
|
map.put("deptId",alertVo.getDeptId()); |
|
|
|
map.put("deptName",alertVo.getDeptName()); |
|
|
|
map.put("labelCn",alertVo.getLabelCn()); |
|
|
@ -184,7 +196,6 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService { |
|
|
|
remoteWorkflowService.startWorkFlowBatch(batch); |
|
|
|
}); |
|
|
|
remoteSubmailConfigService.remoteSend("smsMultixsend",noticeList); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|