|
|
@@ -1,6 +1,7 @@
|
|
1
|
1
|
package com.chinaitop.depot.storage.controller;
|
|
2
|
2
|
|
|
3
|
3
|
|
|
|
4
|
+import com.chinaitop.depot.storage.model.StorageStorehouseBusiness;
|
|
4
|
5
|
import com.github.pagehelper.PageHelper;
|
|
5
|
6
|
import com.chinaitop.depot.storage.model.ClearanceConfirmation;
|
|
6
|
7
|
import com.chinaitop.depot.storage.service.ClearanceConfirmationService;
|
|
|
@@ -161,6 +162,44 @@ public class ClearanceConfirmationController {
|
|
161
|
162
|
}
|
|
162
|
163
|
|
|
163
|
164
|
|
|
|
165
|
+ /**
|
|
|
166
|
+ * 查询当前库区库存实物为空仓的仓房
|
|
|
167
|
+ *
|
|
|
168
|
+ * @param orgId
|
|
|
169
|
+ * @return
|
|
|
170
|
+ */
|
|
|
171
|
+ @RequestMapping(value = "/findStorehouse",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
|
|
|
172
|
+ public List<StorageStorehouseBusiness> findStorehouse(Integer orgId) {
|
|
|
173
|
+ List<StorageStorehouseBusiness> storageStorehouseBusinessList = null;
|
|
|
174
|
+ try {
|
|
|
175
|
+
|
|
|
176
|
+ storageStorehouseBusinessList = clearanceConfirmationService.findStorehouse(orgId);
|
|
|
177
|
+
|
|
|
178
|
+ } catch (Exception e) {
|
|
|
179
|
+ e.printStackTrace();
|
|
|
180
|
+ }
|
|
|
181
|
+ return storageStorehouseBusinessList;
|
|
|
182
|
+ }
|
|
|
183
|
+
|
|
|
184
|
+ /**
|
|
|
185
|
+ * 查询当前库区库存实物为空仓的仓房
|
|
|
186
|
+ *
|
|
|
187
|
+ * @param storehouseId
|
|
|
188
|
+ * @return
|
|
|
189
|
+ */
|
|
|
190
|
+ @RequestMapping(value = "/findByWarehouse",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
|
|
|
191
|
+ public List<StorageStorehouseBusiness> findByWarehouse(Integer storehouseId) {
|
|
|
192
|
+ List<StorageStorehouseBusiness> storageStorehouseBusinessList = null;
|
|
|
193
|
+ try {
|
|
|
194
|
+
|
|
|
195
|
+ storageStorehouseBusinessList = clearanceConfirmationService.findByWarehouse(storehouseId);
|
|
|
196
|
+
|
|
|
197
|
+ } catch (Exception e) {
|
|
|
198
|
+ e.printStackTrace();
|
|
|
199
|
+ }
|
|
|
200
|
+ return storageStorehouseBusinessList;
|
|
|
201
|
+ }
|
|
|
202
|
+
|
|
164
|
203
|
|
|
165
|
204
|
|
|
166
|
205
|
}
|