czt
2024-07-13 bd01ba57ed8526a0ee94a50e1f52034251bb54f6
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
62
63
64
65
66
67
68
69
70
package com.ld.igds.gas;
 
import com.ld.igds.gas.dto.GasData;
import com.ld.igds.gas.dto.GasParam;
import com.ld.igds.models.Gas;
import com.ld.igds.models.GasInfo;
 
import java.util.List;
import java.util.Map;
 
/**
 * 气体模块核心接口
 *
 * @author vince
 */
public interface CoreGasService {
 
    String BEAN_ID = "core.gasService";
 
    /**
     * 根据条件分页获取数据信息
     *
     * @param param
     * @return
     */
    List<GasData> pageQueryList(GasParam param);
 
    /**
     * 根据条件分页获取报表信息
     *
     * @param param
     * @return
     */
    List<GasData> queryChartList(GasParam param);
 
    /**
     * 根据参数获取 详细的Gas信息
     *
     * @param parameter
     * @return
     */
    List<GasInfo> getInfoGas(Map<String, Object> parameter) throws Exception;
 
    void saveInfoGas(List<GasInfo> result);
 
    /**
     * 保存气体信息
     *
     * @param gas
     */
    void saveOrUpdateData(Gas gas);
 
    /**
     * 缓存中存放最新的气体信息,以仓库为KEY存放在缓存中
     *
     * @param companyId
     * @return deptId=当前分库编码
     */
    List<GasData> listCacheData(String companyId, String deptId);
 
 
    /**
     * 获取缓存中的气体信息,并转换为MAP
     *
     * @param companyId
     * @param deptId
     * @return
     */
    Map<String, GasData> cacheMapGasData(String companyId, String deptId);
}