设计、prehomo、验证符合性流程,发起人审核退回,给责任人发消息(模板需要提供)
This commit is contained in:
+4
@@ -15,6 +15,10 @@ public enum MsgTypeEnum {
|
||||
PREHOMO_REMIND_MSG("prehomo提醒办理","prehomoRemindMsg"),
|
||||
VERIFY_ISSUE_DRE_MSG("验证符合性确认分配dre消息","verifyIssueDreMsg"),
|
||||
VERIFY_REMIND_MSG("验证符合性确认提醒办理","verifyRemindMsg"),
|
||||
|
||||
DESIGN_RETURN_MSG("设计符合性发起人退回","designReturnMsg"),
|
||||
PREHOMO_RETURN_MSG("prehomo发起人退回","prehomoReturnMsg"),
|
||||
VERIFY_RETURN_MSG("验证符合性发起人退回","verifyReturnMsg"),
|
||||
;
|
||||
|
||||
String name;
|
||||
|
||||
+39
-5
@@ -278,6 +278,8 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl<ProjectTaskIn
|
||||
updateProjectTaskInventoryDetailWrapper.lambda().eq(ProjectTaskInventoryDetailEO::getActiProcInstId,projectTaskInventoryDetailEO.getActiProcInstId());
|
||||
updateProjectTaskInventoryDetailWrapper.lambda().eq(ProjectTaskInventoryDetailEO::getTaskDefinitionKey,projectTaskInventoryDetailEO.getTaskDefinitionKey());
|
||||
this.projectTaskInventoryDetailEOMapper.update(projectTaskInventoryDetailEO,updateProjectTaskInventoryDetailWrapper);
|
||||
}else if(StringUtils.equals(operatorType,OperatorTypeEnum.UPDATE_DRE_TASK_STATUS.getValue())){
|
||||
|
||||
}
|
||||
|
||||
return new Result<>().success("调用成功!");
|
||||
@@ -644,17 +646,49 @@ public class ProjectTaskInventoryEOServiceImpl extends ServiceImpl<ProjectTaskIn
|
||||
String msgContentEN = "";
|
||||
List<String> userIdList = new ArrayList<>();
|
||||
String dreUserIds = jsonObject.getString("dreUserIds"); //dre用户id
|
||||
userIdList.addAll(Arrays.asList(dreUserIds.split(",")));
|
||||
if(StringUtils.isNotEmpty(dreUserIds)){
|
||||
userIdList.addAll(Arrays.asList(dreUserIds.split(",")));
|
||||
}
|
||||
|
||||
FeishuMsgVo feishuMsgVo = new FeishuMsgVo();
|
||||
if (StringUtils.equals(msgType, MsgTypeEnum.DESIGN_ISSUE_DRE_MSG.getValue())) {
|
||||
msgContentEN = sysUser.getUsername() + "has assigned the design compliance confirmation process of " + serialNumber + " in "
|
||||
+ projectNameInfoEO.getProjectName() + "-" + projectYearNameInfoEO.getYearName() + " " + projectLibraryBase.getTargetMarket()
|
||||
+ " to you. Please check and handle it in time.";
|
||||
}
|
||||
|
||||
FeishuMsgVo feishuMsgVo = new FeishuMsgVo();
|
||||
feishuMsgVo.setContent("Hello! " + sysUser.getUsername() + " has assigned the task to you. Please check and handle it in time.");
|
||||
feishuMsgVo.setTaskType("Design Compliance Confirmation");
|
||||
feishuMsgVo.setContent("Hello! " + sysUser.getUsername() + " has assigned the task to you. Please check and handle it in time.");
|
||||
feishuMsgVo.setTaskType("Design Compliance Confirmation");
|
||||
}else if(StringUtils.equals(msgType, MsgTypeEnum.DESIGN_RETURN_MSG.getValue())){
|
||||
String designDutyId = jsonObject.getString("designDutyId");//设计符合性流程责任人id
|
||||
userIdList.add(designDutyId);
|
||||
|
||||
msgContentEN = sysUser.getUsername() + " 将设计符合性流程退回,编号: " + serialNumber + " in "
|
||||
+ projectNameInfoEO.getProjectName() + "-" + projectYearNameInfoEO.getYearName() + " " + projectLibraryBase.getTargetMarket()
|
||||
+ " to you. Please check and handle it in time.";
|
||||
|
||||
feishuMsgVo.setContent("Hello! " + sysUser.getUsername() + " has assigned the task to you. Please check and handle it in time.");
|
||||
feishuMsgVo.setTaskType("XXX");
|
||||
}else if(StringUtils.equals(msgType, MsgTypeEnum.PREHOMO_RETURN_MSG.getValue())){
|
||||
String prehomoDutyId = jsonObject.getString("prehomoDutyId");//prehomo流程责任人id
|
||||
userIdList.add(prehomoDutyId);
|
||||
|
||||
msgContentEN = sysUser.getUsername() + " 将prehomo流程退回,编号: " + serialNumber + " in "
|
||||
+ projectNameInfoEO.getProjectName() + "-" + projectYearNameInfoEO.getYearName() + " " + projectLibraryBase.getTargetMarket()
|
||||
+ " to you. Please check and handle it in time.";
|
||||
|
||||
feishuMsgVo.setContent("Hello! " + sysUser.getUsername() + " has assigned the task to you. Please check and handle it in time.");
|
||||
feishuMsgVo.setTaskType("XXX");
|
||||
}else if(StringUtils.equals(msgType, MsgTypeEnum.VERIFY_RETURN_MSG.getValue())){
|
||||
String verifyDutyId = jsonObject.getString("verifyDutyId");//验证符合性流程责任人id
|
||||
userIdList.add(verifyDutyId);
|
||||
|
||||
msgContentEN = sysUser.getUsername() + " 将验证符合性流程退回,编号: " + serialNumber + " in "
|
||||
+ projectNameInfoEO.getProjectName() + "-" + projectYearNameInfoEO.getYearName() + " " + projectLibraryBase.getTargetMarket()
|
||||
+ " to you. Please check and handle it in time.";
|
||||
|
||||
feishuMsgVo.setContent("Hello! " + sysUser.getUsername() + " has assigned the task to you. Please check and handle it in time.");
|
||||
feishuMsgVo.setTaskType("XXX");
|
||||
}
|
||||
feishuMsgVo.setRegulationNo(serialNumber);
|
||||
feishuMsgVo.setProject(projectNameInfoEO.getProjectName() + "-" + projectYearNameInfoEO.getYearName() + " " + projectLibraryBase.getTargetMarket());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user