Commit a3c9761ab5c307065debfc7322ebdd1b70ad0d09
1 parent
82be1a6c
呼叫料盒接口从外部接口包中迁出
Showing
4 changed files
with
35 additions
and
37 deletions
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/mobile/controller/ReceiptController.java
... | ... | @@ -32,23 +32,4 @@ public class ReceiptController extends HuahengBaseController { |
32 | 32 | @Resource |
33 | 33 | private IMobileService mobileService; |
34 | 34 | |
35 | - @AutoLog(value = "PDA入库-呼叫料盒") | |
36 | - @ApiOperation(value = "PDA入库-呼叫料盒", notes = "创建空的补充入库任务,并返回任务id") | |
37 | - @PostMapping("/callbox") | |
38 | - @ResponseBody | |
39 | - @ApiLogger(apiName = "PDA入库-呼叫料盒", from = "PDA") | |
40 | - public Result<?> callBox(@RequestBody CallBoxBean bean, HttpServletRequest req) { | |
41 | - String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | |
42 | - | |
43 | - // 补充入库类型 | |
44 | - bean.setType(QuantityConstant.TASK_TYPE_SUPPLEMENTRECEIPT); | |
45 | - | |
46 | - Result<?> result = handleMultiProcess("callBox", new MultiProcessListener() { | |
47 | - @Override | |
48 | - public Result<?> doProcess() { | |
49 | - return mobileService.callBox(bean, warehouseCode); | |
50 | - } | |
51 | - }); | |
52 | - return result; | |
53 | - } | |
54 | 35 | } |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/mobile/controller/ShipmentController.java
... | ... | @@ -32,23 +32,5 @@ public class ShipmentController extends HuahengBaseController { |
32 | 32 | @Resource |
33 | 33 | private IMobileService mobileService; |
34 | 34 | |
35 | - @AutoLog(value = "PDA出库-呼叫料盒") | |
36 | - @ApiOperation(value = "PDA出库-呼叫料盒", notes = "创建空的分拣出库任务,并返回任务id") | |
37 | - @PostMapping("/callbox") | |
38 | - @ResponseBody | |
39 | - @ApiLogger(apiName = "PDA出库-呼叫料盒", from = "PDA") | |
40 | - public Result<TaskHeader> callBox(@RequestBody CallBoxBean bean, HttpServletRequest req) { | |
41 | - String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | |
42 | 35 | |
43 | - // 补充入库类型 | |
44 | - bean.setType(QuantityConstant.TASK_TYPE_SORTINGSHIPMENT); | |
45 | - | |
46 | - Result result = handleMultiProcess("callBox", new MultiProcessListener() { | |
47 | - @Override | |
48 | - public Result doProcess() { | |
49 | - return mobileService.callBox(bean, warehouseCode); | |
50 | - } | |
51 | - }); | |
52 | - return result; | |
53 | - } | |
54 | 36 | } |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/controller/ReceiptHeaderController.java
... | ... | @@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
9 | 9 | import lombok.extern.slf4j.Slf4j; |
10 | 10 | import org.jeecg.common.system.base.controller.JeecgController; |
11 | 11 | import org.jeecg.common.api.vo.Result; |
12 | +import org.jeecg.modules.wms.api.mobile.entity.CallBoxBean; | |
12 | 13 | import org.jeecg.modules.wms.api.mobile.entity.QuickReceiptBean; |
13 | 14 | import org.jeecg.modules.wms.api.mobile.service.IMobileService; |
14 | 15 | import org.jeecg.modules.wms.framework.aspectj.lang.annotation.ApiLogger; |
... | ... | @@ -365,4 +366,17 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec |
365 | 366 | return mobileService.quickReceipt(bean, warehouseCode); |
366 | 367 | |
367 | 368 | } |
369 | + | |
370 | + @AutoLog(value = "PDA入库-呼叫料盒") | |
371 | + @ApiOperation(value = "PDA入库-呼叫料盒", notes = "创建空的补充入库任务,并返回任务id") | |
372 | + @PostMapping("/callbox") | |
373 | + @ResponseBody | |
374 | + @ApiLogger(apiName = "PDA入库-呼叫料盒", from = "PDA") | |
375 | + public Result<?> callBox(@RequestBody CallBoxBean bean, HttpServletRequest req) { | |
376 | + String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | |
377 | + | |
378 | + // 补充入库类型 | |
379 | + bean.setType(QuantityConstant.TASK_TYPE_SUPPLEMENTRECEIPT); | |
380 | + return mobileService.callBox(bean, warehouseCode); | |
381 | + } | |
368 | 382 | } |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentHeader/controller/ShipmentHeaderController.java
... | ... | @@ -20,12 +20,17 @@ import org.jeecg.common.system.query.QueryGenerator; |
20 | 20 | import org.jeecg.common.system.vo.LoginUser; |
21 | 21 | import org.jeecg.common.util.oConvertUtils; |
22 | 22 | import org.jeecg.modules.wms.api.erp.service.IErpService; |
23 | +import org.jeecg.modules.wms.api.mobile.entity.CallBoxBean; | |
24 | +import org.jeecg.modules.wms.api.mobile.service.IMobileService; | |
25 | +import org.jeecg.modules.wms.framework.aspectj.lang.annotation.ApiLogger; | |
26 | +import org.jeecg.modules.wms.framework.controller.HuahengBaseController; | |
23 | 27 | import org.jeecg.modules.wms.inventory.inventoryHeader.entity.InventoryDetail; |
24 | 28 | import org.jeecg.modules.wms.inventory.inventoryHeader.service.IInventoryDetailService; |
25 | 29 | import org.jeecg.modules.wms.shipment.shipmentHeader.entity.ShipmentDetail; |
26 | 30 | import org.jeecg.modules.wms.shipment.shipmentHeader.entity.ShipmentHeader; |
27 | 31 | import org.jeecg.modules.wms.shipment.shipmentHeader.service.IShipmentDetailService; |
28 | 32 | import org.jeecg.modules.wms.shipment.shipmentHeader.service.IShipmentHeaderService; |
33 | +import org.jeecg.modules.wms.task.taskHeader.entity.TaskHeader; | |
29 | 34 | import org.jeecg.utils.HuahengJwtUtil; |
30 | 35 | import org.jeecg.utils.constant.QuantityConstant; |
31 | 36 | import org.jeecgframework.poi.excel.ExcelImportUtil; |
... | ... | @@ -60,6 +65,9 @@ import lombok.extern.slf4j.Slf4j; |
60 | 65 | @Slf4j |
61 | 66 | public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IShipmentHeaderService> { |
62 | 67 | |
68 | + @Resource | |
69 | + private IMobileService mobileService; | |
70 | + | |
63 | 71 | @Autowired |
64 | 72 | private IShipmentHeaderService shipmentHeaderService; |
65 | 73 | |
... | ... | @@ -355,4 +363,17 @@ public class ShipmentHeaderController extends JeecgController<ShipmentHeader, IS |
355 | 363 | Result result = erpService.backShipment(shipmentHeader); |
356 | 364 | return result; |
357 | 365 | } |
366 | + | |
367 | + @AutoLog(value = "PDA出库-呼叫料盒") | |
368 | + @ApiOperation(value = "PDA出库-呼叫料盒", notes = "创建空的分拣出库任务,并返回任务id") | |
369 | + @PostMapping("/callbox") | |
370 | + @ResponseBody | |
371 | + @ApiLogger(apiName = "PDA出库-呼叫料盒", from = "PDA") | |
372 | + public Result<TaskHeader> callBox(@RequestBody CallBoxBean bean, HttpServletRequest req) { | |
373 | + String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | |
374 | + | |
375 | + // 补充入库类型 | |
376 | + bean.setType(QuantityConstant.TASK_TYPE_SORTINGSHIPMENT); | |
377 | + return mobileService.callBox(bean, warehouseCode); | |
378 | + } | |
358 | 379 | } |
... | ... |