|
@@ -163,6 +163,26 @@ public class ComDisplayController {
|
|
return new AjaxMessage<>(ResultStatus.OK, receFee);
|
|
return new AjaxMessage<>(ResultStatus.OK, receFee);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @RequestMapping(value="selectMapDataForSingleCompany" , method = RequestMethod.GET)
|
|
|
|
+ @ApiOperation(value = "地图详细信息展示-按子公司查询")
|
|
|
|
+ public AjaxMessage<ComdisplayInfoDto> selectMapDataForSinggleCompany(@RequestParam(required = true) Integer companyOrgId) {
|
|
|
|
+ List<ComdisplayInfoDto> receFee = comdisplayMapLocationService.selectMapDataForSingleCompany(companyOrgId);
|
|
|
|
+ if (receFee.size() > 0) {
|
|
|
|
+ receFee.get(0).setCompanyOrgName(orgInfoUtil.getOrgName(receFee.get(0).getCompanyOrgId()));
|
|
|
|
+ Double waterUsage = receFee.get(0).getWaterUsage() != null ? receFee.get(0).getWaterUsage() : 0d;//售水量
|
|
|
|
+ //查询子公司的取水量、制水量 产销差(制水量-售水量)/制水量 X 100%
|
|
|
|
+ ComdisplayInfoDto comdisplayInfoDto = comdisplayMapLocationService.selectMapDataForCompany(Long.valueOf(receFee.get(0).getCompanyOrgId()));
|
|
|
|
+ if (comdisplayInfoDto != null) {
|
|
|
|
+ receFee.get(0).setIntakeWaterUsage(comdisplayInfoDto.getIntakeWaterUsage());
|
|
|
|
+ receFee.get(0).setYieldWaterUsage(comdisplayInfoDto.getYieldWaterUsage());
|
|
|
|
+ if (comdisplayInfoDto.getYieldWaterUsage() != null && comdisplayInfoDto.getYieldWaterUsage() > 0d) {
|
|
|
|
+ receFee.get(0).setWaterFeeRecoveryRate(Double.valueOf(Math.round(((comdisplayInfoDto.getYieldWaterUsage() - waterUsage) / comdisplayInfoDto.getYieldWaterUsage()) * 100)));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK, receFee.get(0));
|
|
|
|
+ }
|
|
|
|
+
|
|
@RequestMapping(value="selectPipeNetLayer" , method = RequestMethod.GET)
|
|
@RequestMapping(value="selectPipeNetLayer" , method = RequestMethod.GET)
|
|
@ApiOperation(value = "查询管网地图图层及设备")
|
|
@ApiOperation(value = "查询管网地图图层及设备")
|
|
public AjaxMessage<List<PipeNetLayerDto>> selectPipeNetLayer(
|
|
public AjaxMessage<List<PipeNetLayerDto>> selectPipeNetLayer(
|