From 5e53e4f9156c5712de7cdb7f72e7cd1605c279be Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期五, 30 一月 2026 19:21:32 +0800
Subject: [PATCH] lsh#

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/schedules/TaskSchedules.java |  315 +++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 211 insertions(+), 104 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/schedules/TaskSchedules.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/schedules/TaskSchedules.java
index d18a1c3..8b7e4f9 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/schedules/TaskSchedules.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/schedules/TaskSchedules.java
@@ -1,5 +1,6 @@
 package com.vincent.rsf.server.manager.schedules;
 
+import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
@@ -8,6 +9,7 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.cfg.CoercionAction;
 import com.fasterxml.jackson.databind.cfg.CoercionInputShape;
+import com.vincent.rsf.framework.common.Cools;
 import com.vincent.rsf.framework.common.R;
 import com.vincent.rsf.framework.exception.CoolException;
 import com.vincent.rsf.server.api.config.RemotesInfoProperties;
@@ -91,6 +93,43 @@
     private RemotesInfoProperties.RcsApi rcsApi;
     @Autowired
     private BasStationService basStationService;
+
+
+
+//    /**
+//     * 浠诲姟涓嬪彂
+//     */
+//    @Scheduled(cron = "0/5 * * * * ?  ")
+//    @Transactional(rollbackFor = Exception.class)
+//    public void pubTaskToWcs() {
+//        Long loginUserId = SystemAuthUtils.getLoginUserId();
+//        List<Integer> list = Arrays.asList(TaskType.TASK_TYPE_IN.type, TaskType.TASK_TYPE_OUT.type, TaskType.TASK_TYPE_LOC_MOVE.type, TaskType.TASK_TYPE_EMPTY_IN.type
+//                , TaskType.TASK_TYPE_CHECK_IN.type, TaskType.TASK_TYPE_MERGE_IN.type, TaskType.TASK_TYPE_EMPTY_OUT.type, TaskType.TASK_TYPE_PICK_IN.type,
+//                TaskType.TASK_TYPE_PICK_AGAIN_OUT.type, TaskType.TASK_TYPE_CHECK_OUT.type, TaskType.TASK_TYPE_MERGE_OUT.type);
+//        List<Integer> integers = Arrays.asList(TaskStsType.GENERATE_IN.id, TaskStsType.GENERATE_OUT.id);
+//        List<Task> tasks = taskService.list(new LambdaQueryWrapper<Task>()
+//                .in(Task::getTaskType, list)
+//                .in(Task::getTaskStatus, integers).last("limit 1")
+//                .orderByDesc(Task::getSort));
+//        for (Task task : tasks) {
+//            /**绉诲簱涓嶅仛绔欑偣鎿嶄綔*/
+//            if (!task.getTaskType().equals(TaskType.TASK_TYPE_LOC_MOVE.type)) {
+//                BasStation station = basStationService.getOne(new LambdaQueryWrapper<BasStation>()
+//                        .eq(BasStation::getStationName,
+//                                task.getTaskStatus().equals(TaskStsType.GENERATE_IN.id) ? task.getOrgSite() : task.getTargSite()));
+//                if (Cools.isEmpty(station)){
+//                    log.info("闈炲厜鐢电珯鐐逛换鍔′笅鍙戯細绔欑偣淇℃伅寮傚父锛屼换鍔′俊鎭細"+ JSON.toJSONString(task));
+//                    continue;
+//                }
+//                if (station.getType().equals(StationTypeEnum.STATION_TYPE_MUTI.type)) {
+//                    continue;
+//                }
+//            }
+//            /**涓嬪彂鏅�氱珯鐐逛换鍔★紝鎶ラ敊鍥炴粴锛屼笉鍐嶅線涓嬫墽琛�*/
+//            pubTaskToWcs(task);
+//        }
+//    }
+
 
     /**
      * @param
@@ -233,94 +272,102 @@
 //            });
 //        }
     }
-
-    @Scheduled(cron = "0/5 * * * * ?  ")
-    @Transactional(rollbackFor = Exception.class)
-    public void pubTaskToWcs() {
-        Long loginUserId = SystemAuthUtils.getLoginUserId();
-        List<Integer> list = Arrays.asList(TaskType.TASK_TYPE_IN.type, TaskType.TASK_TYPE_OUT.type, TaskType.TASK_TYPE_LOC_MOVE.type, TaskType.TASK_TYPE_EMPITY_IN.type
-                , TaskType.TASK_TYPE_CHECK_IN.type, TaskType.TASK_TYPE_MERGE_IN.type, TaskType.TASK_TYPE_EMPITY_OUT.type,
-                TaskType.TASK_TYPE_PICK_AGAIN_OUT.type, TaskType.TASK_TYPE_CHECK_OUT.type, TaskType.TASK_TYPE_MERGE_OUT.type);
-        List<Integer> integers = Arrays.asList(TaskStsType.GENERATE_IN.id, TaskStsType.GENERATE_OUT.id);
-        List<Task> tasks = taskService.list(new LambdaQueryWrapper<Task>()
-                .in(Task::getTaskType, list)
-                .in(Task::getTaskStatus, integers)
-                .orderByDesc(Task::getSort));
-        for (Task task : tasks) {
-            /**绉诲簱涓嶅仛绔欑偣鎿嶄綔*/
-            if (!task.getTaskType().equals(TaskType.TASK_TYPE_LOC_MOVE.type)) {
-                BasStation station = basStationService.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName,
-                        task.getTaskStatus().equals(TaskStsType.GENERATE_IN.id) ? task.getOrgSite() : task.getTargSite()));
-                if (station.getType().equals(StationTypeEnum.STATION_TYPE_MUTI.type)) {
-                    continue;
-                }
-            }
-            /**涓嬪彂鏅�氱珯鐐逛换鍔★紝鎶ラ敊鍥炴粴锛屼笉鍐嶅線涓嬫墽琛�*/
-            pubTaskToWcs(task);
-        }
-    }
-
-    /**
-     * @author Ryan
-     * @date 2025/9/4
-     * @description: 鍏夌數绔欑偣浠诲姟涓嬪彂
-     * @version 1.0
-     */
-    @Scheduled(cron = "0/5 * * * * ?  ")
-    @Transactional(rollbackFor = Exception.class)
-    public void taskToWCS() throws Exception {
-        Long loginUserId = SystemAuthUtils.getLoginUserId();
-        List<Integer> list = Arrays.asList(TaskType.TASK_TYPE_IN.type, TaskType.TASK_TYPE_OUT.type, TaskType.TASK_TYPE_LOC_MOVE.type, TaskType.TASK_TYPE_EMPITY_IN.type
-                , TaskType.TASK_TYPE_CHECK_IN.type, TaskType.TASK_TYPE_MERGE_IN.type, TaskType.TASK_TYPE_EMPITY_OUT.type,
-                TaskType.TASK_TYPE_PICK_AGAIN_OUT.type, TaskType.TASK_TYPE_CHECK_OUT.type, TaskType.TASK_TYPE_MERGE_OUT.type);
-        List<Integer> integers = Arrays.asList(TaskStsType.GENERATE_IN.id, TaskStsType.GENERATE_OUT.id);
-        List<Task> tasks = taskService.list(new LambdaQueryWrapper<Task>()
-                .in(Task::getTaskType, list)
-                .in(Task::getTaskStatus, integers)
-                .orderByDesc(Task::getSort));
-        for (Task task : tasks) {
-            /**绉诲簱涓嶅仛绔欑偣鎿嶄綔*/
-            if (!task.getTaskType().equals(TaskType.TASK_TYPE_LOC_MOVE.type)) {
-                BasStation station = basStationService.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName,
-                        task.getTaskStatus().equals(TaskStsType.GENERATE_IN.id) ? task.getOrgSite() : task.getTargSite()));
-                /**杩囨护鎺夋櫘閫氱珯鐐逛换鍔�*/
-                if (station.getType().equals(StationTypeEnum.STATION_TYPE_NORMAL.type)) {
-                    continue;
-                }
-                Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getBarcode, task.getBarcode()));
-                if (Objects.isNull(loc)) {
-                    continue;
-                }
-                //鍒ゆ柇鏄惁娣卞簱浣�
-                if (!LocUtils.isShallowLoc(loc.getCode())) {
-                    //鑾峰彇娣卞簱浣嶅搴旂殑娴呭簱浣�
-                    String shallowLoc = LocUtils.getShallowLoc(loc.getCode());
-                    if (StringUtils.isBlank(shallowLoc)) {
-                        continue;
-                    }
-                    Loc shalloc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getCode, shallowLoc));
-                    if (Objects.isNull(shalloc) || !shalloc.getUseStatus().equals(LocStsType.LOC_STS_TYPE_F.type)) {
-                        //濡傛灉娴呭簱浣嶄笉鍦ㄥ簱璺冲嚭寰幆
-                        continue;
-                    }
-                    LocToTaskParams params = new LocToTaskParams();
-                    params.setOrgLoc(shallowLoc).setType(TaskType.TASK_TYPE_LOC_MOVE.type + "");
-                    //鐢熸垚绉诲簱浠诲姟
-                    Task moveTask = locItemService.genMoveTask(params, loginUserId);
-                    moveTask.setSort(!Objects.isNull(task.getSort()) ? task.getSort() + 1 : Constants.TASK_SORT_DEFAULT_VALUE + 1);
-                    if (!taskService.updateById(moveTask)) {
-                        throw new Exception("浠诲姟浼樺厛绾ф洿鏂板け璐ワ紒锛�");
-                    }
-                }
-            }
-            /**涓嬪彂浠诲姟*/
-            try {
-                pubTaskToWcs(task);
-            } catch (Exception e) {
-                log.error("浠诲姟涓嬪彂澶辫触锛侊紒", e);
-            }
-        }
-    }
+//
+//    /**
+//     * 闈炲厜鐢电珯鐐逛换鍔′笅鍙�
+//     */
+//    @Scheduled(cron = "0/5 * * * * ?  ")
+//    @Transactional(rollbackFor = Exception.class)
+//    public void pubTaskToWcs() {
+//        Long loginUserId = SystemAuthUtils.getLoginUserId();
+//        List<Integer> list = Arrays.asList(TaskType.TASK_TYPE_IN.type, TaskType.TASK_TYPE_OUT.type, TaskType.TASK_TYPE_LOC_MOVE.type, TaskType.TASK_TYPE_EMPTY_IN.type
+//                , TaskType.TASK_TYPE_CHECK_IN.type, TaskType.TASK_TYPE_MERGE_IN.type, TaskType.TASK_TYPE_EMPTY_OUT.type, TaskType.TASK_TYPE_PICK_IN.type,
+//                TaskType.TASK_TYPE_PICK_AGAIN_OUT.type, TaskType.TASK_TYPE_CHECK_OUT.type, TaskType.TASK_TYPE_MERGE_OUT.type);
+//        List<Integer> integers = Arrays.asList(TaskStsType.GENERATE_IN.id, TaskStsType.GENERATE_OUT.id);
+//        List<Task> tasks = taskService.list(new LambdaQueryWrapper<Task>()
+//                .in(Task::getTaskType, list)
+//                .in(Task::getTaskStatus, integers).last("limit 1")
+//                .orderByDesc(Task::getSort));
+//        for (Task task : tasks) {
+//            /**绉诲簱涓嶅仛绔欑偣鎿嶄綔*/
+//            if (!task.getTaskType().equals(TaskType.TASK_TYPE_LOC_MOVE.type)) {
+//                BasStation station = basStationService.getOne(new LambdaQueryWrapper<BasStation>()
+//                        .eq(BasStation::getStationName,
+//                        task.getTaskStatus().equals(TaskStsType.GENERATE_IN.id) ? task.getOrgSite() : task.getTargSite()));
+//                if (Cools.isEmpty(station)){
+//                    log.info("闈炲厜鐢电珯鐐逛换鍔′笅鍙戯細绔欑偣淇℃伅寮傚父锛屼换鍔′俊鎭細"+ JSON.toJSONString(task));
+//                    continue;
+//                }
+//                if (station.getType().equals(StationTypeEnum.STATION_TYPE_MUTI.type)) {
+//                    continue;
+//                }
+//            }
+//            /**涓嬪彂鏅�氱珯鐐逛换鍔★紝鎶ラ敊鍥炴粴锛屼笉鍐嶅線涓嬫墽琛�*/
+//            pubTaskToWcs(task);
+//        }
+//    }
+//
+//    /**
+//     * @author Ryan
+//     * @date 2025/9/4
+//     * @description: 鍏夌數绔欑偣浠诲姟涓嬪彂
+//     * @version 1.0
+//     */
+//    @Scheduled(cron = "0/5 * * * * ?  ")
+//    @Transactional(rollbackFor = Exception.class)
+//    public void taskToWCS() throws Exception {
+//        Long loginUserId = SystemAuthUtils.getLoginUserId();
+//        List<Integer> list = Arrays.asList(TaskType.TASK_TYPE_IN.type, TaskType.TASK_TYPE_OUT.type, TaskType.TASK_TYPE_LOC_MOVE.type, TaskType.TASK_TYPE_EMPTY_IN.type
+//                , TaskType.TASK_TYPE_CHECK_IN.type, TaskType.TASK_TYPE_MERGE_IN.type, TaskType.TASK_TYPE_EMPTY_OUT.type,
+//                TaskType.TASK_TYPE_PICK_AGAIN_OUT.type, TaskType.TASK_TYPE_CHECK_OUT.type, TaskType.TASK_TYPE_MERGE_OUT.type);
+//        List<Integer> integers = Arrays.asList(TaskStsType.GENERATE_IN.id, TaskStsType.GENERATE_OUT.id);
+//        List<Task> tasks = taskService.list(new LambdaQueryWrapper<Task>()
+//                .in(Task::getTaskType, list)
+//                .in(Task::getTaskStatus, integers)
+//                .orderByDesc(Task::getSort));
+//        for (Task task : tasks) {
+//            /**绉诲簱涓嶅仛绔欑偣鎿嶄綔*/
+//            if (!task.getTaskType().equals(TaskType.TASK_TYPE_LOC_MOVE.type)) {
+//                BasStation station = basStationService.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName,
+//                        task.getTaskStatus().equals(TaskStsType.GENERATE_IN.id) ? task.getOrgSite() : task.getTargSite()));
+//                /**杩囨护鎺夋櫘閫氱珯鐐逛换鍔�*/
+//                if (station.getType().equals(StationTypeEnum.STATION_TYPE_NORMAL.type)) {
+//                    continue;
+//                }
+//                Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getBarcode, task.getBarcode()));
+//                if (Objects.isNull(loc)) {
+//                    continue;
+//                }
+//                //鍒ゆ柇鏄惁娣卞簱浣�
+//                if (!LocUtils.isShallowLoc(loc.getCode())) {
+//                    //鑾峰彇娣卞簱浣嶅搴旂殑娴呭簱浣�
+//                    String shallowLoc = LocUtils.getShallowLoc(loc.getCode());
+//                    if (StringUtils.isBlank(shallowLoc)) {
+//                        continue;
+//                    }
+//                    Loc shalloc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getCode, shallowLoc));
+//                    if (Objects.isNull(shalloc) || !shalloc.getUseStatus().equals(LocStsType.LOC_STS_TYPE_F.type)) {
+//                        //濡傛灉娴呭簱浣嶄笉鍦ㄥ簱璺冲嚭寰幆
+//                        continue;
+//                    }
+//                    LocToTaskParams params = new LocToTaskParams();
+//                    params.setOrgLoc(shallowLoc).setType(TaskType.TASK_TYPE_LOC_MOVE.type + "");
+//                    //鐢熸垚绉诲簱浠诲姟
+//                    Task moveTask = locItemService.genMoveTask(params, loginUserId);
+//                    moveTask.setSort(!Objects.isNull(task.getSort()) ? task.getSort() + 1 : Constants.TASK_SORT_DEFAULT_VALUE + 1);
+//                    if (!taskService.updateById(moveTask)) {
+//                        throw new Exception("浠诲姟浼樺厛绾ф洿鏂板け璐ワ紒锛�");
+//                    }
+//                }
+//            }
+//            /**涓嬪彂浠诲姟*/
+//            try {
+//                pubTaskToWcs(task);
+//            } catch (Exception e) {
+//                log.error("浠诲姟涓嬪彂澶辫触锛侊紒", e);
+//            }
+//        }
+//    }
 
     /**
      * 姣忎簲绉掓牎楠屾繁搴撲綅鏄惁涓虹┖锛屽鏋滄祬搴撲綅鏈夎揣锛屽皢娴呭簱浣嶇Щ鑷虫繁搴撲綅
@@ -360,28 +407,88 @@
         //涓诲弬鏁�
         taskParams.setBatch(task.getBarcode());
 
-        BasStation station = basStationService.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName, task.getTargSite()));
-        if (Objects.isNull(station)) {
-            throw new CoolException("绔欑偣涓嶅瓨鍦紒锛�");
+
+        BasStation station = null;
+        if (!task.getTaskType().equals(TaskType.TASK_TYPE_LOC_MOVE.type)) {
+            station = basStationService.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName, task.getTargSite()));
+            if (Objects.isNull(station)) {
+                throw new CoolException("绔欑偣涓嶅瓨鍦紒锛�");
+            }
         }
-        /**鍒ゆ柇鏄惁鍏夌數绔欑偣锛岄潪鍏夊簵绔欑偣闇�绠℃帶绔欑偣鐘舵��*/
-        if (station.getType().equals(StationTypeEnum.STATION_TYPE_NORMAL.type)) {
-            if (task.getTaskType() <= TaskType.TASK_TYPE_CHECK_IN.type && task.getTaskType().equals(TaskType.TASK_TYPE_LOC_MOVE.type)) {
-                if (!station.getUseStatus().equals(LocStsType.LOC_STS_TYPE_F.type)) {
-                    throw new CoolException("褰撳墠绔欑偣涓嶆槸F.鍦ㄥ簱鐘舵�侊紒锛�");
+
+
+        /**鍒ゆ柇鏄惁璧风偣绯荤粺绫诲瀷  闈炴爣鍑嗙▼搴�*/
+        Loc locStart = null;
+        if (task.getTaskType().equals(TaskType.TASK_TYPE_OUT.type) || task.getTaskType().equals(TaskType.TASK_TYPE_MERGE_OUT.type) ||
+                task.getTaskType().equals(TaskType.TASK_TYPE_CHECK_OUT.type) || task.getTaskType().equals(TaskType.TASK_TYPE_EMPTY_OUT.type)) {
+            locStart = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getCode, task.getOrgLoc()));
+            if (Objects.isNull(locStart)) {
+                throw new CoolException("婧愬簱浣嶄笉瀛樺湪锛侊紒");
+            }
+        }
+
+        if (!Objects.isNull(locStart)) {
+            taskParams.setSign(LocStsWcsOrOtherType.getApiType(locStart.getAreaId$()));
+        } else {
+            taskParams.setSign(LocStsWcsOrOtherType.LOC_STS_TYPE_RCS.type);
+        }
+
+
+        /**鍒ゆ柇鏄惁璧风偣绯荤粺绫诲瀷  闈炴爣鍑嗙▼搴�*/
+        if (locStart == null) {
+            if (task.getTaskType().equals(TaskType.TASK_TYPE_IN.type) || task.getTaskType().equals(TaskType.TASK_TYPE_EMPTY_IN.type) ||
+                    task.getTaskType().equals(TaskType.TASK_TYPE_PICK_IN.type) ||
+                    task.getTaskType().equals(TaskType.TASK_TYPE_MERGE_IN.type) || task.getTaskType().equals(TaskType.TASK_TYPE_CHECK_IN.type)
+            ) {
+                BasStation stationS = basStationService.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName, task.getOrgSite()));
+                if (Objects.isNull(stationS)) {
+                    throw new CoolException("婧愬簱浣嶄笉瀛樺湪锛侊紒");
                 }
-            } else if (task.getTaskType() >= TaskType.TASK_TYPE_OUT.type) {
-                if (!station.getUseStatus().equals(LocStsType.LOC_STS_TYPE_O.type)) {
-                    throw new CoolException("鐩爣绔欑偣涓嶆槸O.绌洪棽鐘舵�侊紒锛�");
+
+                if (stationS.getType().equals(StationTypeEnum.STATION_TYPE_MUTI.type)) {
+                    taskParams.setSign(LocStsWcsOrOtherType.LOC_STS_TYPE_WCS.type);
+                } else {
+                    Loc locEnd = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getCode, task.getTargLoc()));
+                    if (Objects.isNull(locEnd)) {
+                        throw new CoolException("婧愬簱浣嶄笉瀛樺湪锛侊紒");
+                    }
+                    String type = LocStsWcsOrOtherType.getApiType(locEnd.getAreaId$());
+                    if (type.equals(LocStsWcsOrOtherType.LOC_STS_TYPE_WCS.type)) {
+                        taskParams.setSignType("2");
+                    }
+                    taskParams.setSign(LocStsWcsOrOtherType.LOC_STS_TYPE_RCS.type);
                 }
             }
         }
+
+
+        /**鍒ゆ柇鏄惁鍏夌數绔欑偣锛岄潪鍏夊簵绔欑偣闇�绠℃帶绔欑偣鐘舵��*/ //鐩爣绔欑偣
+        if (!Objects.isNull(station) && station.getType().equals(StationTypeEnum.STATION_TYPE_NORMAL.type)) {
+            if (task.getTaskType() <= TaskType.TASK_TYPE_CHECK_IN.type && !task.getTaskType().equals(TaskType.TASK_TYPE_LOC_MOVE.type)) {
+//                if (!station.getUseStatus().equals(LocStsType.LOC_STS_TYPE_F.type)) {
+//                    throw new CoolException( "褰撳墠绔欑偣涓嶆槸F.鍦ㄥ簱鐘舵�佺姸鎬侊紒锛�");
+//                }
+                station.setUseStatus(LocStsType.LOC_STS_TYPE_R.type);
+                if (!basStationService.updateById(station)) {
+                    throw new CoolException("绔欑偣鐘舵�佹洿鏂板け璐ワ紒锛�");
+                }
+            } else if (task.getTaskType() >= TaskType.TASK_TYPE_OUT.type) {
+                if (!station.getUseStatus().equals(LocStsType.LOC_STS_TYPE_O.type)) {
+                    throw new CoolException("鐩爣绔欑偣涓嶅O.绌洪棽鐘舵�侊紝鏃犳硶棰勭害鍑哄簱銆�");
+                }
+                station.setUseStatus(LocStsType.LOC_STS_TYPE_S.type);
+                if (!basStationService.updateById(station)) {
+                    throw new CoolException("绔欑偣鐘舵�佹洿鏂板け璐ワ紒锛�");
+                }
+            }
+        }
+
         /**绉诲簱鍙傛暟*/
         if (task.getTaskType().equals(TaskType.TASK_TYPE_LOC_MOVE.type)) {
             itemParam.setOriLoc(task.getOrgLoc()).setDestLoc(task.getTargLoc());
         } else if (task.getTaskType().equals(TaskType.TASK_TYPE_IN.type)
                 || task.getTaskType().equals(TaskType.TASK_TYPE_MERGE_IN.type)
-                || task.getTaskType().equals(TaskType.TASK_TYPE_EMPITY_IN.type)) {
+                || task.getTaskType().equals(TaskType.TASK_TYPE_EMPTY_IN.type)) {
             /**鍏ㄦ澘鍏ュ簱鍙傛暟*/
             itemParam.setDestLoc(task.getTargLoc())
                     .setOriSta(task.getOrgSite());
@@ -391,7 +498,7 @@
                     .setOriSta(task.getTargSite());
         } else if (task.getTaskType().equals(TaskType.TASK_TYPE_OUT.type)
                 || task.getTaskType().equals(TaskType.TASK_TYPE_PICK_AGAIN_OUT.type)
-                || task.getTaskType().equals(TaskType.TASK_TYPE_EMPITY_OUT.type)
+                || task.getTaskType().equals(TaskType.TASK_TYPE_EMPTY_OUT.type)
                 || task.getTaskType().equals(TaskType.TASK_TYPE_CHECK_OUT.type)
                 || task.getTaskType().equals(TaskType.TASK_TYPE_MERGE_OUT.type)) {
             /**鍑哄簱鍙傛暟*/
@@ -433,7 +540,7 @@
         ResponseEntity<String> exchange = restTemplate.exchange(pubTakUrl, HttpMethod.POST, httpEntity, String.class);
         log.info("浠诲姟涓嬪彂鍚庯紝鍝嶅簲缁撴灉锛� {}", exchange);
         if (Objects.isNull(exchange.getBody())) {
-            throw new CoolException("浠诲姟涓嬪彂澶辫触锛侊紒");
+            throw new CoolException("浠诲姟涓嬪彂澶辫触锛侊紒锛岃繑鍥炲弬鏁颁负绌猴紒锛侊紒");
         } else {
             try {
                 ObjectMapper objectMapper = new ObjectMapper();
@@ -444,7 +551,7 @@
                     if (task.getTaskType().equals(TaskType.TASK_TYPE_IN.type)
                             || task.getTaskType().equals(TaskType.TASK_TYPE_PICK_IN.type)
                             || task.getTaskType().equals(TaskType.TASK_TYPE_CHECK_IN.type)
-                            || task.getTaskType().equals(TaskType.TASK_TYPE_EMPITY_IN.type)
+                            || task.getTaskType().equals(TaskType.TASK_TYPE_EMPTY_IN.type)
                             || task.getTaskType().equals(TaskType.TASK_TYPE_MERGE_IN.type)
                             || task.getTaskType().equals(TaskType.TASK_TYPE_LOC_MOVE.type)) {
                         if (!taskService.update(new LambdaUpdateWrapper<Task>().eq(Task::getTaskCode, task.getTaskCode())
@@ -464,7 +571,7 @@
                     } else if (task.getTaskType().equals(TaskType.TASK_TYPE_OUT.type)
                             || task.getTaskType().equals(TaskType.TASK_TYPE_CHECK_OUT.type)
                             || task.getTaskType().equals(TaskType.TASK_TYPE_MERGE_OUT.type)
-                            || task.getTaskType().equals(TaskType.TASK_TYPE_EMPITY_OUT.type)
+                            || task.getTaskType().equals(TaskType.TASK_TYPE_EMPTY_OUT.type)
                             || task.getTaskType().equals(TaskType.TASK_TYPE_PICK_AGAIN_OUT.type)) {
                         if (!taskService.update(new LambdaUpdateWrapper<Task>().eq(Task::getTaskCode, task.getTaskCode())
                                 .set(Task::getTaskStatus, TaskStsType.WCS_EXECUTE_OUT.id))) {

--
Gitblit v1.9.1