Browse Source

修复:消息中心类型转换

zhongwei
ty 4 months ago
parent
commit
f8bd1b25fb
  1. 2
      hzims-service/assets/src/main/java/com/hnac/hzims/spare/aspect/LimitRemindAspect.java
  2. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyRecServiceImpl.java

2
hzims-service/assets/src/main/java/com/hnac/hzims/spare/aspect/LimitRemindAspect.java

@ -156,7 +156,7 @@ public class LimitRemindAspect {
message.setBusinessClassify(MessageConstants.BusinessClassifyEnum.ASSETS.getKey()); message.setBusinessClassify(MessageConstants.BusinessClassifyEnum.ASSETS.getKey());
message.setBusinessKey("资产预警"); message.setBusinessKey("资产预警");
message.setSubject("资产预警"); message.setSubject("资产预警");
message.setTaskId(warehouseId); message.setTaskId(warehouseId.toString());
message.setTenantId("200000"); message.setTenantId("200000");
message.setTypes(Arrays.asList(MessageConstants.APP_PUSH, MessageConstants.WS_PUSH)); message.setTypes(Arrays.asList(MessageConstants.APP_PUSH, MessageConstants.WS_PUSH));
message.setPushType(MessageConstants.IMMEDIATELY); message.setPushType(MessageConstants.IMMEDIATELY);

6
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyRecServiceImpl.java

@ -1093,7 +1093,7 @@ public class ImsDutyRecServiceImpl extends ServiceImpl<ImsDutyRecMapper, ImsDuty
messagePushRecordDto.setBusinessClassify(MessageConstants.BusinessClassifyEnum.DUTY.getKey()); messagePushRecordDto.setBusinessClassify(MessageConstants.BusinessClassifyEnum.DUTY.getKey());
messagePushRecordDto.setBusinessKey(MessageConstants.BusinessClassifyEnum.DUTY.getKey()); messagePushRecordDto.setBusinessKey(MessageConstants.BusinessClassifyEnum.DUTY.getKey());
messagePushRecordDto.setSubject(MessageConstants.BusinessClassifyEnum.DUTY.getDescription()); messagePushRecordDto.setSubject(MessageConstants.BusinessClassifyEnum.DUTY.getDescription());
messagePushRecordDto.setTaskId(taskId); messagePushRecordDto.setTaskId(taskId.toString());
messagePushRecordDto.setTenantId(tenantId); messagePushRecordDto.setTenantId(tenantId);
messagePushRecordDto.setPusher(admin.getId().toString()); messagePushRecordDto.setPusher(admin.getId().toString());
messagePushRecordDto.setPusherName(admin.getRealName()); messagePushRecordDto.setPusherName(admin.getRealName());
@ -1124,7 +1124,7 @@ public class ImsDutyRecServiceImpl extends ServiceImpl<ImsDutyRecMapper, ImsDuty
messagePushRecordDto.setBusinessClassify(MessageConstants.BusinessClassifyEnum.DUTY.getKey()); messagePushRecordDto.setBusinessClassify(MessageConstants.BusinessClassifyEnum.DUTY.getKey());
messagePushRecordDto.setBusinessKey(MessageConstants.BusinessClassifyEnum.DUTY.getKey()); messagePushRecordDto.setBusinessKey(MessageConstants.BusinessClassifyEnum.DUTY.getKey());
messagePushRecordDto.setSubject(MessageConstants.BusinessClassifyEnum.DUTY.getDescription()); messagePushRecordDto.setSubject(MessageConstants.BusinessClassifyEnum.DUTY.getDescription());
messagePushRecordDto.setTaskId(taskId); messagePushRecordDto.setTaskId(taskId.toString());
messagePushRecordDto.setTenantId(tenantId); messagePushRecordDto.setTenantId(tenantId);
messagePushRecordDto.setPusher(managerId.toString()); messagePushRecordDto.setPusher(managerId.toString());
messagePushRecordDto.setPusherName(userName); messagePushRecordDto.setPusherName(userName);
@ -1159,7 +1159,7 @@ public class ImsDutyRecServiceImpl extends ServiceImpl<ImsDutyRecMapper, ImsDuty
messagePushRecordDto.setBusinessClassify(MessageConstants.BusinessClassifyEnum.DUTY.getKey()); messagePushRecordDto.setBusinessClassify(MessageConstants.BusinessClassifyEnum.DUTY.getKey());
messagePushRecordDto.setBusinessKey(MessageConstants.BusinessClassifyEnum.DUTY.getKey()); messagePushRecordDto.setBusinessKey(MessageConstants.BusinessClassifyEnum.DUTY.getKey());
messagePushRecordDto.setSubject(MessageConstants.BusinessClassifyEnum.DUTY.getDescription()); messagePushRecordDto.setSubject(MessageConstants.BusinessClassifyEnum.DUTY.getDescription());
messagePushRecordDto.setTaskId(taskId); messagePushRecordDto.setTaskId(taskId.toString());
messagePushRecordDto.setTenantId(tenantId); messagePushRecordDto.setTenantId(tenantId);
messagePushRecordDto.setPusher(managerId.toString()); messagePushRecordDto.setPusher(managerId.toString());
messagePushRecordDto.setPusherName(userName); messagePushRecordDto.setPusherName(userName);

Loading…
Cancel
Save