czt
2025-06-12 930d29f39d115fe76c305af4320c2acbcb30c445
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
package com.ld.igds.m.mapper;
 
import com.ld.igds.inout.dto.InoutParam;
import com.ld.igds.m.dto.NoticeInData;
import com.ld.igds.m.dto.NoticeParam;
import com.ld.igds.models.*;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * 出入库开始前的各种配置 --- 包含流程配置、出入库设备配置、通知单等
 *
 * @author chen
 */
public interface InoutCommonMapper {
 
 
    /**
     * 出入库设备 - 根据组织编码获取
     *
     * @param companyId
     * @return
     */
    List<InoutConf> listInoutConf(@Param("companyId") String companyId, @Param("deptId") String deptId);
 
    /**
     * 出入库设备 - 更新状态
     *
     * @param ip
     * @param port
     * @param status
     */
    void updateInoutConfStatus(@Param("ip") String ip,
                               @Param("port") Integer port,
                               @Param("status") String status);
 
    /**
     * 往来单位 - 根据参数从客户表获取
     *
     * @param param
     * @return
     */
    List<InoutCustomer> listCustomer(@Param("param") InoutParam param);
 
    /**
     * 往来单位 - 从入库通知单中获取
     *
     * @param param
     * @return
 
    List<InoutCustomer> listCustomerByNoticeIn(@Param("param") InoutParam param);
     */
 
    /**
     * 往来单位 - 从出库通知单中获取
     *
     * @param param
     * @return
 
    List<InoutCustomer> listCustomerByNoticeOut(@Param("param") InoutParam param);
     */
    /**
     * 往来单位 - 更新信息
     *
     * @param data
     * @return
     */
    int updateCustomer(@Param("data") NoticeInData data);
 
    /**
     * 往来单位 - 获取编码最大的单位
     *
     * @param companyId
     * @return
     */
    String getMaxCustomerId(@Param("companyId") String companyId);
 
 
    /**
     * 入库通知单 - 新增数据
     *
     * @param param
     */
    void addNoticeIn(@Param("param") InoutNoticeIn param);
 
    /**
     * 入库通知单 - 更新数据
     *
     * @param data
     * @return
     */
    int updateNoticeIn(@Param("data") NoticeInData data);
 
    /**
     * 入库通知单 - 获取所有未完成状态信息
     *
     * @param companyId
     * @return
     */
    List<InoutNoticeIn> getUnComNoticeIn(@Param("companyId") String companyId);
 
    /**
     * 入库通知单 - 根据参数重新计算完成量
     *
     * @param param
     * @return
     */
    int reSumNoticeInComplete(@Param("param") NoticeParam param);
 
    /**
     * 查询出库通知单
     *
     * @param param
     * @return
     */
    Integer queryNoticeOut(@Param("param") NoticeParam param);
 
    /**
     * 查询入库通知单
     *
     * @param param
     * @return
     */
    Integer queryNoticeIn(@Param("param") NoticeParam param);
 
    /**
     * 出库通知单 - 获取所有未完成状态信息
     *
     * @param companyId
     * @return
     */
    List<InoutNoticeOut> getUnComNoticeOut(@Param("companyId") String companyId);
 
    /**
     * 出库通知单 - 根据参数重新计算完成量
     *
     * @param param
     * @return
     */
    int reSumNoticeOutComplete(@Param("param") NoticeParam param);
 
 
    /**
     * 获取入库通知单列表
     *
     * @param param
     * @return
     */
    List<InoutNoticeIn> listNoticeIn(@Param("param") NoticeParam param);
 
    /**
     * 获取出库通知单列表
     *
     * @param param
     * @return
     */
    List<InoutNoticeOut> listNoticeOut(@Param("param") NoticeParam param);
}