保存流程节点是如果不传不走类型,默认设置为依次

This commit is contained in:
wulin 2020-11-05 18:18:00 +08:00
parent 35fdbd38c2
commit a183e27678

View File

@ -157,10 +157,14 @@ public class FlowChartController {
flowChartDetailRecord.setEvaluationGroupId(flowChartDetailRecordListReq.getEvaluationGroupId());
flowChartDetailRecord.setStepIndex(index);
flowChartDetailRecord.setStatus(flowChartDetailRecordListReq.getStatus());
if(flowChartDetailRecord.getId() != null && flowChartDetailRecord.getId().intValue() > 0){
updaes.add(flowChartDetailRecord);
}else{
if(flowChartDetailRecord.getStepType() == null){//添加时默认没有设置步骤类型那么设置成一次
flowChartDetailRecord.setStepType(0);
}
inserts.add(flowChartDetailRecord);
}
if(flowChartDetailRecord.getIsDelete() == null || flowChartDetailRecord.getIsDelete().intValue() == 0){