jiazx0107@163.com
2023-05-17 620eab6cca2bc9ef9ea6d3067a0a5ba1deadbd1c
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
package com.ld.igds.quantity.service;
 
import com.ld.igds.models.QuantityConf;
import com.ld.igds.quantity.dto.QuantityData;
import com.ld.igds.quantity.dto.QuantityParam;
 
import java.util.List;
 
/**
 * 数量检测
 *
 * @author jiazx
 */
public interface CoreQuantityService {
 
    String BEAN_ID = "core.quantityService";
 
    void saveData(QuantityData data);
 
    QuantityData getLastData(QuantityParam param);
 
    /**
     * 将仓库配置参数信息存放在缓存中
     *
     * @param list
     */
    void setCacheQuantityConf(List<QuantityConf> list);
 
    /**
     * 根据组织编码和仓库编码获取仓库的参数配置信息
     *
     * @param companyId
     * @param depotId
     * @return
     */
    QuantityConf getCacheQuantityConf(String companyId, String depotId);
 
    /**
     * 根据组织编号获取所有的数量检测配置信息
     * @param companyId
     * @return
     */
    List<QuantityConf> getCacheQuantityConf(String companyId);
 
    /**
     * 刷新缓存
     */
    void refreshQuantityConfCache();
 
    QuantityConf getCacheQuantityConfBySn(String sn);
 
    void updateQuantityConfBySn(QuantityConf ser);
 
    /**
     * 根据参数获取检测数据
     *
     * @param param
     * @return
     */
    List<QuantityData> getQuantityData(QuantityParam param);
 
    /**
     * 根据条件获取固定个数数据
     *
     * @param param
     * @return
     */
    List<QuantityData> getDataByLimit(QuantityParam param);
}