|
@@ -143,7 +143,8 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
|
|
|
String title = "底稿归档检查";
|
|
|
String assignee = report.getDraftAdministrator();
|
|
|
String recordType = "";
|
|
|
- Map<String, String> newMap = pingMap(procDefId, procDefKey, businessTable, businessId, title, assignee, recordType);
|
|
|
+ String userId = report.getCreateById();
|
|
|
+ Map<String, String> newMap = pingMap(procDefId, procDefKey, businessTable, businessId, title, assignee, recordType, userId);
|
|
|
|
|
|
allMap.put("底稿",newMap);
|
|
|
|
|
@@ -164,14 +165,14 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
|
|
|
String computerProcDefKey = computerMap.get("key")+"";
|
|
|
String computerBusinessTable = "human_resources_depart_handover_computer";
|
|
|
String computerBusinessId = computerId;
|
|
|
- String computerTitle = "电脑欠款回收";
|
|
|
+ String computerTitle = report.getName() + "的离职申请 - 电脑欠款回收";
|
|
|
//根据角色查用户信息
|
|
|
PostDTO computerRoleInfo = SpringUtil.getBean(IPostApi.class).getPostDTOByName("电脑款项审查员");
|
|
|
String computerAssignee = getAssignee(computerRoleInfo.getId());
|
|
|
|
|
|
String computerRecordType = "";
|
|
|
Map<String, String> computerNewMap = pingMap(computerProcDefId, computerProcDefKey,
|
|
|
- computerBusinessTable, computerBusinessId, computerTitle, computerAssignee, computerRecordType);
|
|
|
+ computerBusinessTable, computerBusinessId, computerTitle, computerAssignee, computerRecordType,userId);
|
|
|
|
|
|
allMap.put("电脑",computerNewMap);
|
|
|
|
|
@@ -192,7 +193,7 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
|
|
|
String accountsProcDefKey = accountsMap.get("key")+"";
|
|
|
String accountsBusinessTable = "human_resources_depart_handover_accounts";
|
|
|
String accountsBusinessId = accountsId;
|
|
|
- String accountsTitle = "应收账款检查";
|
|
|
+ String accountsTitle = report.getName() + "的离职申请 - 应收账款检查";
|
|
|
//根据角色查用户信息
|
|
|
PostDTO accountsRoleInfo = SpringUtil.getBean(IPostApi.class).getPostDTOByName("应收账款审查员");
|
|
|
|
|
@@ -200,7 +201,7 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
|
|
|
|
|
|
String accountsRecordType = "";
|
|
|
Map<String, String> accountsNewMap = pingMap(accountsProcDefId, accountsProcDefKey,
|
|
|
- accountsBusinessTable, accountsBusinessId, accountsTitle, accountsAssignee, accountsRecordType);
|
|
|
+ accountsBusinessTable, accountsBusinessId, accountsTitle, accountsAssignee, accountsRecordType,userId);
|
|
|
|
|
|
allMap.put("应收账款",accountsNewMap);
|
|
|
// SpringUtil.getBean(IFlowableApi.class).startForFenNew(allMap);
|
|
@@ -220,7 +221,7 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
|
|
|
String socialSecurityProcDefKey = socialSecurityMap.get("key")+"";
|
|
|
String socialSecurityBusinessTable = "human_resources_depart_handover_social_security";
|
|
|
String socialSecurityBusinessId = socialSecurityId;
|
|
|
- String socialSecurityTitle = "社保款项检查";
|
|
|
+ String socialSecurityTitle = report.getName() + "的离职申请 - 社保款项检查";
|
|
|
//根据角色查用户信息
|
|
|
PostDTO socialSecurityRoleInfo = SpringUtil.getBean(IPostApi.class).getPostDTOByName("社保欠款审查员");
|
|
|
|
|
@@ -228,7 +229,7 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
|
|
|
|
|
|
String socialSecurityRecordType = "";
|
|
|
Map<String, String> socialSecurityNewMap = pingMap(socialSecurityProcDefId, socialSecurityProcDefKey,
|
|
|
- socialSecurityBusinessTable, socialSecurityBusinessId, socialSecurityTitle, socialSecurityAssignee, socialSecurityRecordType);
|
|
|
+ socialSecurityBusinessTable, socialSecurityBusinessId, socialSecurityTitle, socialSecurityAssignee, socialSecurityRecordType,userId);
|
|
|
|
|
|
allMap.put("社保欠款",socialSecurityNewMap);
|
|
|
|
|
@@ -249,14 +250,14 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
|
|
|
String handoverImprestProcDefKey = handoverImprestMap.get("key")+"";
|
|
|
String handoverImprestBusinessTable = "human_resources_depart_handover_imprest";
|
|
|
String handoverImprestBusinessId = handoverImprestId;
|
|
|
- String handoverImprestTitle = "备用金检查";
|
|
|
+ String handoverImprestTitle = report.getName() + "的离职申请 - 备用金检查";
|
|
|
//根据角色查用户信息
|
|
|
PostDTO postInfo = SpringUtil.getBean(IPostApi.class).getPostDTOByName("备用金审查员");
|
|
|
String handoverImprestAssignee = getAssignee(postInfo.getId());
|
|
|
|
|
|
String handoverImprestRecordType = "";
|
|
|
Map<String, String> handoverImprestNewMap = pingMap(handoverImprestProcDefId, handoverImprestProcDefKey,
|
|
|
- handoverImprestBusinessTable, handoverImprestBusinessId, handoverImprestTitle, handoverImprestAssignee, handoverImprestRecordType);
|
|
|
+ handoverImprestBusinessTable, handoverImprestBusinessId, handoverImprestTitle, handoverImprestAssignee, handoverImprestRecordType,userId);
|
|
|
|
|
|
allMap.put("备用金",handoverImprestNewMap);
|
|
|
|
|
@@ -290,7 +291,7 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
|
|
|
}
|
|
|
|
|
|
public Map<String,String> pingMap(String procDefId,String procDefKey,String businessTable,
|
|
|
- String businessId,String title,String assignee,String recordType){
|
|
|
+ String businessId,String title,String assignee,String recordType,String userId){
|
|
|
Map<String,String> map = new HashMap();
|
|
|
map.put("procDefId", procDefId);
|
|
|
map.put("procDefKey", procDefKey);
|
|
@@ -299,6 +300,7 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
|
|
|
map.put("title", title);
|
|
|
map.put("assignee", assignee);
|
|
|
map.put("recordType", recordType);
|
|
|
+ map.put("userId", userId);
|
|
|
return map;
|
|
|
}
|
|
|
|