diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java index 58e2dfd19..a003ff9cb 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java @@ -218,13 +218,6 @@ public class WxFlowServiceImpl implements WxFlowService { wxFlowRecord.setStatus(EnumFlowRecordStatus.ASSIGNEE.getCode()); result.add(0,wxFlowRecord); } - - for (WxFlowRecord wxFlowRecord:result) { - if(wxFlowRecord.getStatus() == 1){ - wxFlowRecord.setIsLastStart(1); - break; - } - } } @@ -282,6 +275,15 @@ public class WxFlowServiceImpl implements WxFlowService { continue; } } + + if(CollectionUtils.isNotEmpty(resultList)){ + for (WxFlowRecord wxFlowRecord:resultList) { + if(wxFlowRecord.getStatus() == 1){ + wxFlowRecord.setIsLastStart(1); + break; + } + } + } return new ResultData(resultList); }