CZT
2023-09-06 71c4fa1e27f75ae4b765c95c67a3069c84dc72ba
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
52
53
54
55
56
57
58
59
60
61
package com.ld.igds.three.mapper;
 
import com.ld.igds.gas.dto.GasData;
import com.ld.igds.grain.dto.GrainData;
import com.ld.igds.models.Depot;
import com.ld.igds.models.MWarnInfo;
import com.ld.igds.pest.dto.PestData;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 *
 * @author chen
 */
public interface ThreeMapper {
 
    /**
     * 根据条件获取仓库信息
     * @param companyId
     * @param deptId
     * @param id
     * @return
     */
    List<Depot> getDepotList(@Param("companyId") String companyId,
                             @Param("deptId") String deptId,
                             @Param("id") String id);
 
    /**
     * 根据条件查询警告信息(默认查询当天,返回5条)
     * @param companyId
     * @param deptId
     * @param depotId
     * @return
     */
    List<MWarnInfo> getWarnList(@Param("companyId") String companyId,
                                @Param("deptId") String deptId,
                                @Param("depotId") String depotId);
 
    /**
     * 查询所有仓库粮情(每个仓库取最新的一条)
     * @param companyId
     * @return
     */
    List<GrainData> getGrainAll(@Param("companyId") String companyId);
 
    /**
     * 查询所有仓库气体信息(每个仓库取最新的一条)
     * @param companyId
     * @return
     */
    List<GasData> getGasAll(@Param("companyId") String companyId);
 
    /**
     * 查询所有仓库虫害信息(每个仓库取最新的一条)
     * @param companyId
     * @return
     */
    List<PestData> getPestAll(@Param("companyId") String companyId);
 
}