燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-08-10 ba0944e4d2877bf9488734945004a3776cfc3e76
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
46
47
48
49
50
51
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 {
    /**
     * 分页查询报告
     */
    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);
 
    /**
     * 根据时间查询溯源
     */
    List<SuYuan700> selectSuYuanByTime(@Param("id") String id, @Param("start") String start, @Param("end") String end);
}