|
@@ -95,6 +95,13 @@ public class IotFailureReportServiceImpl implements IotFailureReportService {
|
|
|
iotMaintainDO.setFailureId(failureReportDO.getId());
|
|
|
iotMaintainDO.setId(null);
|
|
|
iotMaintainMapper.insert(iotMaintainDO);
|
|
|
+ //发送消息
|
|
|
+ Map<String, Object> templateParams = new HashMap<>();
|
|
|
+ templateParams.put("name", iotMaintainDO.getDeviceName());
|
|
|
+ templateParams.put("businessType", PmsConstants.GENERATE_MAINTAIN);
|
|
|
+ templateParams.put("businessId", iotMaintainDO.getId());
|
|
|
+ notifyMessageSendApi.sendSingleMessageToAdmin(new NotifySendSingleToUserReqDTO()
|
|
|
+ .setUserId(failureReportDO.getAssigneeUserId()).setTemplateCode(PmsConstants.GENERATE_MAINTAIN_TEMPLATE).setTemplateParams(templateParams));
|
|
|
} else if (bpmResult ==3 ) {
|
|
|
//更新故障上报状态及审核状态
|
|
|
IotFailureReportDO failureReportDO = iotFailureReportMapper.selectById(id);
|