2025-07-17 15:26:39 +08:00
|
|
|
package com.gunshi.project.hsz.controller;
|
2024-09-24 13:33:32 +08:00
|
|
|
|
|
|
|
|
import com.gunshi.core.annotation.Get;
|
|
|
|
|
import com.gunshi.core.annotation.Post;
|
|
|
|
|
import com.gunshi.core.result.R;
|
2025-07-17 15:26:39 +08:00
|
|
|
import com.gunshi.project.hsz.entity.so.DataQueryCommonSo;
|
2025-09-03 14:13:30 +08:00
|
|
|
import com.gunshi.project.hsz.entity.vo.AttRiverNowDataVo;
|
2025-07-17 15:26:39 +08:00
|
|
|
import com.gunshi.project.hsz.entity.vo.AttRvBaseVo;
|
|
|
|
|
import com.gunshi.project.hsz.entity.vo.AttRvMonitorDetailVo;
|
|
|
|
|
import com.gunshi.project.hsz.entity.vo.AttRvMonitorVo;
|
|
|
|
|
import com.gunshi.project.hsz.model.StZqrlB;
|
|
|
|
|
import com.gunshi.project.hsz.service.RiverWaterService;
|
2024-09-24 13:33:32 +08:00
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Description:
|
|
|
|
|
* Created by wanyan on 2024/2/21
|
|
|
|
|
*
|
|
|
|
|
* @author wanyan
|
|
|
|
|
* @version 1.0
|
|
|
|
|
*/
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/river/water")
|
|
|
|
|
@Tag(name = "河道水情")
|
|
|
|
|
public class RiverWaterController {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private RiverWaterService riverWaterService;
|
|
|
|
|
|
2025-09-08 15:43:17 +08:00
|
|
|
@Get(path = "/get", summary = "河道水情上下游")
|
2025-09-03 14:13:30 +08:00
|
|
|
public R<List<AttRvBaseVo>> list(@RequestParam("stcd") String stcd) {
|
|
|
|
|
return R.ok(riverWaterService.list(stcd));
|
2024-09-24 13:33:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Get(path = "/zqrl", summary = "水位流量关系")
|
|
|
|
|
public R<List<StZqrlB>> zqrl(@Schema(name = "stcd") @RequestParam("stcd") String stcd) {
|
|
|
|
|
return R.ok(riverWaterService.zqrl(stcd));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-09-03 14:13:30 +08:00
|
|
|
@Post(path = "/monitor/data", summary = "监测数据(上方表格)")
|
2024-09-24 13:33:32 +08:00
|
|
|
public R<List<AttRvMonitorVo>> monitorData(@RequestBody @Validated DataQueryCommonSo dataQueryCommonSo) {
|
|
|
|
|
return R.ok(riverWaterService.monitorData(dataQueryCommonSo));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Get(path = "/detail", summary = "监测详细数据(下方表格)")
|
|
|
|
|
public R<AttRvMonitorDetailVo> detail(@Schema(name = "stcd") @RequestParam("stcd") String stcd) {
|
|
|
|
|
return R.ok(riverWaterService.detail(stcd));
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-03 14:13:30 +08:00
|
|
|
@Get(path = "/nowData",summary = "实时监测")
|
|
|
|
|
public R<AttRiverNowDataVo> nowData(@RequestParam("stcd") String stcd) {
|
|
|
|
|
return R.ok(riverWaterService.nowData(stcd));
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-24 13:33:32 +08:00
|
|
|
|
|
|
|
|
}
|