工程师填写意见后被继续修改无法汇总

This commit is contained in:
zhaokaiyao@91isoft.com
2021-11-05 09:52:17 +08:00
parent 9c14008801
commit e10244d815
2 changed files with 9 additions and 7 deletions
@@ -1,5 +1,6 @@
package com.ydw.bat.wkflow.listener.policyCommentProcess;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessName;
@@ -40,6 +41,14 @@ public class EngineerReviewAfter implements TaskListener {
String lawsProveEngineer = JSONObject.parseObject(form.getString("form")).getString("lawsProveEngineerId");
if(StringUtils.isNotBlank(lawsProveEngineer)){
JSONArray commentCollectionList =delegateTask.getVariable("commentCollectionList", JSONArray.class);
if (commentCollectionList==null) {
commentCollectionList=new JSONArray();
}
commentCollectionList.addAll(object.getJSONArray("info"));
delegateTask.setVariable("commentCollectionList",commentCollectionList);
delegateTask.setVariable("lawsProveEngineerId2",lawsProveEngineer);
delegateTask.setVariable("lawsProveEngineerVerify",0);
@@ -42,14 +42,7 @@ public class FillCommentAfter implements TaskListener {
if(StringUtils.isNotBlank(responseDocker)){
JSONArray commentCollectionList =delegateTask.getVariable("commentCollectionList", JSONArray.class);
if (commentCollectionList==null) {
commentCollectionList=new JSONArray();
}
commentCollectionList.addAll(object.getJSONArray("info"));
delegateTask.setVariable("commentCollectionList",commentCollectionList);
delegateTask.setVariable("responseDockerId",responseDocker);
nextUserList= Arrays.asList(responseDocker.split(","));
delegateTask.addCandidateUsers(nextUserList);