|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
import com.jeeplus.common.TokenProvider;
|
|
import com.jeeplus.common.TokenProvider;
|
|
|
|
+import com.jeeplus.flowable.feign.IFinanceApi;
|
|
import com.jeeplus.flowable.feign.IFlowableApi;
|
|
import com.jeeplus.flowable.feign.IFlowableApi;
|
|
import com.jeeplus.human.depart.handover.domain.*;
|
|
import com.jeeplus.human.depart.handover.domain.*;
|
|
import com.jeeplus.human.depart.handover.mapper.HandoverMapper;
|
|
import com.jeeplus.human.depart.handover.mapper.HandoverMapper;
|
|
@@ -161,7 +162,7 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
|
|
String procDefKey = map.get("key")+"";
|
|
String procDefKey = map.get("key")+"";
|
|
String businessTable = "human_resources_depart_handover_draft";
|
|
String businessTable = "human_resources_depart_handover_draft";
|
|
String businessId = uid;
|
|
String businessId = uid;
|
|
- String title = "底稿归档检查";
|
|
|
|
|
|
+ String title = report.getName() + "-离职申请-底稿归档检查";
|
|
String assignee = report.getDraftAdministrator();
|
|
String assignee = report.getDraftAdministrator();
|
|
String recordType = "";
|
|
String recordType = "";
|
|
String userId = report.getCreateById();
|
|
String userId = report.getCreateById();
|
|
@@ -294,6 +295,22 @@ public class HandoverService extends ServiceImpl<HandoverMapper, Handover> {
|
|
handoverImprestService.saveOrUpdate(handoverImprest);
|
|
handoverImprestService.saveOrUpdate(handoverImprest);
|
|
|
|
|
|
SpringUtil.getBean(IFlowableApi.class).startForFenNew(allMap);
|
|
SpringUtil.getBean(IFlowableApi.class).startForFenNew(allMap);
|
|
|
|
+
|
|
|
|
+ //将交接人添加到离职人员所有项目的项目组中
|
|
|
|
+ //查出所有的项目id
|
|
|
|
+ List<String> ids = SpringUtil.getBean(IFinanceApi.class).getCwProjectData();
|
|
|
|
+
|
|
|
|
+ ids.forEach(id->{
|
|
|
|
+ //根据id查出项目组成员信息
|
|
|
|
+ List<String> membersIdList = SpringUtil.getBean(IFinanceApi.class).getMembersId(id);
|
|
|
|
+ if (!membersIdList.contains(report.getProjectManager())) {
|
|
|
|
+ //将这个项目经理加入到项目组成员中
|
|
|
|
+ SpringUtil.getBean(IFinanceApi.class).insertMembers(id,report.getProjectManager());
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
return report;
|
|
return report;
|