|
@@ -172,6 +172,16 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
|
|
|
return idJoiner.toString();
|
|
|
}
|
|
|
+
|
|
|
+ public String getAssignee2(String roleId){
|
|
|
+ List<UserDTO> userDTOS = SpringUtil.getBean(IUserApi.class).findListFlowAbleByPostId(roleId);
|
|
|
+ StringJoiner idJoiner = new StringJoiner(",");
|
|
|
+ for (UserDTO user : userDTOS) {
|
|
|
+ idJoiner.add(String.valueOf(user.getId()));
|
|
|
+ }
|
|
|
+
|
|
|
+ return idJoiner.toString();
|
|
|
+ }
|
|
|
public Map<String,String> pingMap(String procDefId,String procDefKey,String businessTable,
|
|
|
String businessId,String title,String assignee,String recordType){
|
|
|
Map<String,String> map = new HashMap();
|
|
@@ -372,8 +382,13 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
String keyBusinessTable = "human_resources_enrollment_key_card";
|
|
|
String keyBusinessId = keyUid;
|
|
|
String keyTitle = report.getName() + "的门卡办理";
|
|
|
- UserDTO userInfo = SpringUtil.getBean(IUserApi.class).getByLoginNameNotTenantId("赵俐");
|
|
|
- String keyAssignee = userInfo.getId();
|
|
|
+
|
|
|
+// UserDTO userInfo = SpringUtil.getBean(IUserApi.class).getByLoginNameNotTenantId("赵俐");
|
|
|
+// String keyAssignee = userInfo.getId();
|
|
|
+
|
|
|
+ PostDTO postInfo = SpringUtil.getBean(IPostApi.class).getPostDTOByName("门卡办理人");
|
|
|
+ String keyAssignee = getAssignee2(postInfo.getId());
|
|
|
+
|
|
|
String keyRecordType = "";
|
|
|
Map<String,String> keyMap2 = new HashMap();
|
|
|
keyMap2.put("procDefId", keyProcDefId);
|