feat: 标准入库流程提交
This commit is contained in:
@@ -72,6 +72,17 @@ public class ApplyApplicantAfter implements TaskListener{
|
|||||||
busProcessNameService.saveOrUpdate(one1);
|
busProcessNameService.saveOrUpdate(one1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QueryWrapper queryWrapper1 = new QueryWrapper();
|
||||||
|
queryWrapper1.eq("TASK_ID",delegateTask.getId());
|
||||||
|
List<BusProcessNew> list = busBean.list(queryWrapper1);
|
||||||
|
if(!list.isEmpty()){
|
||||||
|
BusProcessNew busProcessNew = list.get(0);
|
||||||
|
busProcessNew.setTaskId(delegateTask.getId());
|
||||||
|
busProcessNew.setCommitText(object.getString("commentText"));
|
||||||
|
busBean.saveOrUpdate(busProcessNew);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(nextUserList != null && !nextUserList.isEmpty()){
|
if(nextUserList != null && !nextUserList.isEmpty()){
|
||||||
for(String nextUser : nextUserList){
|
for(String nextUser : nextUserList){
|
||||||
BusProcessNew busProcessNew = new BusProcessNew();
|
BusProcessNew busProcessNew = new BusProcessNew();
|
||||||
|
|||||||
@@ -40,11 +40,11 @@ public class CountersignAfter implements TaskListener{
|
|||||||
|
|
||||||
// JSONObject array = object.getJSONObject("hqsqForm");
|
// JSONObject array = object.getJSONObject("hqsqForm");
|
||||||
|
|
||||||
if(StringUtils.isNotBlank(object.getString("jlUserId"))){
|
if(StringUtils.isNotBlank(object.getString("applyUpdUserId"))){
|
||||||
delegateTask.setVariable("managerUserId",object.getString("jlUserId"));
|
delegateTask.setVariable("applyUserId",object.getString("applyUpdUserId"));
|
||||||
nextUserList.add(object.getString("jlUserId"));
|
nextUserList.add(object.getString("applyUpdUserId"));
|
||||||
}else {
|
}else {
|
||||||
throw new ActivitiException("1#2经理人不存在,请配置相关人员");
|
throw new ActivitiException("1#2申请人修订用户不存在,请配置相关人员");
|
||||||
}
|
}
|
||||||
|
|
||||||
//截止时间 流程描述 创建人
|
//截止时间 流程描述 创建人
|
||||||
@@ -71,6 +71,16 @@ public class CountersignAfter implements TaskListener{
|
|||||||
busProcessNameService.saveOrUpdate(one1);
|
busProcessNameService.saveOrUpdate(one1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QueryWrapper queryWrapper1 = new QueryWrapper();
|
||||||
|
queryWrapper1.eq("TASK_ID",delegateTask.getId());
|
||||||
|
List<BusProcessNew> list = busBean.list(queryWrapper1);
|
||||||
|
if(!list.isEmpty()){
|
||||||
|
BusProcessNew busProcessNew = list.get(0);
|
||||||
|
busProcessNew.setTaskId(delegateTask.getId());
|
||||||
|
busProcessNew.setCommitText(object.getString("commentText"));
|
||||||
|
busBean.saveOrUpdate(busProcessNew);
|
||||||
|
}
|
||||||
|
|
||||||
if(nextUserList != null && !nextUserList.isEmpty()){
|
if(nextUserList != null && !nextUserList.isEmpty()){
|
||||||
for(String nextUser : nextUserList){
|
for(String nextUser : nextUserList){
|
||||||
BusProcessNew busProcessNew = new BusProcessNew();
|
BusProcessNew busProcessNew = new BusProcessNew();
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ public class SLApplicantAfter implements TaskListener{
|
|||||||
}
|
}
|
||||||
// 配置多实例
|
// 配置多实例
|
||||||
delegateTask.setVariable("hqUserList",nextUserList);
|
delegateTask.setVariable("hqUserList",nextUserList);
|
||||||
|
delegateTask.addCandidateUsers(nextUserList);
|
||||||
}else {
|
}else {
|
||||||
throw new ActivitiException("1#2会签状态不存在,请配置相关状态");
|
throw new ActivitiException("1#2会签状态不存在,请配置相关状态");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user