|
@@ -0,0 +1,93 @@
|
|
|
+package com.ruoyi.web.controller.warewms.pda;
|
|
|
+
|
|
|
+import com.ruoyi.ams.inv.domain.form.InvLotLocIdAdjForm;
|
|
|
+import com.ruoyi.ams.inv.domain.form.InvLotLocIdMoveForm;
|
|
|
+import com.ruoyi.ams.inv.service.IInvLotLocIdService;
|
|
|
+import com.ruoyi.base.constant.Constant;
|
|
|
+import com.ruoyi.common.annotation.Log;
|
|
|
+import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
+import com.ruoyi.common.enums.BusinessType;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author JWK
|
|
|
+ * @version 1.0
|
|
|
+ * @date 2022/11/14 14:52
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/pda/inv")
|
|
|
+public class PdaInvLotLocIdController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IInvLotLocIdService invLotLocIdService;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 库存移动
|
|
|
+ */
|
|
|
+ @Log(title = "PDA库位库存移动", businessType = BusinessType.UPDATE)
|
|
|
+ @PostMapping("/move")
|
|
|
+ public AjaxResult move(@Validated @RequestBody InvLotLocIdMoveForm invLotLocIdMoveForm) {
|
|
|
+ invLotLocIdMoveForm.setUpdateBy(invLotLocIdMoveForm.getUpdateBy());
|
|
|
+ invLotLocIdMoveForm.setWarehouseId(Constant.WAREHOUSE_ID);
|
|
|
+ return invLotLocIdService.move(invLotLocIdMoveForm);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 库存调整
|
|
|
+ */
|
|
|
+ @Log(title = "PDA库位库存调整", businessType = BusinessType.UPDATE)
|
|
|
+ @PostMapping("/adj")
|
|
|
+ public AjaxResult adj(@Validated @RequestBody InvLotLocIdAdjForm invLotLocIdAdjForm) {
|
|
|
+ invLotLocIdAdjForm.setUpdateBy(invLotLocIdAdjForm.getUpdateBy());
|
|
|
+ invLotLocIdAdjForm.setWarehouseId(Constant.WAREHOUSE_ID);
|
|
|
+ return invLotLocIdService.adj(invLotLocIdAdjForm);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 库存清理
|
|
|
+ *
|
|
|
+ * @param locationId
|
|
|
+ * @param updateBy
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Log(title = "PDA库存清理", businessType = BusinessType.CLEAN)
|
|
|
+ @PostMapping("/clear")
|
|
|
+ public AjaxResult clear(String locationId, String updateBy) {
|
|
|
+
|
|
|
+ return AjaxResult.success("");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 库位状态调整
|
|
|
+ *
|
|
|
+ * @param locationId
|
|
|
+ * @param updateBy
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Log(title = "PDA库位状态调整", businessType = BusinessType.UPDATE)
|
|
|
+ @PostMapping("/setStatusLoc")
|
|
|
+ public AjaxResult lockOrUnlockLocStatus(String locationId, String updateBy) {
|
|
|
+
|
|
|
+ return AjaxResult.success("");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 库存状态调整
|
|
|
+ *
|
|
|
+ * @param locationId
|
|
|
+ * @param updateBy
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Log(title = "PDA库存状态调整", businessType = BusinessType.UPDATE)
|
|
|
+ @PostMapping("/setStatusInv")
|
|
|
+ public AjaxResult lockOrUnlockInvStatus(String locationId, String updateBy) {
|
|
|
+
|
|
|
+ return AjaxResult.success("");
|
|
|
+ }
|
|
|
+}
|