fix: 企标制修订产品标准流程表单修改,流程意见处理

This commit is contained in:
wxyclub
2024-01-02 14:26:17 +08:00
parent 603b5c19ba
commit 3d8e6129c5
@@ -30,7 +30,14 @@ public class BussLibraryProduct6Before implements TaskListener{
String msg = one1.getMesg();
JSONObject jsonObject = JSON.parseObject(msg);
JSONArray ideaList=delegateTask.getVariable("ideaList",JSONArray.class);
jsonObject.put("infoList",ideaList);
JSONObject form = jsonObject.getJSONObject("form");
// 如果没有form,就用object,用于兼容以前的数据
if(form == null){
jsonObject.put("infoList",ideaList);
} else {
form.put("infoList",ideaList);
jsonObject.put("form", form);
}
one1.setMesg(jsonObject.toJSONString());
one1.setTaskId(delegateTask.getId());