57 lines
2.0 KiB
Java
57 lines
2.0 KiB
Java
|
|
package com.gunshi.project.xyt.controller;
|
||
|
|
|
||
|
|
import com.gunshi.core.result.R;
|
||
|
|
import com.gunshi.db.dto.DateRangeSo;
|
||
|
|
import com.gunshi.project.xyt.entity.vo.SdJyRbVo;
|
||
|
|
import com.gunshi.project.xyt.entity.vo.SdSwRbVo;
|
||
|
|
import com.gunshi.project.xyt.service.StatisticsService;
|
||
|
|
import io.swagger.v3.oas.annotations.Operation;
|
||
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||
|
|
import jakarta.servlet.http.HttpServletResponse;
|
||
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
|
import org.springframework.validation.annotation.Validated;
|
||
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
||
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 描述: 报图报表
|
||
|
|
* author: xusan
|
||
|
|
* date: 2024-07-08 17:40:37
|
||
|
|
*/
|
||
|
|
@Tag(name = "报图报表")
|
||
|
|
@RestController
|
||
|
|
@RequestMapping(value="/statistics")
|
||
|
|
public class StatisticsController{
|
||
|
|
|
||
|
|
@Autowired
|
||
|
|
private StatisticsService service;
|
||
|
|
|
||
|
|
@Operation(summary = "时段降雨日报表")
|
||
|
|
@PostMapping("/sdJyRb")
|
||
|
|
public R<List<SdJyRbVo>> sdJyRb(@Validated @RequestBody DateRangeSo dateRangeSo) {
|
||
|
|
return R.ok(service.sdJyRb(dateRangeSo));
|
||
|
|
}
|
||
|
|
|
||
|
|
@Operation(summary = "时段降雨日报表导出")
|
||
|
|
@PostMapping( "/sdJyRb/export")
|
||
|
|
public void export(@RequestBody @Validated DateRangeSo dateRangeSo, HttpServletResponse response) {
|
||
|
|
service.sdJyRbExport(dateRangeSo,response);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Operation(summary = "时段水位日报表")
|
||
|
|
@PostMapping("/sdSwRb")
|
||
|
|
public R<List<SdSwRbVo>> sdSwRb(@Validated @RequestBody DateRangeSo dateRangeSo) {
|
||
|
|
return R.ok(service.sdSwRb(dateRangeSo));
|
||
|
|
}
|
||
|
|
|
||
|
|
@Operation(summary = "时段水位日报表导出")
|
||
|
|
@PostMapping("/sdSwRb/export")
|
||
|
|
public void sdSwRbExport(@Validated @RequestBody DateRangeSo dateRangeSo, HttpServletResponse response) {
|
||
|
|
service.sdSwRbExport(dateRangeSo,response);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|