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