瀏覽代碼

增加多选设置为空托

LZH 1 年之前
父節點
當前提交
58dbdc68f0

+ 15 - 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/warewms/pda/PdaInvLotLocIdController.java

@@ -152,9 +152,6 @@ public class PdaInvLotLocIdController {
     /**
      * 设置为空托
      *
-     * @param locationId
-     * @param updateBy
-     * @return
      */
     @Log(title = "设置为空托", businessType = BusinessType.binLocationRelease)
     @PostMapping("/binLocationRelease")
@@ -164,6 +161,21 @@ public class PdaInvLotLocIdController {
         return locationViewSafeController.adjLocationIsEmpty(Long.parseLong(invLotLocIdMoveForm.getLocationFrom()));
     }
 
+    /**
+     * 多选设置为空托
+     *
+     */
+    @Log(title = "设置为空托", businessType = BusinessType.binLocationReleaseList)
+    @PostMapping("/binLocationReleaseList")
+    public AjaxResult binLocationReleaseList(@RequestBody List<InvLotLocIdMoveForm> invLotLocIdMoveFormList) {
+        for (InvLotLocIdMoveForm invLotLocIdMoveForm :invLotLocIdMoveFormList){
+            invLotLocIdService.clear(invLotLocIdMoveForm.getLocationFrom(), Constant.WAREHOUSE_ID, "pda");
+            locationViewSafeController.setIsEmptyPallent(Long.parseLong(invLotLocIdMoveForm.getLocationFrom()));
+            locationViewSafeController.adjLocationIsEmpty(Long.parseLong(invLotLocIdMoveForm.getLocationFrom()));
+        }
+        return AjaxResult.success();
+    }
+
     /**
      * 库位任务状态调整
      *

+ 5 - 0
ruoyi-common/src/main/java/com/ruoyi/common/enums/BusinessType.java

@@ -61,4 +61,9 @@ public enum BusinessType
      * 设置为空托
      */
     binLocationRelease,
+
+    /**
+     * 多选设置为空托
+     */
+    binLocationReleaseList,
 }