增加保存的字段

This commit is contained in:
zhangjun
2022-09-01 16:11:19 +08:00
parent 9f03861324
commit 3a12d2ad88
2 changed files with 12 additions and 1 deletions
@@ -89,5 +89,8 @@ public class SarInterpretationNationalStandard {
@ApiModelProperty(value = "风险程度")
private String riskDegree;
@ApiModelProperty(value = "流程编号")
private String prcNum;
}
@@ -44,7 +44,13 @@ public class DeptApplayAfter implements TaskListener{
List<String> nextUserList = new ArrayList();
QueryWrapper queryWrapperByPrcNum = new QueryWrapper();
queryWrapperByPrcNum.eq("PRC_ID",delegateTask.getProcessInstanceId());
BusProcessName onePrcNum = busProcessNameService.getOne(queryWrapperByPrcNum);
String prcNum = "";
if (null != onePrcNum) {
prcNum = onePrcNum.getPrcNum();
}
String prcName = object.getString("itemsNum")+"-"+object.getString("itemsName")+"-"+"解读";
//部长进行审批(1:通过)
@@ -53,6 +59,7 @@ public class DeptApplayAfter implements TaskListener{
JSONArray jsonArray=JSONArray.parseArray(object.getString("itemList"));
List<SarStandItems> sarStandItems=new ArrayList<>();
List<SarInterpretationNationalStandard> standards=new ArrayList<>();
String finalPrcNum = prcNum;
jsonArray.forEach(o -> {
JSONObject os=JSONObject.parseObject(o.toString());
//分解单数据
@@ -87,6 +94,7 @@ public class DeptApplayAfter implements TaskListener{
standard.setStandNumber(object.getString("itemsNum"));
standard.setInterpretationTime(new Date());
standard.setRiskDegree("0");
standard.setPrcNum(finalPrcNum);
standards.add(standard);
});