|
|
|
|
@ -28,7 +28,6 @@ package org.springblade.desk.energy.controller; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
|
import io.swagger.v3.oas.annotations.Parameter; |
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
|
@ -83,7 +82,7 @@ public class BsEnergyTargetController extends BladeController { |
|
|
|
|
* 能耗目标表 获取用水目标 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/detailByWater") |
|
|
|
|
@Operation(summary = "详情", description = "获取用水目标") |
|
|
|
|
@Operation(summary = "根据月份获取用水目标", description = "获取用水目标") |
|
|
|
|
public R<BigDecimal> getWaterTargetByMonth(String month) { |
|
|
|
|
BigDecimal waterTarget = bsEnergyTargetService.getWaterTargetByMonth(month); |
|
|
|
|
return R.data(waterTarget); |
|
|
|
|
@ -93,7 +92,7 @@ public class BsEnergyTargetController extends BladeController { |
|
|
|
|
* 能耗目标表 获取用水目标 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/detailByElectric") |
|
|
|
|
@Operation(summary = "详情", description = "获取用水目标") |
|
|
|
|
@Operation(summary = "根据月份获取用电目标", description = "获取用电目标") |
|
|
|
|
public R<BigDecimal> getElectricTargetByMonth(String month) { |
|
|
|
|
BigDecimal electricTarget = bsEnergyTargetService.getElectricTargetByMonth(month); |
|
|
|
|
return R.data(electricTarget); |
|
|
|
|
|