53 lines
1.9 KiB
Java
53 lines
1.9 KiB
Java
|
|
package com.gunshi.project.hsz.controller;
|
||
|
|
|
||
|
|
import com.gunshi.core.result.R;
|
||
|
|
import com.gunshi.db.dto.DateRangeSo;
|
||
|
|
import com.gunshi.db.dto.MonthRangeSo;
|
||
|
|
import com.gunshi.project.hsz.entity.vo.WaterAnalysisVo;
|
||
|
|
import com.gunshi.project.hsz.entity.vo.WaterCapacityAnalysisVo;
|
||
|
|
import com.gunshi.project.hsz.model.WaterDispatch;
|
||
|
|
import com.gunshi.project.hsz.model.XlPlan;
|
||
|
|
import com.gunshi.project.hsz.service.WaterCountAnalysisService;
|
||
|
|
import com.gunshi.project.hsz.service.XlPlanService;
|
||
|
|
import io.swagger.v3.oas.annotations.Operation;
|
||
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
|
import org.springframework.web.bind.annotation.*;
|
||
|
|
|
||
|
|
import java.io.Serializable;
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
@Tag(name = "水资源调度-统计分析")
|
||
|
|
@RestController
|
||
|
|
@RequestMapping(value="/wca")
|
||
|
|
public class WaterCountAnalysisController {
|
||
|
|
|
||
|
|
|
||
|
|
@Autowired
|
||
|
|
private WaterCountAnalysisService waterCountAnalysisService;
|
||
|
|
|
||
|
|
|
||
|
|
@Operation(summary = "供水分析")
|
||
|
|
@GetMapping("/waterSupplyAnalysis")
|
||
|
|
public R<List<WaterAnalysisVo>> waterSupplyAnalysis(@RequestParam("id") Serializable id) {
|
||
|
|
|
||
|
|
List<WaterAnalysisVo> res = waterCountAnalysisService.waterSupplyAnalysis(id);
|
||
|
|
return R.ok(res);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
@Operation(summary = "调度执行分析")
|
||
|
|
@GetMapping("/waterDispatchAnalysis")
|
||
|
|
public R<List<WaterDispatch>> waterDispatchAnalysis(@RequestParam("year") Serializable year) {
|
||
|
|
List<WaterDispatch> res = waterCountAnalysisService.waterDispatchAnalysis(year);
|
||
|
|
return R.ok(res);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Operation(summary = "水库蓄水量分析")
|
||
|
|
@PostMapping("/waterCapacityAnalysis")
|
||
|
|
public R<List<WaterCapacityAnalysisVo>> waterCapacityAnalysis(@RequestBody DateRangeSo dateRangeSo) {
|
||
|
|
List<WaterCapacityAnalysisVo> res = waterCountAnalysisService.waterCapacityAnalysis(dateRangeSo);
|
||
|
|
return R.ok(res);
|
||
|
|
}
|
||
|
|
}
|