修复保存节点小流程时没有保存关闭节点功能更
This commit is contained in:
parent
f1b01745cf
commit
9b9abc0f2e
@ -150,12 +150,14 @@ public class FlowChartController {
|
||||
flowChartDetailRecord.setChartId(flowChartDetailRecordListReq.getId());
|
||||
flowChartDetailRecord.setEvaluationGroupId(flowChartDetailRecordListReq.getEvaluationGroupId());
|
||||
flowChartDetailRecord.setStepIndex(index);
|
||||
flowChartDetailRecord.setStatus(flowChartDetailRecordListReq.getStatus());
|
||||
if(flowChartDetailRecord.getId() != null && flowChartDetailRecord.getId().intValue() > 0){
|
||||
updaes.add(flowChartDetailRecord);
|
||||
}else{
|
||||
inserts.add(flowChartDetailRecord);
|
||||
}
|
||||
if(flowChartDetailRecord.getIsDelete() == null || flowChartDetailRecord.getIsDelete().intValue() == 0){
|
||||
//本节点没有删除,那么顺序++
|
||||
index++;
|
||||
}
|
||||
|
||||
|
||||
@ -110,7 +110,7 @@
|
||||
</update>
|
||||
|
||||
<select id="selectFlowChartDetailRecordByGroupIdAndChartId" resultType="FlowChartDetailRecord" >
|
||||
select * from lz_flow_chart_detail_record where evaluation_group_id=#{groupId} and chart_id = #{chartId} and is_delete = 0 order by step_index desc
|
||||
select * from lz_flow_chart_detail_record where evaluation_group_id=#{groupId} and chart_id = #{chartId} and is_delete = 0 order by step_index asc
|
||||
</select>
|
||||
|
||||
<select id="selectFlowChartDetailRecordByGroupId" resultType="FlowChartDetailRecord" >
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user