| | |
| | | package com.yssh.mapper; |
| | | |
| | | import com.yssh.entity.SuYuan700; |
| | | import com.yssh.entity.xls.XlsReport; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * XlsReportMapper |
| | | * @author WWW |
| | | * @date 2023-08-09 |
| | | */ |
| | | @Mapper |
| | | public interface XlsReportMapper { |
| | | int insert(XlsReport xls); |
| | | /** |
| | | * 查询报告记录数 |
| | | */ |
| | | Integer selectReportCount(@Param("type") String type, @Param("start") String start, @Param("end") String end, @Param("limit") Integer limit, @Param("offset") Integer offset); |
| | | |
| | | List<XlsReport> selectByPage(@Param("type") String type, @Param("start") Integer start, @Param("end") Integer end, @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize); |
| | | /** |
| | | * 分页查询报告 |
| | | */ |
| | | List<XlsReport> selectReportByPage(@Param("type") String type, @Param("start") String start, @Param("end") String end, @Param("limit") Integer limit, @Param("offset") Integer offset); |
| | | |
| | | /** |
| | | * 根据ID查询报告 |
| | | */ |
| | | XlsReport selectById(@Param("id") Integer id); |
| | | |
| | | /** |
| | | * 报告是否存在 |
| | | */ |
| | | int reportExists(@Param("type") String type, @Param("name") String name); |
| | | |
| | | /** |
| | | * 插入报告 |
| | | */ |
| | | int insertReport(XlsReport xls); |
| | | |
| | | /** |
| | | * 查询日均值 |
| | | */ |
| | | double selectDayAvg(@Param("time") String time, @Param("name") String name); |
| | | |
| | | /** |
| | | * 查询累计值 |
| | | */ |
| | | double selectAccumulate(@Param("start") Integer start, @Param("end") Integer end, @Param("name") String name); |
| | | |
| | | /** |
| | | * 查询年累计值 |
| | | */ |
| | | double selectYearAccumulate(@Param("time") String time, @Param("name") String name); |
| | | |
| | | /** |
| | | * 根据时间查询溯源 |
| | | */ |
| | | List<SuYuan700> selectSuYuanByTime(@Param("id") String id, @Param("start") String start, @Param("end") String end); |
| | | |
| | | /** |
| | | * 根据时间段查询溯源 |
| | | */ |
| | | List<SuYuan700> selectSuYuanByStartAndEnd(@Param("id") String id, @Param("name") String name, @Param("yjz") double yjz, @Param("start") Integer start, @Param("end") Integer end); |
| | | } |