Commit 1a5ddac2 authored by chenzhao's avatar chenzhao

Merge

parent 8c66a79b
...@@ -224,24 +224,21 @@ public class WorkOrderController extends BaseController { ...@@ -224,24 +224,21 @@ public class WorkOrderController extends BaseController {
if (workOrder.getType().equals("3") && workOrderPowerStationNodes != null){ if (workOrder.getType().equals("3") && workOrderPowerStationNodes != null){
workOrderPagePage.getRecords().forEach(e->{ workOrderPagePage.getRecords().forEach(e->{
if (workOrderPowerStationNodes.contains(e.getWorkOrderPowerStationNode()) && (roleIds.contains(areaId) ||roleIds.contains(designId) || roleIds.contains(engineeringId)) ){ if (workOrderPowerStationNodes.contains(e.getWorkOrderPowerStationNode()) && (roleIds.contains(areaId) ||roleIds.contains(designId) || roleIds.contains(engineeringId)) ){
if (workOrderPowerStationNodes.contains(e.getWorkOrderPowerStationNode())){
e.setIsAudit("0"); e.setIsAudit("0");
} }
else { else {
e.setIsAudit("1"); e.setIsAudit("1");
} }
});
}
workOrderPagePage.getRecords().forEach(e->{
if(e.getPeasantHouseholdNo() != null) { if(e.getPeasantHouseholdNo() != null) {
e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo())); e.setScale(householdContractMapper.getHygfCommercialScale(e.getPeasantHouseholdNo()));
} }
}); });
}
return ResponseHelper.buildResponse(workOrderPagePage); return ResponseHelper.buildResponse(workOrderPagePage);
} }
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping (value = "/wgpageList") @PostMapping (value = "/wgpageList")
@ApiOperation(httpMethod = "GET",value = "无分页查询", notes = "无分页查询") @ApiOperation(httpMethod = "GET",value = "无分页查询", notes = "无分页查询")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment