CZT
2023-11-27 c206acfaedc69c390fb67daa81bc686f58a212ef
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.ld.igds.common.mapper;
 
import com.bstek.bdf2.core.model.DefaultUser;
import com.ld.igds.common.dto.DepotParam;
import com.ld.igds.models.Depot;
import com.ld.igds.models.DepotConf;
import com.ld.igds.models.DepotStore;
import com.ld.igds.models.ThreeConf;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
public interface CommonMapper {
 
 
    /**
     * 从数据库中查询到仓库的信息
     *
     * @param companyId
     * @param depotId
     * @return
     */
    Depot getDepotById(@Param("companyId") String companyId, @Param("depotId") String depotId);
 
    /**
     * 根据参数更新仓库状态
     *
     * @param companyId
     * @param depotId
     * @param status
     */
    void updateDepotStatus(@Param("companyId") String companyId, @Param("depotId") String depotId, @Param("status") String status);
 
 
    /**
     * 更新当前仓的实时库存
     *
     * @param param
     */
    void updateDepotStorage(@Param("param") DepotParam param);
 
    /**
     * 根据组织编码查询所有的三维配置信息
     *
     * @param companyId
     * @return
     */
    List<ThreeConf> getAllThreeConf(@Param("companyId") String companyId);
 
    /**
     * 根据组织编码和三维ID查询三维配置信息
     *
     * @param companyId
     * @return
     */
    ThreeConf getThreeConfByUid(@Param("companyId") String companyId,
                                @Param("uid") String uid);
 
 
    /**
     * 更新信息
     *
     * @param depot
     * @return
     */
    int updateDepot(@Param("data") Depot depot);
 
    /**
     * 新增仓库
     *
     * @param depot
     */
    void addDepot(@Param("data") Depot depot);
 
    /**
     * 跟新仓库配置
     *
     * @param depotConf
     * @return
     */
    int updateDepotConf(@Param("data") DepotConf depotConf);
 
    /**
     * 新增仓库配置
     *
     * @param depotConf
     */
    void addDepotConf(@Param("data") DepotConf depotConf);
 
 
    /**
     * 根据仓库编号和仓库状态获取当前仓库下的最后一车记录
     *
     * @param depotId
     * @return
     */
    DepotStore getLastDepotStore(@Param("depotId") String depotId);
 
    /**
     * 新增仓库库存记录信息
     *
     * @param depotStore
     */
    void addDepotStore(@Param("data") DepotStore depotStore);
 
    /**
     * 根据用户账号获取用户信息
     * @param companyId
     * @param listUser
     * @return
     */
    List<DefaultUser> getUserByList(@Param("companyId") String companyId, @Param("listUser") List<String> listUser);
}