|
|
|
@@ -88,13 +88,17 @@ public class WxRentContractController extends WxContractBaseController { |
|
|
|
wxRentContract.setSortColumns(SortField.Createtime_DESC); |
|
|
|
//Map<String, Object> result = wxRentContractService.listAsPage(wxRentContract, pageNum, pageSize); |
|
|
|
PageInfo<WxRentContract> page = wxRentContractService.getRentContractList(wxRentContract, pageNum, pageSize); |
|
|
|
Integer hasFlow = null; |
|
|
|
if (null != page && null != page.getList()) { |
|
|
|
for (WxRentContract wrc: page.getList()) { |
|
|
|
if(rentContractHasWorkFlow(wrc)) { |
|
|
|
wrc.setFlowHas(1); |
|
|
|
}else { |
|
|
|
wrc.setFlowHas(0); |
|
|
|
if (null == hasFlow) { |
|
|
|
if(rentContractHasWorkFlow(wrc)) { |
|
|
|
hasFlow = 1; |
|
|
|
}else { |
|
|
|
hasFlow = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
wrc.setFlowHas(hasFlow); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|