|
@@ -41,13 +41,18 @@ public class AppPageReportController {
|
|
@ApiOperation(value = "App总览——生产数据(本月)")
|
|
@ApiOperation(value = "App总览——生产数据(本月)")
|
|
public AjaxMessage<Map<String,Object>> getProductionDataForMonth(
|
|
public AjaxMessage<Map<String,Object>> getProductionDataForMonth(
|
|
@ApiParam(value = "公司id,总公司传空值") @RequestParam(required = false) Integer companyOrgId){
|
|
@ApiParam(value = "公司id,总公司传空值") @RequestParam(required = false) Integer companyOrgId){
|
|
|
|
+ LocalDate localDate = LocalDate.now();
|
|
List<DeviceWaterSupply> intakeWaterList = appPageReportService.deviceWaterReportForMonth(companyOrgId,"水源",4,1);
|
|
List<DeviceWaterSupply> intakeWaterList = appPageReportService.deviceWaterReportForMonth(companyOrgId,"水源",4,1);
|
|
List<DeviceWaterSupply> makingWaterList = appPageReportService.deviceWaterReportForMonth(companyOrgId,"水厂",3,1);
|
|
List<DeviceWaterSupply> makingWaterList = appPageReportService.deviceWaterReportForMonth(companyOrgId,"水厂",3,1);
|
|
List<DeviceWaterSupply> sellerWaterList = appPageReportService.deviceSellerWaterReportForMonth(companyOrgId,1);
|
|
List<DeviceWaterSupply> sellerWaterList = appPageReportService.deviceSellerWaterReportForMonth(companyOrgId,1);
|
|
|
|
+ List<DeviceWaterSupply> intakeDayList = appPageReportService.deviceWaterReportForDay(companyOrgId,"水源",4, localDate.getDayOfMonth());
|
|
|
|
+ List<DeviceWaterSupply> makingDayList = appPageReportService.deviceWaterReportForDay(companyOrgId,"水厂",3, localDate.getDayOfMonth());
|
|
Map<String,Object> map = new HashMap<String,Object>();
|
|
Map<String,Object> map = new HashMap<String,Object>();
|
|
map.put("intake", intakeWaterList);
|
|
map.put("intake", intakeWaterList);
|
|
map.put("making", makingWaterList);
|
|
map.put("making", makingWaterList);
|
|
map.put("seller", sellerWaterList);
|
|
map.put("seller", sellerWaterList);
|
|
|
|
+ map.put("intakeDetail",intakeDayList);
|
|
|
|
+ map.put("makingkeDetail",makingDayList);
|
|
appPageReportService.CalculationNrw(intakeWaterList,makingWaterList,sellerWaterList,map);
|
|
appPageReportService.CalculationNrw(intakeWaterList,makingWaterList,sellerWaterList,map);
|
|
return new AjaxMessage<>(ResultStatus.OK,map);
|
|
return new AjaxMessage<>(ResultStatus.OK,map);
|
|
}
|
|
}
|
|
@@ -367,6 +372,9 @@ public class AppPageReportController {
|
|
public AjaxMessage<Object> getSceneAmountForSameMonth(@ApiParam(value = "公司id,总公司传空值") @RequestParam(required = false) Long companyOrgId){
|
|
public AjaxMessage<Object> getSceneAmountForSameMonth(@ApiParam(value = "公司id,总公司传空值") @RequestParam(required = false) Long companyOrgId){
|
|
Map<String,Object> map = new HashMap<String,Object>();
|
|
Map<String,Object> map = new HashMap<String,Object>();
|
|
List<Map<String,Object>> amount = appPageReportService.findSceneAmount(companyOrgId,1);
|
|
List<Map<String,Object>> amount = appPageReportService.findSceneAmount(companyOrgId,1);
|
|
|
|
+ map.put("bigmeter","-");
|
|
|
|
+ map.put("generalmeter","-");
|
|
|
|
+ amount.add(map);
|
|
return new AjaxMessage<>(ResultStatus.OK,amount);
|
|
return new AjaxMessage<>(ResultStatus.OK,amount);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -376,13 +384,18 @@ public class AppPageReportController {
|
|
Map<String,Object> map = new HashMap<String,Object>();
|
|
Map<String,Object> map = new HashMap<String,Object>();
|
|
LocalDate now = LocalDate.now();
|
|
LocalDate now = LocalDate.now();
|
|
List<Map<String,Object>> amount = appPageReportService.findSceneAmount(companyOrgId,now.getMonthValue());
|
|
List<Map<String,Object>> amount = appPageReportService.findSceneAmount(companyOrgId,now.getMonthValue());
|
|
|
|
+ map.put("bigmeter","-");
|
|
|
|
+ map.put("generalmeter","-");
|
|
return new AjaxMessage<>(ResultStatus.OK,amount);
|
|
return new AjaxMessage<>(ResultStatus.OK,amount);
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "getSceneAmountForLast12Month",method = RequestMethod.GET)
|
|
@RequestMapping(value = "getSceneAmountForLast12Month",method = RequestMethod.GET)
|
|
@ApiOperation(value = "App总览——资产情况近一年")
|
|
@ApiOperation(value = "App总览——资产情况近一年")
|
|
public AjaxMessage<Object> getSceneAmountForLast12Month(@ApiParam(value = "公司id,总公司传空值") @RequestParam(required = false) Long companyOrgId){
|
|
public AjaxMessage<Object> getSceneAmountForLast12Month(@ApiParam(value = "公司id,总公司传空值") @RequestParam(required = false) Long companyOrgId){
|
|
|
|
+ Map<String,Object> map = new HashMap<String,Object>();
|
|
List<Map<String,Object>> amount = appPageReportService.findSceneAmount(companyOrgId,12);
|
|
List<Map<String,Object>> amount = appPageReportService.findSceneAmount(companyOrgId,12);
|
|
|
|
+ map.put("bigmeter","-");
|
|
|
|
+ map.put("generalmeter","-");
|
|
return new AjaxMessage<>(ResultStatus.OK,amount);
|
|
return new AjaxMessage<>(ResultStatus.OK,amount);
|
|
}
|
|
}
|
|
}
|
|
}
|