|
|
@ -67,9 +67,7 @@ import java.text.SimpleDateFormat; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.ZoneId; |
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
/** |
|
|
|
* Project: anrui_scm(anrui_scm) <br/> |
|
|
@ -317,7 +315,6 @@ public class ScmVehiclePatrolinspectionsheetService extends MybatisBaseService<S |
|
|
|
scmFile1.setLinkSid(scmVehiclePatrolinspectionsheet.getSid()); |
|
|
|
scmFileService.save(scmFile1); |
|
|
|
} |
|
|
|
List<String> receiveIdList = new ArrayList<>(); |
|
|
|
List<AppLiableListDto> liableList = new ArrayList<>(); |
|
|
|
AppLiableListDto appLiableListDto = new AppLiableListDto(); |
|
|
|
List<String> recipientSidList = new ArrayList<>(); |
|
|
@ -325,18 +322,16 @@ public class ScmVehiclePatrolinspectionsheetService extends MybatisBaseService<S |
|
|
|
appLiableListDto.setLiableSid(dto.getLiableSid()); |
|
|
|
liableList.add(appLiableListDto); |
|
|
|
recipientSidList.add(appLiableListDto.getLiableSid()); |
|
|
|
SysUserVo sysUserVos = sysUserFeign.fetchBySid(dto.getLiableSid()).getData(); |
|
|
|
Integer id = sysUserVos.getId(); |
|
|
|
receiveIdList.add(String.valueOf(id)); |
|
|
|
// 消息推送
|
|
|
|
AppScmMessageFlowableQuery query = new AppScmMessageFlowableQuery(); |
|
|
|
query.setMainSid(dto.getMainSid()); |
|
|
|
query.setList(recipientSidList); |
|
|
|
query.setReceiveIdList(receiveIdList); |
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
appMap.put("sid", dto.getMainSid()); |
|
|
|
query.setRecipientSidList(recipientSidList); |
|
|
|
query.setAppMap(appMap); |
|
|
|
query.setMsgTitle("月度巡检问题"); |
|
|
|
query.setMsgContent(sysUserVo.getName() + "提交的月度巡检问题,请查阅"); |
|
|
|
query.setMsgSource("供应链"); |
|
|
|
query.setMsgTargetUri(MsgTargetUriEnum.GYLPKBG.getUri()); |
|
|
|
query.setMsgTargetUri(MsgTargetUriEnum.GYLXJWT.getUri()); |
|
|
|
query.setApp_type("2"); |
|
|
|
query.setModuleSid("98ff0724-5df4-4fc7-ab6d-3996e7706acd"); |
|
|
|
query.setName("供应链"); |
|
|
@ -364,7 +359,6 @@ public class ScmVehiclePatrolinspectionsheetService extends MybatisBaseService<S |
|
|
|
} |
|
|
|
save(scmVehiclePatrolinspectionsheet); |
|
|
|
scmVehiclePatrolinspectionService.updateByMainSid(oneKey, oneValue, newDate, sysUserVo.getName(), dto.getMainSid()); |
|
|
|
List<String> receiveIdList = new ArrayList<>(); |
|
|
|
List<AppLiableListDto> liableList = new ArrayList<>(); |
|
|
|
List<String> recipientSidList = new ArrayList<>(); |
|
|
|
AppLiableListDto appLiableListDto = new AppLiableListDto(); |
|
|
@ -372,18 +366,16 @@ public class ScmVehiclePatrolinspectionsheetService extends MybatisBaseService<S |
|
|
|
appLiableListDto.setLiableSid(dto.getLiableSid()); |
|
|
|
liableList.add(appLiableListDto); |
|
|
|
recipientSidList.add(dto.getLiableSid()); |
|
|
|
SysUserVo sysUserVos = sysUserFeign.fetchBySid(dto.getLiableSid()).getData(); |
|
|
|
Integer id = sysUserVos.getId(); |
|
|
|
receiveIdList.add(String.valueOf(id)); |
|
|
|
// 消息推送
|
|
|
|
AppScmMessageFlowableQuery query = new AppScmMessageFlowableQuery(); |
|
|
|
query.setMainSid(dto.getMainSid()); |
|
|
|
query.setList(recipientSidList); |
|
|
|
query.setReceiveIdList(receiveIdList); |
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
appMap.put("sid", dto.getMainSid()); |
|
|
|
query.setRecipientSidList(recipientSidList); |
|
|
|
query.setAppMap(appMap); |
|
|
|
query.setMsgTitle("月度巡检问题"); |
|
|
|
query.setMsgContent(sysUserVo.getName() + "提交的月度巡检问题,请查阅"); |
|
|
|
query.setMsgSource("供应链"); |
|
|
|
query.setMsgTargetUri(MsgTargetUriEnum.GYLPKBG.getUri()); |
|
|
|
query.setMsgTargetUri(MsgTargetUriEnum.GYLXJWT.getUri()); |
|
|
|
query.setApp_type("2"); |
|
|
|
query.setModuleSid("98ff0724-5df4-4fc7-ab6d-3996e7706acd"); |
|
|
|
query.setName("供应链"); |
|
|
@ -512,13 +504,14 @@ public class ScmVehiclePatrolinspectionsheetService extends MybatisBaseService<S |
|
|
|
liableList.add(appLiableListDto); |
|
|
|
// 消息推送
|
|
|
|
AppScmMessageFlowableQuery query = new AppScmMessageFlowableQuery(); |
|
|
|
query.setMainSid(dto.getMainSid()); |
|
|
|
query.setList(recipientSidList); |
|
|
|
query.setReceiveIdList(receiveIdList); |
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
appMap.put("sid", dto.getMainSid()); |
|
|
|
query.setRecipientSidList(recipientSidList); |
|
|
|
query.setAppMap(appMap); |
|
|
|
query.setMsgTitle("月度巡检问题"); |
|
|
|
query.setMsgContent(sysUserVo.getName() + "提交的月度巡检问题,请查阅"); |
|
|
|
query.setMsgSource("供应链"); |
|
|
|
query.setMsgTargetUri(MsgTargetUriEnum.GYLPKBG.getUri()); |
|
|
|
query.setMsgTargetUri(MsgTargetUriEnum.GYLXJWT.getUri()); |
|
|
|
query.setApp_type("2"); |
|
|
|
query.setModuleSid("98ff0724-5df4-4fc7-ab6d-3996e7706acd"); |
|
|
|
query.setName("供应链"); |
|
|
|