燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-08-10 f71e39c30acb958181f7198b063633a1110c9a1c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.yssh.mapper;
 
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 {
    /**
     * 分页查询报告
     */
    List<XlsReport> selectReportByPage(@Param("type") String type, @Param("start") String start, @Param("end") String end, @Param("limit") Integer limit, @Param("offset") Integer offset);
 
    /**
     * 报告是否存在
     */
    int reportExists(@Param("type") String type, @Param("start") String start);
 
    /**
     * 插入报告
     */
    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);
}