소스 검색

初始化PDA接口

k 2 년 전
부모
커밋
e5d2926ea5

+ 0 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/warewms/ams/InvLotLocIdController.java

@@ -27,7 +27,6 @@ import java.util.List;
  * @author andy
  * @date 2022-03-14
  */
-@Validated
 @RestController
 @RequestMapping("/ams/invLotLocId")
 public class InvLotLocIdController extends BaseController {

+ 31 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/warewms/pda/PdaDocQcController.java

@@ -0,0 +1,31 @@
+package com.ruoyi.web.controller.warewms.pda;
+
+import com.ruoyi.common.core.domain.AjaxResult;
+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/qc")
+public class PdaDocQcController {
+
+
+    /**
+     * 质检提交
+     *
+     * @param qcNo
+     * @param qcLineNo
+     * @param qualityStatus 质量状态
+     * @param description   结果说明
+     * @param updateBy      操作人
+     * @return
+     */
+    public AjaxResult commit(String qcNo, String qcLineNo, String qualityStatus, String description, String updateBy) {
+
+        return AjaxResult.success("");
+    }
+}

+ 93 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/warewms/pda/PdaInvLotLocIdController.java

@@ -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("");
+    }
+}