wuxw
2022-07-19 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
package com.java110.order.dao;
 
import com.java110.dto.basePrivilege.BasePrivilegeDto;
import com.java110.dto.businessDatabus.BusinessDatabusDto;
import com.java110.utils.exception.DAOException;
import com.java110.entity.mapping.Mapping;
 
import java.util.List;
import java.util.Map;
 
/**
 * Created by wuxw on 2018/4/14.
 */
public interface ICenterServiceDAO {
 
 
    /**
     * 查询订单
     * @param order
     * @return
     * @throws DAOException
     */
    public Map getOrder(Map order) throws DAOException;
 
    /**
     * 查询订单项
     * @param orderItem
     * @return
     * @throws DAOException
     */
    public List<Map> getOrderItems(Map orderItem) throws DAOException;
 
    /**
     * 保存订单信息
     *
     * @param orderItem 订单信息
     * @return
     */
    public void saveOrderItem(Map orderItem) throws DAOException;
 
    /**
     * 完成订单信息
     *
     * @param orderItem 订单信息
     * @return
     */
    public void updateOrderItem(Map orderItem) throws DAOException;
 
    /**
     * 完成订单信息
     *
     * @param orderItem 订单信息
     * @return
     */
    public void deleteUnItemLog(Map orderItem) throws DAOException;
 
 
    /**
     * 保存订单信息
     *
     * @param order 订单信息
     * @return
     */
    public void saveOrder(Map order) throws DAOException;
 
    /**
     * 保存属性信息
     *
     * @param orderAttrs
     * @return
     */
    public void saveOrderAttrs(List<Map> orderAttrs) throws DAOException;
 
 
    /**
     * 保存订单项信息
     *
     * @param businesses 订单项信息
     * @return
     */
    public void saveBusiness(List<Map> businesses) throws DAOException;
 
    /**
     * 保存订单项信息
     *
     * @param business 订单项信息
     */
    public void saveBusiness(Map business) throws DAOException;
 
    /**
     * 保存属性信息
     *
     * @param businessAttrs
     * @return
     */
    public void saveBusinessAttrs(List<Map> businessAttrs) throws DAOException;
 
    /**
     * 更新订单信息(一般就更新订单状态)
     *
     * @param order
     * @throws DAOException
     */
    public void updateOrder(Map order) throws DAOException;
 
    /**
     * 更新订单项信息(一般就更新订单状态)
     *
     * @param order
     * @throws DAOException
     */
    public void updateBusiness(Map order) throws DAOException;
 
    /**
     * 根据bId 修改业务项信息
     *
     * @param business
     * @throws DAOException
     */
    public void updateBusinessByBId(Map business) throws DAOException;
 
    /**
     * 当所有业务动作是否都是C,将订单信息改为 C
     *
     * @param bId
     * @return
     * @throws DAOException
     */
    public void completeOrderByBId(String bId) throws DAOException;
 
    /**
     * 当所有业务动作是否都是C,将订单信息改为 C
     *
     * @param oId
     * @return
     * @throws DAOException
     */
    public void completeOrderByOId(String oId) throws DAOException;
 
    /**
     * 判断 business 过程是否完成 1 表示完成 0表示未完成
     *
     * @param oId
     * @return
     * @throws DAOException
     */
    public int judgeAllBusinessCompleted(String oId, String statusCd) throws DAOException;
 
    /**
     * 判断 business 过程是否是否满足撤单条件
     *
     * @param oId
     * @return
     * @throws DAOException
     */
    public int judgeAllBusinessDeleteOrder(String oId, String statusCd) throws DAOException;
 
    /**
     * 根据bId查询订单信息
     *
     * @param bId
     * @return
     * @throws DAOException
     */
    public Map getOrderInfoByBId(String bId) throws DAOException;
 
    /**
     * 根据oId查询订单信息
     *
     * @param oId
     * @return
     * @throws DAOException
     */
    public Map getDeleteOrderBusinessByOId(String oId) throws DAOException;
 
    /**
     * 获取同个订单中已经完成的订单项
     *
     * @param bId
     * @return
     * @throws DAOException
     */
    public List<Map> getCommonOrderCompledBusinessByBId(String bId) throws DAOException;
 
    /**
     * 根据oId 查询Business
     *
     * @param info
     * @return
     * @throws DAOException
     */
    public List<Map> getBusinessByOId(Map info) throws DAOException;
 
    /**
     * 查询所有组件
     *
     * @return
     */
    public List<Map> getAppRouteAndServiceInfoAll();
 
    /**
     * 查询映射表
     *
     * @return
     */
    public List<Mapping> getMappingInfoAll();
 
    /**
     * 查询映射表
     *
     * @return
     */
    public List<BasePrivilegeDto> getPrivilegeAll();
    /**
     * 查询映射表
     *
     * @return
     */
    public List<BusinessDatabusDto> getDatabusAll();
 
    /**
     * 查询业主 添加 修改 删除订单
     *
     * @param info
     * @return
     */
    public List<Map> queryOwenrOrders(Map info);
 
    /**
     * 根据业务类型查询 订单
     * @param info
     * @return
     */
    public List<Map> queryOrderByBusinessType(Map info);
 
 
    /**
     * 根据业务类型查询 订单
     * @param info
     * @return
     */
    public List<Map> queryOrderByBId(Map info);
 
 
    /**
     * 查询业主 添加 修改 删除订单
     *
     * @param info
     * @return
     */
    public int updateBusinessStatusCd(Map info);
 
 
    public List<Map> queryManchineOrders(Map info);
 
    public List<Map> queryApplicationKeyOrders(Map info);
 
    public List<Map> querySameOrderBusiness(Map info);
 
 
}