提交修改
This commit is contained in:
parent
7dd32338bd
commit
cc1cf79bb0
@ -73,6 +73,13 @@ public class FlowServiceImpl extends ServiceImpl<FlowMapper, Flow> implements Fl
|
|||||||
@Override
|
@Override
|
||||||
public FlowChart selectFlowChartByChartId(Long flowId) {
|
public FlowChart selectFlowChartByChartId(Long flowId) {
|
||||||
Flow flow = flowMapper.selectFlowById(flowId);
|
Flow flow = flowMapper.selectFlowById(flowId);
|
||||||
|
if(flow == null){
|
||||||
|
flow = flowMapper.selectFlowById(flowId -1 );
|
||||||
|
if(flow == null){
|
||||||
|
flow = flowMapper.selectFlowById(flowId + 1 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FlowChart flowChart = flowChartService.selectFlowChartById(flow.getChartId());
|
FlowChart flowChart = flowChartService.selectFlowChartById(flow.getChartId());
|
||||||
return flowChart;
|
return flowChart;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user