From e377f0ffba61c38f4f171d99e9ab6c3591f1d1b7 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期日, 27 四月 2025 13:50:50 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/locMast/locMast.html                      |    9 
 src/main/java/com/zy/asrs/utils/VersionUtils.java               |   62 ----
 src/main/java/com/zy/asrs/controller/LocMastController.java     |    6 
 src/main/java/com/zy/core/thread/LedThread.java                 |    4 
 src/main/java/com/zy/asrs/service/impl/BasCrnpServiceImpl.java  |    6 
 src/main/java/com/zy/asrs/controller/OpenController.java        |    4 
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java     |   85 ++---
 src/main/java/com/zy/asrs/task/NotifyScheduler.java             |   16 
 src/main/java/com/zy/asrs/controller/CrnController.java         |   48 +-
 /dev/null                                                       |  183 --------------
 src/main/java/com/zy/asrs/controller/ConsoleController.java     |   44 +-
 src/main/webapp/static/wms/js/locMast/locMast.js                |    2 
 src/main/java/com/zy/asrs/service/impl/BasDevpServiceImpl.java  |    9 
 src/main/java/com/zy/common/service/CommonService.java          |  277 ---------------------
 src/main/java/com/zy/core/thread/SiemensDevpThread.java         |   16 
 src/main/java/com/zy/asrs/controller/ReportQueryController.java |    3 
 16 files changed, 97 insertions(+), 677 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/ConsoleController.java b/src/main/java/com/zy/asrs/controller/ConsoleController.java
index d56f44d..978993e 100644
--- a/src/main/java/com/zy/asrs/controller/ConsoleController.java
+++ b/src/main/java/com/zy/asrs/controller/ConsoleController.java
@@ -20,7 +20,7 @@
 import com.zy.asrs.service.BasCrnpService;
 import com.zy.asrs.service.BasDevpService;
 import com.zy.asrs.service.DeviceErrorService;
-import com.zy.asrs.service.WrkMastService;
+import com.zy.asrs.service.TaskWrkService;
 import com.zy.common.CodeRes;
 import com.zy.core.CrnThread;
 import com.zy.core.DevpThread;
@@ -57,8 +57,6 @@
     @Autowired
     private SlaveProperties slaveProperties;
     @Autowired
-    private WrkMastService wrkMastService;
-    @Autowired
     private BasDevpService basDevpService;
     @Autowired
     private LocMastMapper locMastMapper;
@@ -70,6 +68,8 @@
     private DeviceErrorService deviceErrorService;
     @Autowired
     private BasCrnpService basCrnpService;
+    @Autowired
+    private TaskWrkService taskWrkService;
 
     @PostMapping("/system/running/status")
     @ManagerAuth(memo = "绯荤粺杩愯鐘舵��")
@@ -151,9 +151,9 @@
                 vo.setCrnStatus(CrnStatusType.MACHINE_ERROR);
             } else {
                 if (crnProtocol.getTaskNo()>0) {
-                    WrkMast wrkMast = wrkMastService.selectById(crnProtocol.getTaskNo());
-                    if (wrkMast != null) {
-                        vo.setCrnStatus(CrnStatusType.process(wrkMast.getIoType()));
+                    TaskWrk taskWrk = taskWrkService.selectByWrkNo(crnProtocol.getTaskNo().intValue());
+                    if (taskWrk != null) {
+                        vo.setCrnStatus(CrnStatusType.process(taskWrk.getIoType()));
                     } else {
                         vo.setCrnStatus(crnProtocol.modeType.equals(CrnModeType.AUTO)? CrnStatusType.MACHINE_AUTO: CrnStatusType.MACHINE_UN_AUTO);
                     }
@@ -279,14 +279,14 @@
                     vo.setWorkNo(staProtocol.getWorkNo());   // 宸ヤ綔鍙�
 
                     if (staProtocol.getWorkNo() > 0) {
-                        WrkMast wrkMast = wrkMastService.selectById(staProtocol.getWorkNo());
-                        if (wrkMast != null) {
-                            vo.setWrkSts(wrkMast.getWrkSts$());   // 宸ヤ綔鐘舵��
-                            vo.setIoType(wrkMast.getIoType$());   //  鍏ュ嚭搴撶被鍨�
-                            vo.setSourceStaNo(wrkMast.getSourceStaNo$());
-                            vo.setStaNo(wrkMast.getStaNo$());
-                            vo.setSourceLocNo(wrkMast.getSourceLocNo$());
-                            vo.setLocNo(wrkMast.getLocNo$());
+                        TaskWrk taskWrk = taskWrkService.selectByWrkNo(staProtocol.getWorkNo().intValue());
+                        if (taskWrk != null) {
+                            vo.setWrkSts(taskWrk.getWrkSts$());   // 宸ヤ綔鐘舵��
+                            vo.setIoType(taskWrk.getIoType$());   //  鍏ュ嚭搴撶被鍨�
+                            vo.setSourceStaNo(null);
+                            vo.setStaNo(null);
+                            vo.setSourceLocNo(taskWrk.getStartPoint());
+                            vo.setLocNo(taskWrk.getTargetPoint());
                         }
                     }
 
@@ -330,14 +330,14 @@
                 }
 
                 if (crnProtocol.getTaskNo() > 0) {
-                    WrkMast wrkMast = wrkMastService.selectById(crnProtocol.getTaskNo());
-                    if (wrkMast != null) {
-                        vo.setSourceStaNo(wrkMast.getSourceStaNo$());
-                        vo.setStaNo(wrkMast.getStaNo$());
-                        vo.setWrkSts(wrkMast.getWrkSts$());   // 宸ヤ綔鐘舵��
-                        vo.setIoType(wrkMast.getIoType$());   //  鍏ュ嚭搴撶被鍨�
-                        vo.setSourceLocNo(wrkMast.getSourceLocNo$());
-                        vo.setLocNo(wrkMast.getLocNo$());
+                    TaskWrk taskWrk = taskWrkService.selectByWrkNo(crnProtocol.getTaskNo().intValue());
+                    if (taskWrk != null) {
+                        vo.setSourceStaNo(null);
+                        vo.setStaNo(null);
+                        vo.setWrkSts(taskWrk.getWrkSts$());   // 宸ヤ綔鐘舵��
+                        vo.setIoType(taskWrk.getIoType$());   //  鍏ュ嚭搴撶被鍨�
+                        vo.setSourceLocNo(taskWrk.getStartPoint());
+                        vo.setLocNo(taskWrk.getTargetPoint());
                         vo.setCrnStatus(crnProtocol.getStatusType().desc);
                         vo.setError("");    // todo
                     }
diff --git a/src/main/java/com/zy/asrs/controller/CrnController.java b/src/main/java/com/zy/asrs/controller/CrnController.java
index c459918..e9c72e9 100644
--- a/src/main/java/com/zy/asrs/controller/CrnController.java
+++ b/src/main/java/com/zy/asrs/controller/CrnController.java
@@ -17,7 +17,7 @@
 import com.zy.asrs.mapper.BasCrnErrorMapper;
 import com.zy.asrs.service.BasCrnpService;
 import com.zy.asrs.service.LocMastService;
-import com.zy.asrs.service.WrkMastService;
+import com.zy.asrs.service.TaskWrkService;
 import com.zy.asrs.utils.CommandUtils;
 import com.zy.asrs.utils.CrnOperaUtils;
 import com.zy.core.CrnThread;
@@ -58,8 +58,6 @@
     @Autowired
     private SlaveProperties slaveProperties;
     @Autowired
-    private WrkMastService wrkMastService;
-    @Autowired
     private BasCrnErrorMapper basCrnErrorMapper;
     @Autowired
     private BasCrnpService basCrnpService;
@@ -67,6 +65,8 @@
     private LocMastService locMastService;
     @Autowired
     private CrnOperaUtils crnOperaUtils;
+    @Autowired
+    private TaskWrkService taskWrkService;
 
 
     @ManagerAuth(memo = "杩涜涓殑鍛戒护")
@@ -190,13 +190,13 @@
 
             vo.setWorkNo(crnProtocol.getTaskNo());  //  浠诲姟鍙�
             if (crnProtocol.getTaskNo()>0) {
-                WrkMast wrkMast = wrkMastService.selectById(crnProtocol.getTaskNo());
-                if (wrkMast != null) {
-                    vo.setStatus(CrnStatusType.process(wrkMast.getIoType()).getDesc());   //  妯″紡鐘舵��
-                    vo.setSourceStaNo(wrkMast.getSourceStaNo$());    //  婧愮珯
-                    vo.setStaNo(wrkMast.getStaNo$());   //  鐩爣绔�
-                    vo.setSourceLocNo(wrkMast.getSourceLocNo());    //  婧愬簱浣�
-                    vo.setLocNo(wrkMast.getLocNo());    //  鐩爣搴撲綅
+                TaskWrk taskWrk = taskWrkService.selectByWrkNo(crnProtocol.getTaskNo().intValue());
+                if (taskWrk != null) {
+                    vo.setStatus(CrnStatusType.process(taskWrk.getIoType()).getDesc());   //  妯″紡鐘舵��
+                    vo.setSourceStaNo(null);    //  婧愮珯
+                    vo.setStaNo(null);   //  鐩爣绔�
+                    vo.setSourceLocNo(taskWrk.getStartPoint());    //  婧愬簱浣�
+                    vo.setLocNo(taskWrk.getTargetPoint());    //  鐩爣搴撲綅
                 }
             } else {
                 vo.setStatus(crnProtocol.modeType.equals(CrnModeType.AUTO)? CrnStatusType.MACHINE_AUTO.getDesc(): CrnStatusType.MACHINE_UN_AUTO.getDesc());   //  妯″紡鐘舵��
@@ -231,13 +231,13 @@
 
         vo.setWorkNo(crnProtocol.getTaskNo());  //  浠诲姟鍙�
         if (crnProtocol.getTaskNo()>0) {
-            WrkMast wrkMast = wrkMastService.selectById(crnProtocol.getTaskNo());
-            if (wrkMast != null) {
-                vo.setStatus(CrnStatusType.process(wrkMast.getIoType()).getDesc());   //  妯″紡鐘舵��
-                vo.setSourceStaNo(wrkMast.getSourceStaNo$());    //  婧愮珯
-                vo.setStaNo(wrkMast.getStaNo$());   //  鐩爣绔�
-                vo.setSourceLocNo(wrkMast.getSourceLocNo());    //  婧愬簱浣�
-                vo.setLocNo(wrkMast.getLocNo());    //  鐩爣搴撲綅
+            TaskWrk taskWrk = taskWrkService.selectByWrkNo(crnProtocol.getTaskNo().intValue());
+            if (taskWrk != null) {
+                vo.setStatus(CrnStatusType.process(taskWrk.getIoType()).getDesc());   //  妯″紡鐘舵��
+                vo.setSourceStaNo(null);    //  婧愮珯
+                vo.setStaNo(null);   //  鐩爣绔�
+                vo.setSourceLocNo(taskWrk.getStartPoint());    //  婧愬簱浣�
+                vo.setLocNo(taskWrk.getTargetPoint());    //  鐩爣搴撲綅
             }
         } else {
             vo.setStatus(crnProtocol.modeType.equals(CrnModeType.AUTO)? CrnStatusType.MACHINE_AUTO.getDesc(): CrnStatusType.MACHINE_UN_AUTO.getDesc());   //  妯″紡鐘舵��
@@ -274,13 +274,13 @@
 
             vo.setWorkNo(crnProtocol.getTaskNo());  //  浠诲姟鍙�
             if (crnProtocol.getTaskNo()>0) {
-                WrkMast wrkMast = wrkMastService.selectById(crnProtocol.getTaskNo());
-                if (wrkMast != null) {
-                    vo.setDeviceStatus(CrnStatusType.process(wrkMast.getIoType()).getDesc());   //  妯″紡鐘舵��
-                    vo.setSourceStaNo(wrkMast.getSourceStaNo$());    //  婧愮珯
-                    vo.setStaNo(wrkMast.getStaNo$());   //  鐩爣绔�
-                    vo.setSourceLocNo(wrkMast.getSourceLocNo());    //  婧愬簱浣�
-                    vo.setLocNo(wrkMast.getLocNo());    //  鐩爣搴撲綅
+                TaskWrk taskWrk = taskWrkService.selectByWrkNo(crnProtocol.getTaskNo().intValue());
+                if (taskWrk != null) {
+                    vo.setDeviceStatus(CrnStatusType.process(taskWrk.getIoType()).getDesc());   //  妯″紡鐘舵��
+                    vo.setSourceStaNo(null);    //  婧愮珯
+                    vo.setStaNo(null);   //  鐩爣绔�
+                    vo.setSourceLocNo(taskWrk.getStartPoint());    //  婧愬簱浣�
+                    vo.setLocNo(taskWrk.getTargetPoint());    //  鐩爣搴撲綅
                 }
             } else {
                 vo.setDeviceStatus(crnProtocol.modeType.equals(CrnModeType.AUTO)? CrnStatusType.MACHINE_AUTO.getDesc(): CrnStatusType.MACHINE_UN_AUTO.getDesc());   //  妯″紡鐘舵��
diff --git a/src/main/java/com/zy/asrs/controller/LocDetlController.java b/src/main/java/com/zy/asrs/controller/LocDetlController.java
deleted file mode 100644
index 93d4845..0000000
--- a/src/main/java/com/zy/asrs/controller/LocDetlController.java
+++ /dev/null
@@ -1,164 +0,0 @@
-package com.zy.asrs.controller;
-
-import com.alibaba.fastjson.JSONArray;
-import com.alibaba.fastjson.JSONObject;
-import com.baomidou.mybatisplus.mapper.EntityWrapper;
-import com.baomidou.mybatisplus.plugins.Page;
-import com.core.annotations.ManagerAuth;
-import com.core.common.BaseRes;
-import com.core.common.Cools;
-import com.core.common.DateUtils;
-import com.core.common.R;
-import com.zy.asrs.entity.LocDetl;
-import com.zy.asrs.mapper.LocDetlMapper;
-import com.zy.asrs.service.LocDetlService;
-import com.zy.common.web.BaseController;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.*;
-
-@RestController
-public class LocDetlController extends BaseController {
-
-    @Autowired
-    private LocDetlService locDetlService;
-
-    @Autowired
-    private LocDetlMapper locDetlMapper;
-
-    @RequestMapping(value = "/locDetl/{id}/auth")
-    @ManagerAuth
-    public R get(@PathVariable("id") String id) {
-        return R.ok(locDetlService.selectById(String.valueOf(id)));
-    }
-
-    @RequestMapping(value = "/locDetl/auth")
-    @ManagerAuth
-    public R stockOutList(@RequestParam(value = "locNos[]") List<String> locNos){
-        if (!locNos.isEmpty()) {
-            List<LocDetl> res = new ArrayList<>();
-            for (String locNo : new HashSet<>(locNos)) {
-                List<LocDetl> locDetls = locDetlService.selectList(new EntityWrapper<LocDetl>().eq("loc_no", locNo));
-                if (!locDetls.isEmpty()) {
-                    res.addAll(locDetls);
-                }
-            }
-            return R.ok().add(res);
-        }
-        return R.parse(BaseRes.EMPTY);
-    }
-
-    @RequestMapping(value = "/locDetl/list/auth")// /locDetl/list/auth 鎺ュ彛闂
-    @ManagerAuth
-    public R list(@RequestParam(defaultValue = "1")Integer curr,
-                  @RequestParam(defaultValue = "10")Integer limit,
-                  @RequestParam(required = false)String orderByField,
-                  @RequestParam(required = false)String orderByType,
-                  @RequestParam(required = false)String condition,
-                  @RequestParam Map<String, Object> param){
-        EntityWrapper<LocDetl> wrapper = new EntityWrapper<>();
-        excludeTrash(param);
-        convert(param, wrapper);
-        allLike(LocDetl.class, param.keySet(), wrapper, condition);
-        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
-        return R.ok(locDetlService.selectPage(new Page<>(curr, limit), wrapper));
-    }
-
-
-    private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){
-        for (Map.Entry<String, Object> entry : map.entrySet()){
-            String val = String.valueOf(entry.getValue());
-            if (val.contains(RANGE_TIME_LINK)){
-                String[] dates = val.split(RANGE_TIME_LINK);
-                wrapper.ge(entry.getKey(), DateUtils.convert(dates[0]));
-                wrapper.le(entry.getKey(), DateUtils.convert(dates[1]));
-            } else {
-                if (entry.getKey().equals("locNo")) {
-                    wrapper.eq("loc_no", String.valueOf(entry.getValue()));
-                } else {
-                    wrapper.like(entry.getKey(), String.valueOf(entry.getValue()));
-                }
-            }
-        }
-    }
-
-    @RequestMapping(value = "/locDetl/add/auth")
-    @ManagerAuth(memo = "搴撲綅鏄庣粏娣诲姞")
-    public R add(LocDetl locDetl) {
-        locDetl.setModiUser(getUserId());
-        locDetl.setModiTime(new Date());
-        locDetl.setAppeUser(getUserId());
-        locDetl.setAppeTime(new Date());
-        locDetlService.insert(locDetl);
-        return R.ok();
-    }
-
-	@RequestMapping(value = "/locDetl/update/auth")
-	@ManagerAuth(memo = "搴撲綅鏄庣粏淇敼")
-    public R update(LocDetl locDetl){
-        if (Cools.isEmpty(locDetl) || null==locDetl.getMatnr()){
-            return R.error();
-        }
-        locDetl.setModiUser(getUserId());
-        locDetl.setModiTime(new Date());
-        locDetlService.updateById(locDetl);
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/locDetl/delete/auth")
-    @ManagerAuth(memo = "搴撲綅鏄庣粏鍒犻櫎")
-    public R delete(@RequestParam String param){
-        List<LocDetl> list = JSONArray.parseArray(param, LocDetl.class);
-        if (Cools.isEmpty(list)){
-            return R.error();
-        }
-        for (LocDetl entity : list){
-            locDetlService.delete(new EntityWrapper<>(entity));
-        }
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/locDetl/export/auth")
-    @ManagerAuth(memo = "搴撲綅鏄庣粏瀵煎嚭")
-    public R export(@RequestBody JSONObject param){
-        List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class);
-        EntityWrapper<LocDetl> wrapper = new EntityWrapper<>();
-        Map<String, Object> map = excludeTrash(param.getJSONObject("locDetl"));
-        String row = "";
-        if (map.get("row") != null) {
-            String chooseRow = (String) map.get("row");
-            if (chooseRow.length() == 1) {
-                row = "0" + chooseRow;
-                map.remove("row");
-            }else {
-                row = chooseRow;
-                map.remove("row");
-            }
-        }
-        convert(map, wrapper);
-        if (!row.equals("")){
-            wrapper.and()
-                    .where("loc_no like '" +row +"%'");
-        }
-        List<LocDetl> list = locDetlService.selectList(wrapper);
-        return R.ok(exportSupport(list, fields));
-    }
-
-    @RequestMapping(value = "/locDetlQuery/auth")
-    @ManagerAuth
-    public R query(String condition) {
-        EntityWrapper<LocDetl> wrapper = new EntityWrapper<>();
-        wrapper.like("matnr", condition);
-        Page<LocDetl> page = locDetlService.selectPage(new Page<>(0, 10), wrapper);
-        List<Map<String, Object>> result = new ArrayList<>();
-        for (LocDetl locDetl : page.getRecords()){
-            Map<String, Object> map = new HashMap<>();
-            map.put("id", locDetl.getMatnr());
-            map.put("value", locDetl.getMatnr());
-            result.add(map);
-        }
-        return R.ok(result);
-    }
-
-}
diff --git a/src/main/java/com/zy/asrs/controller/LocMastController.java b/src/main/java/com/zy/asrs/controller/LocMastController.java
index 84e79dd..5632e93 100644
--- a/src/main/java/com/zy/asrs/controller/LocMastController.java
+++ b/src/main/java/com/zy/asrs/controller/LocMastController.java
@@ -10,13 +10,10 @@
 import com.core.common.Cools;
 import com.core.common.DateUtils;
 import com.core.common.R;
-import com.zy.asrs.entity.LocDetl;
 import com.zy.asrs.entity.LocMast;
 import com.zy.asrs.entity.param.LocMastInitParam;
-import com.zy.asrs.service.LocDetlService;
 import com.zy.asrs.service.LocMastService;
 import com.zy.common.entity.Parameter;
-import com.zy.common.model.Shelves;
 import com.zy.common.web.BaseController;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
@@ -28,8 +25,6 @@
 
     @Autowired
     private LocMastService locMastService;
-    @Autowired
-    private LocDetlService locDetlService;
 
     @RequestMapping(value = "/locMast/init/pwd")
     public R locMastInitPwd(@RequestParam(required = false) String pwd) {
@@ -203,7 +198,6 @@
             }
         }
         locMastService.delete(new EntityWrapper<>());
-        locDetlService.delete(new EntityWrapper<>());
         locMastService.insertBatch(list);
         return R.ok("鍒濆鍖栨垚鍔�");
     }
diff --git a/src/main/java/com/zy/asrs/controller/OpenController.java b/src/main/java/com/zy/asrs/controller/OpenController.java
index 8bb5a66..90055d5 100644
--- a/src/main/java/com/zy/asrs/controller/OpenController.java
+++ b/src/main/java/com/zy/asrs/controller/OpenController.java
@@ -14,7 +14,6 @@
 import com.zy.common.web.BaseController;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Value;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.web.bind.annotation.*;
 
@@ -47,9 +46,6 @@
     private LocMastService locMastService;
     @Autowired
     private BasCrnErrorService basCrnErrorService;
-
-    @Value("${wms.url}")
-    private String wmsUrl;
 
     private static final boolean auth = true;
 
diff --git a/src/main/java/com/zy/asrs/controller/ReportQueryController.java b/src/main/java/com/zy/asrs/controller/ReportQueryController.java
index cd42ffc..1445560 100644
--- a/src/main/java/com/zy/asrs/controller/ReportQueryController.java
+++ b/src/main/java/com/zy/asrs/controller/ReportQueryController.java
@@ -7,7 +7,6 @@
 import com.core.common.R;
 import com.zy.asrs.entity.*;
 import com.zy.asrs.mapper.ReportQueryMapper;
-import com.zy.asrs.service.LocDetlService;
 import com.zy.common.web.BaseController;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -29,8 +28,6 @@
 @RequestMapping("/report")
 public class ReportQueryController extends BaseController {
 
-	@Autowired
-	private LocDetlService locDetlService;
 	@Autowired
 	private ReportQueryMapper reportQueryMapper;
 
diff --git a/src/main/java/com/zy/asrs/controller/WrkDetlController.java b/src/main/java/com/zy/asrs/controller/WrkDetlController.java
deleted file mode 100644
index fbb34d4..0000000
--- a/src/main/java/com/zy/asrs/controller/WrkDetlController.java
+++ /dev/null
@@ -1,155 +0,0 @@
-package com.zy.asrs.controller;
-
-import com.alibaba.fastjson.JSONArray;
-import com.alibaba.fastjson.JSONObject;
-import com.baomidou.mybatisplus.mapper.EntityWrapper;
-import com.baomidou.mybatisplus.mapper.Wrapper;
-import com.baomidou.mybatisplus.plugins.Page;
-import com.core.annotations.ManagerAuth;
-import com.core.common.BaseRes;
-import com.core.common.Cools;
-import com.core.common.DateUtils;
-import com.core.common.R;
-import com.zy.asrs.entity.WrkDetl;
-import com.zy.asrs.service.WrkDetlService;
-import com.zy.common.web.BaseController;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-@RestController
-public class WrkDetlController extends BaseController {
-
-    @Autowired
-    private WrkDetlService wrkDetlService;
-
-    @RequestMapping(value = "/wrkDetl/{id}/auth")
-    @ManagerAuth
-    public R get(@PathVariable("id") String id) {
-        return R.ok(wrkDetlService.selectById(String.valueOf(id)));
-    }
-
-    @RequestMapping(value = "/wrkDetl/list/auth")
-    @ManagerAuth
-    public R list(@RequestParam(defaultValue = "1") Integer curr,
-                  @RequestParam(defaultValue = "10") Integer limit,
-                  @RequestParam(required = false) String orderByField,
-                  @RequestParam(required = false) String orderByType,
-                  @RequestParam(required = false) String condition,
-                  @RequestParam Map<String, Object> param) {
-        excludeTrash(param);
-        EntityWrapper<WrkDetl> wrapper = new EntityWrapper<>();
-        convert(param, wrapper);
-        allLike(WrkDetl.class, param.keySet(), wrapper, condition);
-        if (!Cools.isEmpty(orderByField)) {
-            wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));
-        } else {
-            wrapper.orderBy("appe_time", false);
-        }
-//        if (!Cools.isEmpty(ioTime)) {
-//            wrapper.eq("io_time", DateUtils.convert(ioTime, DateUtils.yyyyMMddHHmmsssss_F));
-//        }
-        return R.ok(wrkDetlService.selectPage(new Page<>(curr, limit), wrapper));
-    }
-
-    @RequestMapping(value = "/wrkDetl/list/{wrkNo}/auth")
-    @ManagerAuth
-    public R listByWrkNo(@RequestParam(defaultValue = "1") Integer curr,
-                         @RequestParam(defaultValue = "10") Integer limit,
-                         @RequestParam(required = false) String orderByField,
-                         @RequestParam(required = false) String orderByType,
-                         @RequestParam(required = false) String condition,
-                         @RequestParam Map<String, Object> param,
-                         @PathVariable("wrkNo") Integer wrkNo) {
-        excludeTrash(param);
-        EntityWrapper<WrkDetl> wrapper = new EntityWrapper<>();
-        convert(param, wrapper);
-        allLike(WrkDetl.class, param.keySet(), wrapper, condition);
-        wrapper.eq("wrk_no", wrkNo);
-        if (!Cools.isEmpty(orderByField)) {
-            wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));
-        } else {
-            wrapper.orderBy("appe_time", false);
-        }
-        return R.ok(wrkDetlService.selectPage(new Page<>(curr, limit), wrapper));
-    }
-
-    private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){
-        for (Map.Entry<String, Object> entry : map.entrySet()){
-            String val = String.valueOf(entry.getValue());
-            if (val.contains(RANGE_TIME_LINK)){
-                String[] dates = val.split(RANGE_TIME_LINK);
-                wrapper.ge(entry.getKey(), DateUtils.convert(dates[0]));
-                wrapper.le(entry.getKey(), DateUtils.convert(dates[1]));
-            } else {
-                if (entry.getKey().equals("io_time")) {
-                    wrapper.eq("io_time", DateUtils.convert(val, DateUtils.yyyyMMddHHmmsssss_F));
-                }else {
-                    wrapper.like(entry.getKey(), val);
-                }
-            }
-        }
-    }
-
-    @RequestMapping(value = "/wrkDetl/add/auth")
-    @ManagerAuth(memo = "宸ヤ綔妗f槑缁嗘坊鍔�")
-    public R add(WrkDetl wrkDetl) {
-        wrkDetlService.insert(wrkDetl);
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/wrkDetl/delete/auth")
-    @ManagerAuth(memo = "宸ヤ綔妗f槑缁嗗垹闄�")
-    public R delete(@RequestParam String param){
-        List<WrkDetl> list = JSONArray.parseArray(param, WrkDetl.class);
-        if (Cools.isEmpty(list)){
-            return R.error();
-        }
-        for (WrkDetl entity : list){
-            wrkDetlService.delete(new EntityWrapper<>(entity));
-        }
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/wrkDetl/export/auth")
-    @ManagerAuth(memo = "宸ヤ綔妗f槑缁嗗鍑�")
-    public R export(@RequestBody JSONObject param){
-        List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class);
-        EntityWrapper<WrkDetl> wrapper = new EntityWrapper<>();
-        Map<String, Object> map = excludeTrash(param.getJSONObject("wrkDetl"));
-        convert(map, wrapper);
-        List<WrkDetl> list = wrkDetlService.selectList(wrapper);
-        return R.ok(exportSupport(list, fields));
-    }
-
-    @RequestMapping(value = "/wrkDetlQuery/auth")
-    @ManagerAuth
-    public R query(String condition) {
-        EntityWrapper<WrkDetl> wrapper = new EntityWrapper<>();
-        wrapper.like("id", condition);
-        Page<WrkDetl> page = wrkDetlService.selectPage(new Page<>(0, 10), wrapper);
-        List<Map<String, Object>> result = new ArrayList<>();
-        for (WrkDetl wrkDetl : page.getRecords()){
-            Map<String, Object> map = new HashMap<>();
-            map.put("id", wrkDetl.getWrkNo());
-            map.put("value", wrkDetl.getWrkNo());
-            result.add(map);
-        }
-        return R.ok(result);
-    }
-
-    @RequestMapping(value = "/wrkDetl/check/column/auth")
-    @ManagerAuth
-    public R query(@RequestBody JSONObject param) {
-        Wrapper<WrkDetl> wrapper = new EntityWrapper<WrkDetl>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val"));
-        if (null != wrkDetlService.selectOne(wrapper)){
-            return R.parse(BaseRes.REPEAT).add(getComment(WrkDetl.class, String.valueOf(param.get("key"))));
-        }
-        return R.ok();
-    }
-
-}
diff --git a/src/main/java/com/zy/asrs/controller/WrkDetlLogController.java b/src/main/java/com/zy/asrs/controller/WrkDetlLogController.java
deleted file mode 100644
index 517e54d..0000000
--- a/src/main/java/com/zy/asrs/controller/WrkDetlLogController.java
+++ /dev/null
@@ -1,152 +0,0 @@
-package com.zy.asrs.controller;
-
-import com.alibaba.fastjson.JSONArray;
-import com.alibaba.fastjson.JSONObject;
-import com.baomidou.mybatisplus.mapper.EntityWrapper;
-import com.baomidou.mybatisplus.mapper.Wrapper;
-import com.baomidou.mybatisplus.plugins.Page;
-import com.core.annotations.ManagerAuth;
-import com.core.common.BaseRes;
-import com.core.common.Cools;
-import com.core.common.DateUtils;
-import com.core.common.R;
-import com.zy.asrs.entity.WrkDetlLog;
-import com.zy.asrs.service.WrkDetlLogService;
-import com.zy.common.web.BaseController;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-@RestController
-public class WrkDetlLogController extends BaseController {
-
-    @Autowired
-    private WrkDetlLogService wrkDetlLogService;
-
-    @RequestMapping(value = "/wrkDetlLog/{id}/auth")
-    @ManagerAuth
-    public R get(@PathVariable("id") String id) {
-        return R.ok(wrkDetlLogService.selectById(String.valueOf(id)));
-    }
-
-    /**
-     * 鏍规嵁宸ヤ綔涓绘。鏌ョ湅鏄庣粏鏃讹紝宸ヤ綔鍙疯繃婊ゆ槑缁�
-     */
-    @RequestMapping(value = "/wrkDetlLogByMast/list/auth")
-    @ManagerAuth
-    public R list1(@RequestParam(defaultValue = "1")Integer curr,
-                   @RequestParam(defaultValue = "10")Integer limit,
-                   @RequestParam Integer wrk_no,
-                   @RequestParam String ioTime){
-        EntityWrapper<WrkDetlLog> wrapper = new EntityWrapper<>();
-        if(!Cools.isEmpty(wrk_no) && wrk_no != 0){
-            wrapper.eq("wrk_no",wrk_no);
-        }
-        if(!Cools.isEmpty(ioTime)){
-            wrapper.eq("io_time", DateUtils.convert(ioTime, DateUtils.yyyyMMddHHmmsssss_F));
-        }
-        return R.ok(wrkDetlLogService.selectPage(new Page<>(curr, limit), wrapper));
-    }
-
-    @RequestMapping(value = "/wrkDetlLog/list/auth")
-    @ManagerAuth
-    public R list(@RequestParam(defaultValue = "1")Integer curr,
-                  @RequestParam(defaultValue = "10")Integer limit,
-                  @RequestParam(required = false)String orderByField,
-                  @RequestParam(required = false)String orderByType,
-                  @RequestParam Map<String, Object> param){
-        EntityWrapper<WrkDetlLog> wrapper = new EntityWrapper<>();
-        excludeTrash(param);
-        convert(param, wrapper);
-        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
-        else {
-            wrapper.orderBy("modi_time", false);
-        }
-        return R.ok(wrkDetlLogService.selectPage(new Page<>(curr, limit), wrapper));
-    }
-
-    private void convert(Map<String, Object> map, EntityWrapper wrapper){
-        for (Map.Entry<String, Object> entry : map.entrySet()){
-            String val = String.valueOf(entry.getValue());
-            if (val.contains(RANGE_TIME_LINK)){
-                String[] dates = val.split(RANGE_TIME_LINK);
-                wrapper.ge(entry.getKey(), DateUtils.convert(dates[0]));
-                wrapper.le(entry.getKey(), DateUtils.convert(dates[1]));
-            } else {
-                wrapper.like(entry.getKey(), val);
-            }
-        }
-    }
-
-    @RequestMapping(value = "/wrkDetlLog/add/auth")
-    @ManagerAuth
-    public R add(WrkDetlLog wrkDetlLog) {
-        wrkDetlLogService.insert(wrkDetlLog);
-        return R.ok();
-    }
-
-	@RequestMapping(value = "/wrkDetlLog/update/auth")
-	@ManagerAuth
-    public R update(WrkDetlLog wrkDetlLog){
-        if (Cools.isEmpty(wrkDetlLog) || null==wrkDetlLog.getWrkNo()){
-            return R.error();
-        }
-        wrkDetlLogService.updateById(wrkDetlLog);
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/wrkDetlLog/delete/auth")
-    @ManagerAuth
-    public R delete(@RequestParam String param){
-        List<WrkDetlLog> list = JSONArray.parseArray(param, WrkDetlLog.class);
-        if (Cools.isEmpty(list)){
-            return R.error();
-        }
-        for (WrkDetlLog entity : list){
-            wrkDetlLogService.delete(new EntityWrapper<>(entity));
-        }
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/wrkDetlLog/export/auth")
-    @ManagerAuth
-    public R export(@RequestBody JSONObject param){
-        EntityWrapper<WrkDetlLog> wrapper = new EntityWrapper<>();
-        List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class);
-        Map<String, Object> map = excludeTrash(param.getJSONObject("wrkDetlLog"));
-        convert(map, wrapper);
-        List<WrkDetlLog> list = wrkDetlLogService.selectList(wrapper);
-        return R.ok(exportSupport(list, fields));
-    }
-
-    @RequestMapping(value = "/wrkDetlLogQuery/auth")
-    @ManagerAuth
-    public R query(String condition) {
-        EntityWrapper<WrkDetlLog> wrapper = new EntityWrapper<>();
-        wrapper.like("id", condition);
-        Page<WrkDetlLog> page = wrkDetlLogService.selectPage(new Page<>(0, 10), wrapper);
-        List<Map<String, Object>> result = new ArrayList<>();
-        for (WrkDetlLog wrkDetlLog : page.getRecords()){
-            Map<String, Object> map = new HashMap<>();
-            map.put("id", wrkDetlLog.getWrkNo());
-            map.put("value", wrkDetlLog.getWrkNo());
-            result.add(map);
-        }
-        return R.ok(result);
-    }
-
-    @RequestMapping(value = "/wrkDetlLog/check/column/auth")
-    @ManagerAuth
-    public R query(@RequestBody JSONObject param) {
-        Wrapper<WrkDetlLog> wrapper = new EntityWrapper<WrkDetlLog>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val"));
-        if (null != wrkDetlLogService.selectOne(wrapper)){
-            return R.parse(BaseRes.REPEAT).add(getComment(WrkDetlLog.class, String.valueOf(param.get("key"))));
-        }
-        return R.ok();
-    }
-
-}
diff --git a/src/main/java/com/zy/asrs/controller/WrkMastController.java b/src/main/java/com/zy/asrs/controller/WrkMastController.java
deleted file mode 100644
index 8a30b90..0000000
--- a/src/main/java/com/zy/asrs/controller/WrkMastController.java
+++ /dev/null
@@ -1,172 +0,0 @@
-package com.zy.asrs.controller;
-
-import com.alibaba.fastjson.JSONArray;
-import com.alibaba.fastjson.JSONObject;
-import com.baomidou.mybatisplus.mapper.EntityWrapper;
-import com.baomidou.mybatisplus.mapper.Wrapper;
-import com.baomidou.mybatisplus.plugins.Page;
-import com.core.annotations.ManagerAuth;
-import com.core.common.BaseRes;
-import com.core.common.Cools;
-import com.core.common.DateUtils;
-import com.core.common.R;
-import com.zy.asrs.entity.WrkMast;
-import com.zy.asrs.service.CommandInfoService;
-import com.zy.asrs.service.WrkMastService;
-import com.zy.common.web.BaseController;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.*;
-
-@RestController
-public class WrkMastController extends BaseController {
-
-    @Autowired
-    private WrkMastService wrkMastService;
-    @Autowired
-    private CommandInfoService commandInfoService;
-
-    @RequestMapping(value = "/wrkMast/{id}/auth")
-    @ManagerAuth
-    public R get(@PathVariable("id") String id) {
-        return R.ok(wrkMastService.selectById(String.valueOf(id)));
-    }
-
-    @RequestMapping(value = "/wrkMast/list/auth")
-    @ManagerAuth
-    public R list(@RequestParam(defaultValue = "1")Integer curr,
-                  @RequestParam(defaultValue = "10")Integer limit,
-                  @RequestParam(required = false)String orderByField,
-                  @RequestParam(required = false)String orderByType,
-                  @RequestParam(required = false)String condition,
-                  @RequestParam Map<String, Object> param){
-        excludeTrash(param);
-        EntityWrapper<WrkMast> wrapper = new EntityWrapper<>();
-        convert(param, wrapper);
-        allLike(WrkMast.class, param.keySet(), wrapper, condition);
-        if (!Cools.isEmpty(orderByField)){
-            if (orderByField.endsWith("$")){
-                orderByField = orderByField.substring(0, orderByField.length()-1);
-            }
-            wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));
-        }else {
-            wrapper.orderBy("io_time", false);
-        }
-        return R.ok(wrkMastService.selectPage(new Page<>(curr, limit), wrapper));
-    }
-
-    private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){
-        for (Map.Entry<String, Object> entry : map.entrySet()){
-            String val = String.valueOf(entry.getValue());
-            if (val.contains(RANGE_TIME_LINK)){
-                String[] dates = val.split(RANGE_TIME_LINK);
-                wrapper.ge(entry.getKey(), DateUtils.convert(dates[0]));
-                wrapper.le(entry.getKey(), DateUtils.convert(dates[1]));
-            } else {
-                wrapper.eq(entry.getKey(), val);
-            }
-        }
-    }
-
-    @RequestMapping(value = "/wrkMast/add/auth")
-    @ManagerAuth(memo = "宸ヤ綔妗f坊鍔�")
-    public R add(WrkMast wrkMast) {
-        wrkMast.setModiUser(getUserId());
-        wrkMast.setModiTime(new Date());
-        wrkMast.setAppeUser(getUserId());
-        wrkMast.setAppeTime(new Date());
-        wrkMastService.insert(wrkMast);
-        return R.ok();
-    }
-
-	@RequestMapping(value = "/wrkMast/update/auth")
-	@ManagerAuth(memo = "宸ヤ綔妗d慨鏀�")
-    public R update(WrkMast wrkMast){
-        if (Cools.isEmpty(wrkMast) || null==wrkMast.getWrkNo()){
-            return R.error();
-        }
-        wrkMast.setModiUser(getUserId());
-        wrkMast.setModiTime(new Date());
-        wrkMastService.updateById(wrkMast);
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/wrkMast/delete/auth")
-    @ManagerAuth(memo = "宸ヤ綔妗e垹闄�")
-    public R delete(@RequestParam String param){
-        List<WrkMast> list = JSONArray.parseArray(param, WrkMast.class);
-        if (Cools.isEmpty(list)){
-            return R.error();
-        }
-        for (WrkMast entity : list){
-            wrkMastService.delete(new EntityWrapper<>(entity));
-        }
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/wrkMast/export/auth")
-    @ManagerAuth(memo = "宸ヤ綔妗e鍑�")
-    public R export(@RequestBody JSONObject param){
-        List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class);
-        EntityWrapper<WrkMast> wrapper = new EntityWrapper<>();
-        Map<String, Object> map = excludeTrash(param.getJSONObject("wrkMast"));
-        convert(map, wrapper);
-        List<WrkMast> list = wrkMastService.selectList(wrapper);
-        return R.ok(exportSupport(list, fields));
-    }
-
-    @RequestMapping(value = "/wrkMastQuery/auth")
-    @ManagerAuth
-    public R query(String condition) {
-        EntityWrapper<WrkMast> wrapper = new EntityWrapper<>();
-        wrapper.like("wrk_no", condition);
-        Page<WrkMast> page = wrkMastService.selectPage(new Page<>(0, 10), wrapper);
-        List<Map<String, Object>> result = new ArrayList<>();
-        for (WrkMast wrkMast : page.getRecords()){
-            Map<String, Object> map = new HashMap<>();
-            map.put("id", wrkMast.getWrkNo());
-            map.put("value", wrkMast.getWrkNo());
-            result.add(map);
-        }
-        return R.ok(result);
-    }
-
-    @RequestMapping(value = "/wrkMast/check/column/auth")
-    @ManagerAuth
-    public R query(@RequestBody JSONObject param) {
-        Wrapper<WrkMast> wrapper = new EntityWrapper<WrkMast>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val"));
-        if (null != wrkMastService.selectOne(wrapper)){
-            return R.parse(BaseRes.REPEAT).add(getComment(WrkMast.class, String.valueOf(param.get("key"))));
-        }
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/wrkMast/add/pri/auth")
-    @ManagerAuth(memo = "宸ヤ綔妗e鍔犱紭鍏堢骇")
-    public R addPri(@RequestBody List<WrkMast> list) {
-        if (list.isEmpty()) {
-            return R.error("璇疯嚦灏戦�夋嫨涓�琛屾暟鎹�");
-        }
-        for (WrkMast entity : list){
-           entity.setIoPri(entity.getIoPri() + 1);
-        }
-        wrkMastService.updateBatchById(list);
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/wrkMast/red/pri/auth")
-    @ManagerAuth(memo = "宸ヤ綔妗i檷浣庝紭鍏堢骇")
-    public R redPri(@RequestBody List<WrkMast> list) {
-        if (list.isEmpty()) {
-            return R.error("璇疯嚦灏戦�夋嫨涓�琛屾暟鎹�");
-        }
-        for (WrkMast entity : list){
-            entity.setIoPri(entity.getIoPri() - 1);
-        }
-        wrkMastService.updateBatchById(list);
-        return R.ok();
-    }
-
-
-}
diff --git a/src/main/java/com/zy/asrs/controller/WrkMastLogController.java b/src/main/java/com/zy/asrs/controller/WrkMastLogController.java
deleted file mode 100644
index 7e0bec4..0000000
--- a/src/main/java/com/zy/asrs/controller/WrkMastLogController.java
+++ /dev/null
@@ -1,143 +0,0 @@
-package com.zy.asrs.controller;
-
-import com.alibaba.fastjson.JSONArray;
-import com.alibaba.fastjson.JSONObject;
-import com.baomidou.mybatisplus.mapper.EntityWrapper;
-import com.baomidou.mybatisplus.mapper.Wrapper;
-import com.baomidou.mybatisplus.plugins.Page;
-import com.core.annotations.ManagerAuth;
-import com.core.common.BaseRes;
-import com.core.common.Cools;
-import com.core.common.DateUtils;
-import com.core.common.R;
-import com.zy.asrs.entity.WrkMastLog;
-import com.zy.asrs.service.WrkMastLogService;
-import com.zy.common.web.BaseController;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-@RestController
-public class WrkMastLogController extends BaseController {
-
-    @Autowired
-    private WrkMastLogService wrkMastLogService;
-
-    @RequestMapping(value = "/wrkMastLog/{id}/auth")
-    @ManagerAuth
-    public R get(@PathVariable("id") String id) {
-        return R.ok(wrkMastLogService.selectById(String.valueOf(id)));
-    }
-
-    @RequestMapping(value = "/wrkMastLog/list/auth")
-    @ManagerAuth
-    public R list(@RequestParam(defaultValue = "1")Integer curr,
-                  @RequestParam(defaultValue = "10")Integer limit,
-                  @RequestParam(required = false)String orderByField,
-                  @RequestParam(required = false)String orderByType,
-                  @RequestParam(required = false)String condition,
-                  @RequestParam Map<String, Object> param){
-        excludeTrash(param);
-        EntityWrapper<WrkMastLog> wrapper = new EntityWrapper<>();
-        convert(param, wrapper);
-        allLike(WrkMastLog.class, param.keySet(), wrapper, condition);
-        if (!Cools.isEmpty(orderByField)){
-            if (orderByField.endsWith("$")){
-                orderByField = orderByField.substring(0, orderByField.length()-1);
-            }
-            wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));
-        }else {
-            wrapper.orderBy("modi_time", false);
-        }
-        return R.ok(wrkMastLogService.selectPage(new Page<>(curr, limit), wrapper));
-    }
-
-    private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){
-        for (Map.Entry<String, Object> entry : map.entrySet()){
-            String val = String.valueOf(entry.getValue());
-            if (val.contains(RANGE_TIME_LINK)){
-                String[] dates = val.split(RANGE_TIME_LINK);
-                wrapper.ge(entry.getKey(), DateUtils.convert(dates[0]));
-                wrapper.le(entry.getKey(), DateUtils.convert(dates[1]));
-            } else {
-                if (entry.getKey().equals("manu_type")) {
-                    wrapper.like(entry.getKey(), val);
-                } else {
-                    wrapper.eq(entry.getKey(), val);
-                }
-            }
-        }
-    }
-
-    @RequestMapping(value = "/wrkMastLog/add/auth")
-    @ManagerAuth(memo = "宸ヤ綔鍘嗗彶妗f坊鍔�")
-    public R add(WrkMastLog wrkMastLog) {
-        wrkMastLogService.insert(wrkMastLog);
-        return R.ok();
-    }
-
-	@RequestMapping(value = "/wrkMastLog/update/auth")
-	@ManagerAuth(memo = "宸ヤ綔鍘嗗彶妗d慨鏀�")
-    public R update(WrkMastLog wrkMastLog){
-        if (Cools.isEmpty(wrkMastLog) || null==wrkMastLog.getId()){
-            return R.error();
-        }
-        wrkMastLogService.updateById(wrkMastLog);
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/wrkMastLog/delete/auth")
-    @ManagerAuth(memo = "宸ヤ綔鍘嗗彶妗e垹闄�")
-    public R delete(@RequestParam String param){
-        List<WrkMastLog> list = JSONArray.parseArray(param, WrkMastLog.class);
-        if (Cools.isEmpty(list)){
-            return R.error();
-        }
-        for (WrkMastLog entity : list){
-            wrkMastLogService.delete(new EntityWrapper<>(entity));
-        }
-        return R.ok();
-    }
-
-    @RequestMapping(value = "/wrkMastLog/export/auth")
-    @ManagerAuth(memo = "宸ヤ綔鍘嗗彶妗e鍑�")
-    public R export(@RequestBody JSONObject param){
-        List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class);
-        EntityWrapper<WrkMastLog> wrapper = new EntityWrapper<>();
-        Map<String, Object> map = excludeTrash(param.getJSONObject("wrkMastLog"));
-        convert(map, wrapper);
-        List<WrkMastLog> list = wrkMastLogService.selectList(wrapper);
-        return R.ok(exportSupport(list, fields));
-    }
-
-    @RequestMapping(value = "/wrkMastLogQuery/auth")
-    @ManagerAuth
-    public R query(String condition) {
-        EntityWrapper<WrkMastLog> wrapper = new EntityWrapper<>();
-        wrapper.like("id", condition);
-        Page<WrkMastLog> page = wrkMastLogService.selectPage(new Page<>(0, 10), wrapper);
-        List<Map<String, Object>> result = new ArrayList<>();
-        for (WrkMastLog wrkMastLog : page.getRecords()){
-            Map<String, Object> map = new HashMap<>();
-            map.put("id", wrkMastLog.getId());
-            map.put("value", wrkMastLog.getId());
-            result.add(map);
-        }
-        return R.ok(result);
-    }
-
-    @RequestMapping(value = "/wrkMastLog/check/column/auth")
-    @ManagerAuth
-    public R query(@RequestBody JSONObject param) {
-        Wrapper<WrkMastLog> wrapper = new EntityWrapper<WrkMastLog>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val"));
-        if (null != wrkMastLogService.selectOne(wrapper)){
-            return R.parse(BaseRes.REPEAT).add(getComment(WrkMastLog.class, String.valueOf(param.get("key"))));
-        }
-        return R.ok();
-    }
-
-}
diff --git a/src/main/java/com/zy/asrs/entity/LocDetl.java b/src/main/java/com/zy/asrs/entity/LocDetl.java
deleted file mode 100644
index 87c44d8..0000000
--- a/src/main/java/com/zy/asrs/entity/LocDetl.java
+++ /dev/null
@@ -1,249 +0,0 @@
-package com.zy.asrs.entity;
-
-import com.alibaba.excel.annotation.ExcelProperty;
-import com.baomidou.mybatisplus.annotations.TableField;
-import com.baomidou.mybatisplus.annotations.TableName;
-import com.core.common.Cools;
-import com.core.common.SpringUtils;
-import com.zy.asrs.service.LocMastService;
-import com.zy.system.entity.User;
-import com.zy.system.service.UserService;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-
-import java.io.Serializable;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-@Data
-@TableName("asr_loc_detl")
-public class LocDetl implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    @ApiModelProperty(value= "搴撲綅鍙�")
-    @TableField("loc_no")
-    private String locNo;
-
-    @ApiModelProperty(value= "鎵樼洏鏉$爜")
-    private String zpallet;
-
-    @ApiModelProperty(value= "鏁伴噺")
-    @ExcelProperty("鏁伴噺")
-    private Double anfme;
-
-    @ApiModelProperty(value= "鍟嗗搧缂栧彿")
-    @ExcelProperty("鍟嗗搧缂栧彿")
-    private String matnr;
-
-    @ApiModelProperty(value= "鍟嗗搧鍚嶇О")
-    @ExcelProperty("鍟嗗搧鍚嶇О")
-    private String maktx;
-
-    @ApiModelProperty(value= "鎵瑰彿")
-    @ExcelProperty("鎵瑰彿")
-    private String batch;
-
-    @ApiModelProperty(value= "鍗曟嵁缂栧彿")
-    @ExcelProperty("鍗曟嵁缂栧彿")
-    @TableField("order_no")
-    private String orderNo;
-
-    @ApiModelProperty(value= "瑙勬牸")
-    private String specs;
-
-    @ApiModelProperty(value= "鍨嬪彿")
-    private String model;
-
-    @ApiModelProperty(value= "棰滆壊")
-    private String color;
-
-    @ApiModelProperty(value= "鍝佺墝")
-    private String brand;
-
-    @ApiModelProperty(value= "鍗曚綅")
-    private String unit;
-
-    @ApiModelProperty(value= "鍗曚环")
-    private Double price;
-
-    @ApiModelProperty(value= "sku")
-    private String sku;
-
-    @ApiModelProperty(value= "鍗曚綅閲�")
-    private Double units;
-
-    @ApiModelProperty(value= "鏉$爜")
-    private String barcode;
-
-    @ApiModelProperty(value= "浜у湴")
-    private String origin;
-
-    @ApiModelProperty(value= "鍘傚")
-    private String manu;
-
-    @ApiModelProperty(value= "鐢熶骇鏃ユ湡")
-    @TableField("manu_date")
-    private String manuDate;
-
-    @ApiModelProperty(value= "鍝侀」鏁�")
-    @TableField("item_num")
-    private String itemNum;
-
-    @ApiModelProperty(value= "瀹夊叏搴撳瓨閲�")
-    @TableField("safe_qty")
-    private Double safeQty;
-
-    @ApiModelProperty(value= "閲嶉噺")
-    private Double weight;
-
-    @ApiModelProperty(value= "闀垮害")
-    private Double length;
-
-    @ApiModelProperty(value= "浣撶Н")
-    private Double volume;
-
-    @ApiModelProperty(value= "涓夋柟缂栫爜")
-    @TableField("three_code")
-    private String threeCode;
-
-    @ApiModelProperty(value= "渚涘簲鍟�")
-    private String supp;
-
-    @ApiModelProperty(value= "渚涘簲鍟嗙紪鐮�")
-    @TableField("supp_code")
-    private String suppCode;
-
-    @ApiModelProperty(value= "鏄惁鎵规 1: 鏄�  0: 鍚�  ")
-    @TableField("be_batch")
-    private Integer beBatch;
-
-    @ApiModelProperty(value= "淇濊川鏈�")
-    @TableField("dead_time")
-    private String deadTime;
-
-    @ApiModelProperty(value= "棰勮澶╂暟")
-    @TableField("dead_warn")
-    private Integer deadWarn;
-
-    @ApiModelProperty(value= "鍒惰喘 1: 鍒堕��  2: 閲囪喘  3: 澶栧崗  ")
-    private Integer source;
-
-    @ApiModelProperty(value= "瑕佹眰妫�楠� 1: 鏄�  0: 鍚�  ")
-    private Integer inspect;
-
-    @ApiModelProperty(value= "鍗遍櫓鍝� 1: 鏄�  0: 鍚�  ")
-    private Integer danger;
-
-    @ApiModelProperty(value= "淇敼浜哄憳")
-    @TableField("modi_user")
-    private Long modiUser;
-
-    @ApiModelProperty(value= "淇敼鏃堕棿")
-    @TableField("modi_time")
-    private Date modiTime;
-
-    @ApiModelProperty(value= "鍒涘缓鑰�")
-    @TableField("appe_user")
-    private Long appeUser;
-
-    @ApiModelProperty(value= "娣诲姞鏃堕棿")
-    @TableField("appe_time")
-    private Date appeTime;
-
-    @ApiModelProperty(value= "澶囨敞")
-    private String memo;
-
-    public String getLocNo$(){
-        LocMastService service = SpringUtils.getBean(LocMastService.class);
-        LocMast locMast = service.selectById(this.locNo);
-        if (!Cools.isEmpty(locMast)){
-            return String.valueOf(locMast.getLocNo());
-        }
-        return null;
-    }
-
-    public String getBeBatch$(){
-        if (null == this.beBatch){ return null; }
-        switch (this.beBatch){
-            case 1:
-                return "鏄�";
-            case 0:
-                return "鍚�";
-            default:
-                return String.valueOf(this.beBatch);
-        }
-    }
-
-    public String getSource$(){
-        if (null == this.source){ return null; }
-        switch (this.source){
-            case 1:
-                return "鍒堕��";
-            case 2:
-                return "閲囪喘";
-            case 3:
-                return "澶栧崗";
-            default:
-                return String.valueOf(this.source);
-        }
-    }
-
-    public String getInspect$(){
-        if (null == this.inspect){ return null; }
-        switch (this.inspect){
-            case 1:
-                return "鏄�";
-            case 0:
-                return "鍚�";
-            default:
-                return String.valueOf(this.inspect);
-        }
-    }
-
-    public String getDanger$(){
-        if (null == this.danger){ return null; }
-        switch (this.danger){
-            case 1:
-                return "鏄�";
-            case 0:
-                return "鍚�";
-            default:
-                return String.valueOf(this.danger);
-        }
-    }
-
-    public String getModiUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.modiUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public String getModiTime$(){
-        if (Cools.isEmpty(this.modiTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
-    }
-
-    public String getAppeUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.appeUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public String getAppeTime$(){
-        if (Cools.isEmpty(this.appeTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
-    }
-
-
-}
diff --git a/src/main/java/com/zy/asrs/entity/MatCode.java b/src/main/java/com/zy/asrs/entity/MatCode.java
deleted file mode 100644
index e6f8431..0000000
--- a/src/main/java/com/zy/asrs/entity/MatCode.java
+++ /dev/null
@@ -1,593 +0,0 @@
-package com.zy.asrs.entity;
-
-import com.baomidou.mybatisplus.annotations.TableField;
-import com.baomidou.mybatisplus.annotations.TableId;
-import com.baomidou.mybatisplus.annotations.TableName;
-import com.baomidou.mybatisplus.enums.IdType;
-import com.core.common.Cools;
-import com.core.common.SpringUtils;
-import com.zy.system.entity.User;
-import com.zy.system.service.UserService;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-@TableName("bas_mat_code")
-public class MatCode implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 鍟嗗搧缂栧彿
-     */
-    @ApiModelProperty(value= "鍟嗗搧缂栧彿")
-    @TableId(value = "mat_no", type = IdType.INPUT)
-    @TableField("mat_no")
-    private String matNo;
-
-    /**
-     * 鏉$爜
-     */
-    @ApiModelProperty(value= "鏉″舰鐮�")
-    private String barcode;
-
-    /**
-     * 鍟嗗搧鍚嶇О
-     */
-    @ApiModelProperty(value= "鍟嗗搧鍚嶇О")
-    @TableField("mat_name")
-    private String matName;
-
-    /**
-     * 鐗╂枡鍗曚綅
-     */
-    @ApiModelProperty(value= "鍗曚綅")
-    private String str1;
-
-    @ApiModelProperty(value= "瑙勬牸")
-    private String str2;
-
-    @ApiModelProperty(value= "鍝侀」鏁�")
-    private String str3;
-
-    @ApiModelProperty(value= "瀹㈡埛鍚嶇О")
-    private String str4;
-
-    @ApiModelProperty(value= "鍨嬪彿")
-    private String str5;
-
-    @ApiModelProperty(value= "鎵瑰彿")
-    private String str6;
-
-    @ApiModelProperty(value= "鍗曟嵁缂栧彿")
-    private String str7;
-
-    @ApiModelProperty(value= "")
-    private String str8;
-
-    @ApiModelProperty(value= "")
-    private String str9;
-
-    @ApiModelProperty(value= "")
-    private String str10;
-
-    @ApiModelProperty(value= "")
-    private String str11;
-
-    @ApiModelProperty(value= "")
-    private String str12;
-
-    @ApiModelProperty(value= "")
-    private String str13;
-
-    @ApiModelProperty(value= "")
-    private String str14;
-
-    @ApiModelProperty(value= "")
-    private String str15;
-
-    @ApiModelProperty(value= "")
-    private String str16;
-
-    @ApiModelProperty(value= "")
-    private String str17;
-
-    @ApiModelProperty(value= "")
-    private String str18;
-
-    @ApiModelProperty(value= "")
-    private String str19;
-
-    @ApiModelProperty(value= "")
-    private String str20;
-
-    @ApiModelProperty(value= "")
-    private String str21;
-
-    @ApiModelProperty(value= "")
-    private String str22;
-
-    @ApiModelProperty(value= "")
-    private String str23;
-
-    @ApiModelProperty(value= "閲嶉噺")
-    private Double num1;
-
-    @ApiModelProperty(value= "")
-    private Double num2;
-
-    @ApiModelProperty(value= "")
-    private Double num3;
-
-    @ApiModelProperty(value= "")
-    private Double num4;
-
-    @ApiModelProperty(value= "")
-    private Double num5;
-
-    @ApiModelProperty(value= "")
-    private Double num6;
-
-    @ApiModelProperty(value= "")
-    private Date date1;
-
-    /**
-     * 鍒涘缓鑰�
-     */
-    @ApiModelProperty(value= "鍒涘缓鑰�")
-    @TableField("appe_user")
-    private Long appeUser;
-
-    /**
-     * 娣诲姞鏃堕棿
-     */
-    @ApiModelProperty(value= "娣诲姞鏃堕棿")
-    @TableField("appe_time")
-    private Date appeTime;
-
-    /**
-     * 淇敼浜哄憳
-     */
-    @ApiModelProperty(value= "淇敼浜哄憳")
-    @TableField("modi_user")
-    private Long modiUser;
-
-    /**
-     * 淇敼鏃堕棿
-     */
-    @ApiModelProperty(value= "淇敼鏃堕棿")
-    @TableField("modi_time")
-    private Date modiTime;
-
-    @ApiModelProperty(value= "")
-    private Short status;
-
-    public MatCode() {}
-
-    public MatCode(String barcode,String matName,String str1,String str2,String str3,String str4,String str5,String str6,String str7,String str8,String str9,String str10,String str11,String str12,String str13,String str14,String str15,String str16,String str17,String str18,String str19,String str20,String str21,String str22,String str23,Double num1,Double num2,Double num3,Double num4,Double num5,Double num6,Date date1,Long appeUser,Date appeTime,Long modiUser,Date modiTime,Short status) {
-        this.barcode = barcode;
-        this.matName = matName;
-        this.str1 = str1;
-        this.str2 = str2;
-        this.str3 = str3;
-        this.str4 = str4;
-        this.str5 = str5;
-        this.str6 = str6;
-        this.str7 = str7;
-        this.str8 = str8;
-        this.str9 = str9;
-        this.str10 = str10;
-        this.str11 = str11;
-        this.str12 = str12;
-        this.str13 = str13;
-        this.str14 = str14;
-        this.str15 = str15;
-        this.str16 = str16;
-        this.str17 = str17;
-        this.str18 = str18;
-        this.str19 = str19;
-        this.str20 = str20;
-        this.str21 = str21;
-        this.str22 = str22;
-        this.str23 = str23;
-        this.num1 = num1;
-        this.num2 = num2;
-        this.num3 = num3;
-        this.num4 = num4;
-        this.num5 = num5;
-        this.num6 = num6;
-        this.date1 = date1;
-        this.appeUser = appeUser;
-        this.appeTime = appeTime;
-        this.modiUser = modiUser;
-        this.modiTime = modiTime;
-        this.status = status;
-    }
-
-//    MatCode matCode = new MatCode(
-//            null,    // 鏉$爜
-//            null,    // 鍟嗗搧鍚嶇О
-//            null,    // 鐗╂枡鍗曚綅
-//            null,    // 瑙勬牸
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 
-//            null,    // 鍒涘缓鑰�
-//            null,    // 娣诲姞鏃堕棿
-//            null,    // 淇敼浜哄憳
-//            null,    // 淇敼鏃堕棿
-//            null    // 
-//    );
-
-    public String getMatNo() {
-        return matNo;
-    }
-
-    public void setMatNo(String matNo) {
-        this.matNo = matNo;
-    }
-
-    public String getBarcode() {
-        return barcode;
-    }
-
-    public void setBarcode(String barcode) {
-        this.barcode = barcode;
-    }
-
-    public String getMatName() {
-        return matName;
-    }
-
-    public void setMatName(String matName) {
-        this.matName = matName;
-    }
-
-    public String getStr1() {
-        return str1;
-    }
-
-    public void setStr1(String str1) {
-        this.str1 = str1;
-    }
-
-    public String getStr2() {
-        return str2;
-    }
-
-    public void setStr2(String str2) {
-        this.str2 = str2;
-    }
-
-    public String getStr3() {
-        return str3;
-    }
-
-    public void setStr3(String str3) {
-        this.str3 = str3;
-    }
-
-    public String getStr4() {
-        return str4;
-    }
-
-    public void setStr4(String str4) {
-        this.str4 = str4;
-    }
-
-    public String getStr5() {
-        return str5;
-    }
-
-    public void setStr5(String str5) {
-        this.str5 = str5;
-    }
-
-    public String getStr6() {
-        return str6;
-    }
-
-    public void setStr6(String str6) {
-        this.str6 = str6;
-    }
-
-    public String getStr7() {
-        return str7;
-    }
-
-    public void setStr7(String str7) {
-        this.str7 = str7;
-    }
-
-    public String getStr8() {
-        return str8;
-    }
-
-    public void setStr8(String str8) {
-        this.str8 = str8;
-    }
-
-    public String getStr9() {
-        return str9;
-    }
-
-    public void setStr9(String str9) {
-        this.str9 = str9;
-    }
-
-    public String getStr10() {
-        return str10;
-    }
-
-    public void setStr10(String str10) {
-        this.str10 = str10;
-    }
-
-    public String getStr11() {
-        return str11;
-    }
-
-    public void setStr11(String str11) {
-        this.str11 = str11;
-    }
-
-    public String getStr12() {
-        return str12;
-    }
-
-    public void setStr12(String str12) {
-        this.str12 = str12;
-    }
-
-    public String getStr13() {
-        return str13;
-    }
-
-    public void setStr13(String str13) {
-        this.str13 = str13;
-    }
-
-    public String getStr14() {
-        return str14;
-    }
-
-    public void setStr14(String str14) {
-        this.str14 = str14;
-    }
-
-    public String getStr15() {
-        return str15;
-    }
-
-    public void setStr15(String str15) {
-        this.str15 = str15;
-    }
-
-    public String getStr16() {
-        return str16;
-    }
-
-    public void setStr16(String str16) {
-        this.str16 = str16;
-    }
-
-    public String getStr17() {
-        return str17;
-    }
-
-    public void setStr17(String str17) {
-        this.str17 = str17;
-    }
-
-    public String getStr18() {
-        return str18;
-    }
-
-    public void setStr18(String str18) {
-        this.str18 = str18;
-    }
-
-    public String getStr19() {
-        return str19;
-    }
-
-    public void setStr19(String str19) {
-        this.str19 = str19;
-    }
-
-    public String getStr20() {
-        return str20;
-    }
-
-    public void setStr20(String str20) {
-        this.str20 = str20;
-    }
-
-    public String getStr21() {
-        return str21;
-    }
-
-    public void setStr21(String str21) {
-        this.str21 = str21;
-    }
-
-    public String getStr22() {
-        return str22;
-    }
-
-    public void setStr22(String str22) {
-        this.str22 = str22;
-    }
-
-    public String getStr23() {
-        return str23;
-    }
-
-    public void setStr23(String str23) {
-        this.str23 = str23;
-    }
-
-    public Double getNum1() {
-        return num1;
-    }
-
-    public void setNum1(Double num1) {
-        this.num1 = num1;
-    }
-
-    public Double getNum2() {
-        return num2;
-    }
-
-    public void setNum2(Double num2) {
-        this.num2 = num2;
-    }
-
-    public Double getNum3() {
-        return num3;
-    }
-
-    public void setNum3(Double num3) {
-        this.num3 = num3;
-    }
-
-    public Double getNum4() {
-        return num4;
-    }
-
-    public void setNum4(Double num4) {
-        this.num4 = num4;
-    }
-
-    public Double getNum5() {
-        return num5;
-    }
-
-    public void setNum5(Double num5) {
-        this.num5 = num5;
-    }
-
-    public Double getNum6() {
-        return num6;
-    }
-
-    public void setNum6(Double num6) {
-        this.num6 = num6;
-    }
-
-    public Date getDate1() {
-        return date1;
-    }
-
-    public String getDate1$(){
-        if (Cools.isEmpty(this.date1)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.date1);
-    }
-
-    public void setDate1(Date date1) {
-        this.date1 = date1;
-    }
-
-    public Long getAppeUser() {
-        return appeUser;
-    }
-
-    public String getAppeUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.appeUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public void setAppeUser(Long appeUser) {
-        this.appeUser = appeUser;
-    }
-
-    public Date getAppeTime() {
-        return appeTime;
-    }
-
-    public String getAppeTime$(){
-        if (Cools.isEmpty(this.appeTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
-    }
-
-    public void setAppeTime(Date appeTime) {
-        this.appeTime = appeTime;
-    }
-
-    public Long getModiUser() {
-        return modiUser;
-    }
-
-    public String getModiUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.modiUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public void setModiUser(Long modiUser) {
-        this.modiUser = modiUser;
-    }
-
-    public Date getModiTime() {
-        return modiTime;
-    }
-
-    public String getModiTime$(){
-        if (Cools.isEmpty(this.modiTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
-    }
-
-    public void setModiTime(Date modiTime) {
-        this.modiTime = modiTime;
-    }
-
-    public Short getStatus() {
-        return status;
-    }
-
-    public void setStatus(Short status) {
-        this.status = status;
-    }
-
-
-}
diff --git a/src/main/java/com/zy/asrs/entity/RowLastno.java b/src/main/java/com/zy/asrs/entity/RowLastno.java
deleted file mode 100644
index 07107cd..0000000
--- a/src/main/java/com/zy/asrs/entity/RowLastno.java
+++ /dev/null
@@ -1,262 +0,0 @@
-package com.zy.asrs.entity;
-
-import com.baomidou.mybatisplus.annotations.TableField;
-import com.baomidou.mybatisplus.annotations.TableId;
-import com.baomidou.mybatisplus.annotations.TableName;
-import com.baomidou.mybatisplus.enums.IdType;
-import com.core.common.Cools;
-import com.core.common.SpringUtils;
-import com.zy.system.entity.User;
-import com.zy.system.service.UserService;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-@TableName("asr_row_lastno")
-public class RowLastno implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 绫诲埆
-     */
-    @ApiModelProperty(value= "绫诲埆")
-    @TableId(value = "whs_type", type = IdType.INPUT)
-    @TableField("whs_type")
-    private Integer whsType;
-
-    /**
-     * 褰撳墠宸ヤ綔鍙�
-     */
-    @ApiModelProperty(value= "褰撳墠宸ヤ綔鍙�")
-    @TableField("wrk_mk")
-    private String wrkMk;
-
-    /**
-     * 褰撳墠鎺掑彿
-     */
-    @ApiModelProperty(value= "褰撳墠鎺掑彿")
-    @TableField("current_row")
-    private Integer currentRow;
-
-    /**
-     * 璧峰鎺掑彿
-     */
-    @ApiModelProperty(value= "璧峰鎺掑彿")
-    @TableField("s_row")
-    private Integer sRow;
-
-    /**
-     * 缁堟鎺掑彿
-     */
-    @ApiModelProperty(value= "缁堟鎺掑彿")
-    @TableField("e_row")
-    private Integer eRow;
-
-    /**
-     * 鍫嗗灈鏈烘暟閲�
-     */
-    @ApiModelProperty(value= "鍫嗗灈鏈烘暟閲�")
-    @TableField("crn_qty")
-    private Integer crnQty;
-
-    /**
-     * 澶囨敞
-     */
-    @ApiModelProperty(value= "澶囨敞")
-    private String memo;
-
-    /**
-     * 淇敼浜哄憳
-     */
-    @ApiModelProperty(value= "淇敼浜哄憳")
-    @TableField("modi_user")
-    private Long modiUser;
-
-    /**
-     * 淇敼鏃堕棿
-     */
-    @ApiModelProperty(value= "淇敼鏃堕棿")
-    @TableField("modi_time")
-    private Date modiTime;
-
-    /**
-     * 鍒涘缓鑰�
-     */
-    @ApiModelProperty(value= "鍒涘缓鑰�")
-    @TableField("appe_user")
-    private Long appeUser;
-
-    /**
-     * 娣诲姞鏃堕棿
-     */
-    @ApiModelProperty(value= "娣诲姞鏃堕棿")
-    @TableField("appe_time")
-    private Date appeTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("limint_loc")
-    private Integer limintLoc;
-
-    public RowLastno() {}
-
-    public RowLastno(String wrkMk,Integer currentRow,Integer sRow,Integer eRow,Integer crnQty,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer limintLoc) {
-        this.wrkMk = wrkMk;
-        this.currentRow = currentRow;
-        this.sRow = sRow;
-        this.eRow = eRow;
-        this.crnQty = crnQty;
-        this.memo = memo;
-        this.modiUser = modiUser;
-        this.modiTime = modiTime;
-        this.appeUser = appeUser;
-        this.appeTime = appeTime;
-        this.limintLoc = limintLoc;
-    }
-
-//    RowLastno rowLastno = new RowLastno(
-//            null,    // 褰撳墠宸ヤ綔鍙穂闈炵┖]
-//            null,    // 褰撳墠鎺掑彿
-//            null,    // 璧峰鎺掑彿
-//            null,    // 缁堟鎺掑彿
-//            null,    // 鍫嗗灈鏈烘暟閲�
-//            null,    // 澶囨敞
-//            null,    // 淇敼浜哄憳
-//            null,    // 淇敼鏃堕棿
-//            null,    // 鍒涘缓鑰�
-//            null,    // 娣诲姞鏃堕棿
-//            null    // 
-//    );
-
-    public Integer getWhsType() {
-        return whsType;
-    }
-
-    public void setWhsType(Integer whsType) {
-        this.whsType = whsType;
-    }
-
-    public String getWrkMk() {
-        return wrkMk;
-    }
-
-    public void setWrkMk(String wrkMk) {
-        this.wrkMk = wrkMk;
-    }
-
-    public Integer getCurrentRow() {
-        return currentRow;
-    }
-
-    public void setCurrentRow(Integer currentRow) {
-        this.currentRow = currentRow;
-    }
-
-    public Integer getsRow() {
-        return sRow;
-    }
-
-    public void setsRow(Integer sRow) {
-        this.sRow = sRow;
-    }
-
-    public Integer geteRow() {
-        return eRow;
-    }
-
-    public void seteRow(Integer eRow) {
-        this.eRow = eRow;
-    }
-
-    public Integer getCrnQty() {
-        return crnQty;
-    }
-
-    public void setCrnQty(Integer crnQty) {
-        this.crnQty = crnQty;
-    }
-
-    public String getMemo() {
-        return memo;
-    }
-
-    public void setMemo(String memo) {
-        this.memo = memo;
-    }
-
-    public Long getModiUser() {
-        return modiUser;
-    }
-
-    public String getModiUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.modiUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public void setModiUser(Long modiUser) {
-        this.modiUser = modiUser;
-    }
-
-    public Date getModiTime() {
-        return modiTime;
-    }
-
-    public String getModiTime$(){
-        if (Cools.isEmpty(this.modiTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
-    }
-
-    public void setModiTime(Date modiTime) {
-        this.modiTime = modiTime;
-    }
-
-    public Long getAppeUser() {
-        return appeUser;
-    }
-
-    public String getAppeUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.appeUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public void setAppeUser(Long appeUser) {
-        this.appeUser = appeUser;
-    }
-
-    public Date getAppeTime() {
-        return appeTime;
-    }
-
-    public String getAppeTime$(){
-        if (Cools.isEmpty(this.appeTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
-    }
-
-    public void setAppeTime(Date appeTime) {
-        this.appeTime = appeTime;
-    }
-
-    public Integer getLimintLoc() {
-        return limintLoc;
-    }
-
-    public void setLimintLoc(Integer limintLoc) {
-        this.limintLoc = limintLoc;
-    }
-
-
-}
diff --git a/src/main/java/com/zy/asrs/entity/WaitPakin.java b/src/main/java/com/zy/asrs/entity/WaitPakin.java
deleted file mode 100644
index 572f0f8..0000000
--- a/src/main/java/com/zy/asrs/entity/WaitPakin.java
+++ /dev/null
@@ -1,158 +0,0 @@
-package com.zy.asrs.entity;
-
-import com.baomidou.mybatisplus.annotations.TableField;
-import com.baomidou.mybatisplus.annotations.TableName;
-import com.core.common.Cools;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-
-import java.io.Serializable;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-@Data
-@TableName("cust_wait_pakin")
-public class WaitPakin implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 鐗╂枡
-     */
-    @ApiModelProperty(value= "鍟嗗搧缂栧彿")
-    private String matnr;
-
-    /**
-     * 鐗╂枡鎻忚堪
-     */
-    @ApiModelProperty(value= "鍟嗗搧鍚嶇О")
-    private String maktx;
-
-
-    /**
-     * 浠撳簱鍙�
-     */
-    @ApiModelProperty(value= "瑙勬牸")
-    private String lgnum;
-
-    /**
-     * 浠撳簱鍙�
-     */
-    @ApiModelProperty(value= "鍨嬪彿")
-    private String type;
-
-    /**
-     * 浠撳簱鍙�
-     */
-    @ApiModelProperty(value= "鏉$爜")
-    private String color;
-
-    /**
-     * 浠撳簱鍙�
-     */
-    @ApiModelProperty(value= "鎵瑰彿")
-    private String supplier;
-
-    /**
-     * 浠撳簱鍙�
-     */
-    @ApiModelProperty(value= "鍗曟嵁缂栧彿")
-    private String warehouse;
-
-    /**
-     * 浠撳簱鍙�
-     */
-    @ApiModelProperty(value= "鍝侀」鏁�")
-    private String brand;
-
-    /**
-     * 鏁伴噺
-     */
-    @ApiModelProperty(value= "鏁伴噺")
-    private Double anfme;
-
-    /**
-     * 鍗曚綅
-     */
-    @ApiModelProperty(value= "鍗曚綅")
-    private String altme;
-
-    /**
-     * 鎵樼洏鏉$爜
-     */
-    @ApiModelProperty(value= "鎵樼洏鏉$爜")
-    private String zpallet;
-
-    /**
-     * 鐢ㄦ埛ID
-     */
-    @ApiModelProperty(value= "瀹㈡埛鍚嶇О")
-    private String bname;
-
-    @ApiModelProperty(value= "搴撲綅鍙�")
-    @TableField("loc_no")
-    private String locNo;
-
-    @ApiModelProperty(value= "鐘舵��")
-    private String status;
-
-    @ApiModelProperty(value= "鍏ュ嚭鐘舵��")
-    @TableField("io_status")
-    private String ioStatus;
-
-    /**
-     * 澶囨敞
-     */
-    @ApiModelProperty(value= "澶囨敞")
-    private String memo;
-
-    /**
-     * 淇敼鏃堕棿
-     */
-    @ApiModelProperty(value= "淇敼鏃堕棿")
-    @TableField("modi_time")
-    private Date modiTime;
-
-    /**
-     * 淇敼浜哄憳
-     */
-    @ApiModelProperty(value= "淇敼浜哄憳")
-    @TableField("modi_user")
-    private Long modiUser;
-
-    /**
-     * 娣诲姞鏃堕棿
-     */
-    @ApiModelProperty(value= "娣诲姞鏃堕棿")
-    @TableField("appe_time")
-    private Date appeTime;
-
-    /**
-     * 鍒涘缓鑰�
-     */
-    @ApiModelProperty(value= "鍒涘缓鑰�")
-    @TableField("appe_user")
-    private Long appeUser;
-
-    @ApiModelProperty(value= "鍗曟嵁缂栧彿")
-    @TableField("order_no")
-    private String orderNo;
-
-    @ApiModelProperty(value= "鎵瑰彿")
-    private String batch;
-
-    public String getModiTime$(){
-        if (Cools.isEmpty(this.modiTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
-    }
-
-    public String getAppeTime$(){
-        if (Cools.isEmpty(this.appeTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
-    }
-
-}
diff --git a/src/main/java/com/zy/asrs/entity/WrkDetl.java b/src/main/java/com/zy/asrs/entity/WrkDetl.java
deleted file mode 100644
index 7f3abc4..0000000
--- a/src/main/java/com/zy/asrs/entity/WrkDetl.java
+++ /dev/null
@@ -1,359 +0,0 @@
-package com.zy.asrs.entity;
-
-import com.baomidou.mybatisplus.annotations.TableField;
-import com.baomidou.mybatisplus.annotations.TableName;
-import com.core.common.Cools;
-import com.core.common.SpringUtils;
-import com.zy.common.utils.Synchro;
-import com.zy.system.entity.User;
-import com.zy.system.service.UserService;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-
-import java.io.Serializable;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-@Data
-@TableName("asr_wrk_detl")
-public class WrkDetl implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 宸ヤ綔鍙�
-     */
-    @ApiModelProperty(value= "宸ヤ綔鍙�")
-    @TableField("wrk_no")
-    private Integer wrkNo;
-
-    /**
-     * 宸ヤ綔鏃堕棿
-     */
-    @ApiModelProperty(value= "宸ヤ綔鏃堕棿")
-    @TableField("io_time")
-    private Date ioTime;
-
-    /**
-     * 鏁伴噺
-     */
-    @ApiModelProperty(value= "鏁伴噺")
-    private Double anfme;
-
-    /**
-     * 鎵樼洏鏉$爜
-     */
-    @ApiModelProperty(value= "鎵樼洏鏉$爜")
-    private String zpallet;
-
-    /**
-     * 鐗╂枡
-     */
-    @ApiModelProperty(value= "鍟嗗搧缂栧彿")
-    private String matnr;
-
-    /**
-     * 鐗╂枡鎻忚堪
-     */
-    @ApiModelProperty(value= "鍟嗗搧鍚嶇О")
-    private String maktx;
-
-    /**
-     * 鎵瑰彿
-     */
-    @ApiModelProperty(value= "鎵瑰彿")
-    private String batch;
-
-    /**
-     * 鍗曟嵁缂栧彿
-     */
-    @ApiModelProperty(value= "鍗曟嵁缂栧彿")
-    @TableField("order_no")
-    private String orderNo;
-
-    /**
-     * 瑙勬牸
-     */
-    @ApiModelProperty(value= "瑙勬牸")
-    private String specs;
-
-    /**
-     * 鍨嬪彿
-     */
-    @ApiModelProperty(value= "鍨嬪彿")
-    private String model;
-
-    /**
-     * 棰滆壊
-     */
-    @ApiModelProperty(value= "棰滆壊")
-    private String color;
-
-    /**
-     * 鍝佺墝
-     */
-    @ApiModelProperty(value= "鍝佺墝")
-    private String brand;
-
-    /**
-     * 鍗曚綅
-     */
-    @ApiModelProperty(value= "鍗曚綅")
-    private String unit;
-
-    /**
-     * 鍗曚环
-     */
-    @ApiModelProperty(value= "鍗曚环")
-    private Double price;
-
-    /**
-     * sku
-     */
-    @ApiModelProperty(value= "sku")
-    private String sku;
-
-    /**
-     * 鍗曚綅閲�
-     */
-    @ApiModelProperty(value= "鍗曚綅閲�")
-    private Double units;
-
-    /**
-     * 鏉$爜
-     */
-    @ApiModelProperty(value= "鏉$爜")
-    private String barcode;
-
-    /**
-     * 浜у湴
-     */
-    @ApiModelProperty(value= "浜у湴")
-    private String origin;
-
-    /**
-     * 鍘傚
-     */
-    @ApiModelProperty(value= "鍘傚")
-    private String manu;
-
-    /**
-     * 鐢熶骇鏃ユ湡
-     */
-    @ApiModelProperty(value= "鐢熶骇鏃ユ湡")
-    @TableField("manu_date")
-    private String manuDate;
-
-    /**
-     * 瀹夊叏搴撳瓨閲�
-     */
-    @ApiModelProperty(value= "瀹夊叏搴撳瓨閲�")
-    @TableField("safe_qty")
-    private Double safeQty;
-
-    /**
-     * 閲嶉噺
-     */
-    @ApiModelProperty(value= "閲嶉噺")
-    private Double weight;
-
-    /**
-     * 闀垮害
-     */
-    @ApiModelProperty(value= "闀垮害")
-    private Double length;
-
-    /**
-     * 浣撶Н
-     */
-    @ApiModelProperty(value= "浣撶Н")
-    private Double volume;
-
-    /**
-     * 涓夋柟缂栫爜
-     */
-    @ApiModelProperty(value= "涓夋柟缂栫爜")
-    @TableField("three_code")
-    private String threeCode;
-
-    /**
-     * 渚涘簲鍟�
-     */
-    @ApiModelProperty(value= "渚涘簲鍟�")
-    private String supp;
-
-    /**
-     * 渚涘簲鍟嗙紪鐮�
-     */
-    @ApiModelProperty(value= "渚涘簲鍟嗙紪鐮�")
-    @TableField("supp_code")
-    private String suppCode;
-
-    /**
-     * 鏄惁鎵规 1: 鏄�  0: 鍚�
-     */
-    @ApiModelProperty(value= "鏄惁鎵规 1: 鏄�  0: 鍚�  ")
-    @TableField("be_batch")
-    private Integer beBatch;
-
-    /**
-     * 淇濊川鏈�
-     */
-    @ApiModelProperty(value= "淇濊川鏈�")
-    @TableField("dead_time")
-    private String deadTime;
-
-    /**
-     * 棰勮澶╂暟
-     */
-    @ApiModelProperty(value= "棰勮澶╂暟")
-    @TableField("dead_warn")
-    private Integer deadWarn;
-
-    /**
-     * 鍒惰喘 1: 鍒堕��  2: 閲囪喘  3: 澶栧崗
-     */
-    @ApiModelProperty(value= "鍒惰喘 1: 鍒堕��  2: 閲囪喘  3: 澶栧崗  ")
-    private Integer source;
-
-    /**
-     * 瑕佹眰妫�楠� 1: 鏄�  0: 鍚�
-     */
-    @ApiModelProperty(value= "瑕佹眰妫�楠� 1: 鏄�  0: 鍚�  ")
-    private Integer inspect;
-
-    /**
-     * 鍗遍櫓鍝� 1: 鏄�  0: 鍚�
-     */
-    @ApiModelProperty(value= "鍗遍櫓鍝� 1: 鏄�  0: 鍚�  ")
-    private Integer danger;
-
-    /**
-     * 淇敼浜哄憳
-     */
-    @ApiModelProperty(value= "淇敼浜哄憳")
-    @TableField("modi_user")
-    private Long modiUser;
-
-    /**
-     * 淇敼鏃堕棿
-     */
-    @ApiModelProperty(value= "淇敼鏃堕棿")
-    @TableField("modi_time")
-    private Date modiTime;
-
-    /**
-     * 鍒涘缓鑰�
-     */
-    @ApiModelProperty(value= "鍒涘缓鑰�")
-    @TableField("appe_user")
-    private Long appeUser;
-
-    /**
-     * 娣诲姞鏃堕棿
-     */
-    @ApiModelProperty(value= "娣诲姞鏃堕棿")
-    @TableField("appe_time")
-    private Date appeTime;
-
-    /**
-     * 澶囨敞
-     */
-    @ApiModelProperty(value= "澶囨敞")
-    private String memo;
-
-    public String getIoTime$(){
-        if (Cools.isEmpty(this.ioTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
-    }
-
-    public String getBeBatch$(){
-        if (null == this.beBatch){ return null; }
-        switch (this.beBatch){
-            case 1:
-                return "鏄�";
-            case 0:
-                return "鍚�";
-            default:
-                return String.valueOf(this.beBatch);
-        }
-    }
-
-    public String getSource$(){
-        if (null == this.source){ return null; }
-        switch (this.source){
-            case 1:
-                return "鍒堕��";
-            case 2:
-                return "閲囪喘";
-            case 3:
-                return "澶栧崗";
-            default:
-                return String.valueOf(this.source);
-        }
-    }
-
-    public String getInspect$(){
-        if (null == this.inspect){ return null; }
-        switch (this.inspect){
-            case 1:
-                return "鏄�";
-            case 0:
-                return "鍚�";
-            default:
-                return String.valueOf(this.inspect);
-        }
-    }
-
-    public String getDanger$(){
-        if (null == this.danger){ return null; }
-        switch (this.danger){
-            case 1:
-                return "鏄�";
-            case 0:
-                return "鍚�";
-            default:
-                return String.valueOf(this.danger);
-        }
-    }
-
-    public String getModiUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.modiUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public String getModiTime$(){
-        if (Cools.isEmpty(this.modiTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
-    }
-
-    public String getAppeUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.appeUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public String getAppeTime$(){
-        if (Cools.isEmpty(this.appeTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
-    }
-
-    public void sync(Object source) {
-        Synchro.Copy(source, this);
-    }
-
-
-}
diff --git a/src/main/java/com/zy/asrs/entity/WrkDetlLog.java b/src/main/java/com/zy/asrs/entity/WrkDetlLog.java
deleted file mode 100644
index da098cd..0000000
--- a/src/main/java/com/zy/asrs/entity/WrkDetlLog.java
+++ /dev/null
@@ -1,270 +0,0 @@
-package com.zy.asrs.entity;
-
-import com.baomidou.mybatisplus.annotations.TableField;
-import com.baomidou.mybatisplus.annotations.TableName;
-import com.core.common.Cools;
-import com.core.common.SpringUtils;
-import com.zy.system.entity.User;
-import com.zy.system.service.UserService;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-
-import java.io.Serializable;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-@Data
-@TableName("asr_wrk_detl_log")
-public class WrkDetlLog implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 宸ヤ綔鍙�
-     */
-    @ApiModelProperty(value= "宸ヤ綔鍙�")
-    @TableField("wrk_no")
-    private Integer wrkNo;
-
-    /**
-     * 宸ヤ綔鏃堕棿
-     */
-    @ApiModelProperty(value= "宸ヤ綔鏃堕棿")
-    @TableField("io_time")
-    private Date ioTime;
-
-    /**
-     * 鏁伴噺
-     */
-    @ApiModelProperty(value= "鏁伴噺")
-    private Double anfme;
-
-    /**
-     * 鎵樼洏鏉$爜
-     */
-    @ApiModelProperty(value= "鎵樼洏鏉$爜")
-    private String zpallet;
-
-    /**
-     * 鐗╂枡
-     */
-    @ApiModelProperty(value= "鍟嗗搧缂栧彿")
-    private String matnr;
-
-    /**
-     * 鐗╂枡鎻忚堪
-     */
-    @ApiModelProperty(value= "鍟嗗搧鍚嶇О")
-    private String maktx;
-
-    /**
-     * 鎵瑰彿
-     */
-    @ApiModelProperty(value= "鎵瑰彿")
-    private String batch;
-
-    /**
-     * 鍗曟嵁缂栧彿
-     */
-    @ApiModelProperty(value= "鍗曟嵁缂栧彿")
-    @TableField("order_no")
-    private String orderNo;
-
-    /**
-     * 瑙勬牸
-     */
-    @ApiModelProperty(value= "瑙勬牸")
-    private String specs;
-
-    /**
-     * 鍨嬪彿
-     */
-    @ApiModelProperty(value= "鍨嬪彿")
-    private String model;
-
-    /**
-     * 棰滆壊
-     */
-    @ApiModelProperty(value= "棰滆壊")
-    private String color;
-
-    /**
-     * 鍝佺墝
-     */
-    @ApiModelProperty(value= "鍝佺墝")
-    private String brand;
-
-    /**
-     * 鍗曚綅
-     */
-    @ApiModelProperty(value= "鍗曚綅")
-    private String unit;
-
-    /**
-     * 鍗曚环
-     */
-    @ApiModelProperty(value= "鍗曚环")
-    private Double price;
-
-    /**
-     * sku
-     */
-    @ApiModelProperty(value= "sku")
-    private String sku;
-
-    /**
-     * 鍗曚綅閲�
-     */
-    @ApiModelProperty(value= "鍗曚綅閲�")
-    private Double units;
-
-    /**
-     * 鏉$爜
-     */
-    @ApiModelProperty(value= "鏉$爜")
-    private String barcode;
-
-    /**
-     * 浜у湴
-     */
-    @ApiModelProperty(value= "浜у湴")
-    private String origin;
-
-    /**
-     * 瀹夊叏搴撳瓨閲�
-     */
-    @ApiModelProperty(value= "瀹夊叏搴撳瓨閲�")
-    @TableField("safe_qty")
-    private Double safeQty;
-
-    /**
-     * 閲嶉噺
-     */
-    @ApiModelProperty(value= "閲嶉噺")
-    private Double weight;
-
-    /**
-     * 闀垮害
-     */
-    @ApiModelProperty(value= "闀垮害")
-    private Double length;
-
-    /**
-     * 浣撶Н
-     */
-    @ApiModelProperty(value= "浣撶Н")
-    private Double volume;
-
-    /**
-     * 涓夋柟缂栫爜
-     */
-    @ApiModelProperty(value= "涓夋柟缂栫爜")
-    @TableField("three_code")
-    private String threeCode;
-
-    /**
-     * 渚涘簲鍟�
-     */
-    @ApiModelProperty(value= "渚涘簲鍟�")
-    private String supp;
-
-    /**
-     * 渚涘簲鍟嗙紪鐮�
-     */
-    @ApiModelProperty(value= "渚涘簲鍟嗙紪鐮�")
-    @TableField("supp_code")
-    private String suppCode;
-
-    /**
-     * 鍗遍櫓鍝� 1: 鏄�  0: 鍚�
-     */
-    @ApiModelProperty(value= "鍗遍櫓鍝� 1: 鏄�  0: 鍚�  ")
-    private Integer danger;
-
-    /**
-     * 淇敼浜哄憳
-     */
-    @ApiModelProperty(value= "淇敼浜哄憳")
-    @TableField("modi_user")
-    private Long modiUser;
-
-    /**
-     * 淇敼鏃堕棿
-     */
-    @ApiModelProperty(value= "淇敼鏃堕棿")
-    @TableField("modi_time")
-    private Date modiTime;
-
-    /**
-     * 鍒涘缓鑰�
-     */
-    @ApiModelProperty(value= "鍒涘缓鑰�")
-    @TableField("appe_user")
-    private Long appeUser;
-
-    /**
-     * 娣诲姞鏃堕棿
-     */
-    @ApiModelProperty(value= "娣诲姞鏃堕棿")
-    @TableField("appe_time")
-    private Date appeTime;
-
-    /**
-     * 澶囨敞
-     */
-    @ApiModelProperty(value= "澶囨敞")
-    private String memo;
-
-    public String getIoTime$(){
-        if (Cools.isEmpty(this.ioTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
-    }
-
-    public String getDanger$(){
-        if (null == this.danger){ return null; }
-        switch (this.danger){
-            case 1:
-                return "鏄�";
-            case 0:
-                return "鍚�";
-            default:
-                return String.valueOf(this.danger);
-        }
-    }
-
-    public String getModiUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.modiUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public String getModiTime$(){
-        if (Cools.isEmpty(this.modiTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
-    }
-
-    public String getAppeUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.appeUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public String getAppeTime$(){
-        if (Cools.isEmpty(this.appeTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
-    }
-
-
-}
diff --git a/src/main/java/com/zy/asrs/entity/WrkMast.java b/src/main/java/com/zy/asrs/entity/WrkMast.java
deleted file mode 100644
index db2e4c4..0000000
--- a/src/main/java/com/zy/asrs/entity/WrkMast.java
+++ /dev/null
@@ -1,540 +0,0 @@
-package com.zy.asrs.entity;
-
-import com.baomidou.mybatisplus.annotations.TableField;
-import com.baomidou.mybatisplus.annotations.TableId;
-import com.baomidou.mybatisplus.annotations.TableName;
-import com.baomidou.mybatisplus.enums.IdType;
-import com.core.common.Cools;
-import com.core.common.SpringUtils;
-import com.zy.asrs.mapper.BasWrkIotypeMapper;
-import com.zy.asrs.mapper.BasWrkStatusMapper;
-import com.zy.asrs.service.*;
-import com.zy.system.entity.User;
-import com.zy.system.service.UserService;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import org.springframework.format.annotation.DateTimeFormat;
-
-import java.io.Serializable;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.List;
-
-@Data
-@TableName("asr_wrk_mast")
-public class WrkMast implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 宸ヤ綔鍙�
-     */
-    @ApiModelProperty(value= "宸ヤ綔鍙�")
-    @TableId(value = "wrk_no", type = IdType.INPUT)
-    @TableField("wrk_no")
-    private Integer wrkNo;
-
-    @ApiModelProperty(value= "")
-    @TableField("inv_wh")
-    private String invWh;
-
-    @ApiModelProperty(value= "")
-    private Date ymd;
-
-    @ApiModelProperty(value= "")
-    private String mk;
-
-    @ApiModelProperty(value= "")
-    @TableField("whs_type")
-    private Integer whsType;
-
-    /**
-     * 宸ヤ綔鐘舵��
-     */
-    @ApiModelProperty(value= "宸ヤ綔鐘舵��")
-    @TableField("wrk_sts")
-    private Long wrkSts;
-
-    /**
-     * 鍏ュ嚭搴撶被鍨�
-     */
-    @ApiModelProperty(value= "鍏ュ嚭搴撶被鍨�")
-    @TableField("io_type")
-    private Integer ioType;
-
-    /**
-     * 鍫嗗灈鏈�
-     */
-    @ApiModelProperty(value= "鍫嗗灈鏈�")
-    @TableField("crn_no")
-    private Integer crnNo;
-
-    @ApiModelProperty(value= "")
-    @TableField("sheet_no")
-    private String sheetNo;
-
-    /**
-     * 浼樺厛绾�
-     */
-    @ApiModelProperty(value= "浼樺厛绾�")
-    @TableField("io_pri")
-    private Double ioPri;
-
-    @ApiModelProperty(value= "")
-    @TableField("wrk_date")
-    private Date wrkDate;
-
-    /**
-     * 鐩爣搴撲綅
-     */
-    @ApiModelProperty(value= "鐩爣搴撲綅")
-    @TableField("loc_no")
-    private String locNo;
-
-    /**
-     * 鐩爣绔�
-     */
-    @ApiModelProperty(value= "鐩爣绔�")
-    @TableField("sta_no")
-    private Integer staNo;
-
-    /**
-     * 婧愮珯
-     */
-    @ApiModelProperty(value= "婧愮珯")
-    @TableField("source_sta_no")
-    private Integer sourceStaNo;
-
-    /**
-     * 婧愬簱浣�
-     */
-    @ApiModelProperty(value= "婧愬簱浣�")
-    @TableField("source_loc_no")
-    private String sourceLocNo;
-
-    @ApiModelProperty(value= "")
-    @TableField("loc_sts")
-    private String locSts;
-
-    /**
-     * 鎷f枡
-     */
-    @ApiModelProperty(value= "鎷f枡")
-    private String picking;
-
-    @ApiModelProperty(value= "")
-    @TableField("link_mis")
-    private String linkMis;
-
-    @ApiModelProperty(value= "")
-    @TableField("online_yn")
-    private String onlineYn;
-
-    @ApiModelProperty(value= "")
-    @TableField("upd_mk")
-    private String updMk;
-
-    /**
-     * 閫�鍑�
-     */
-    @ApiModelProperty(value= "閫�鍑�")
-    @TableField("exit_mk")
-    private String exitMk;
-
-    @ApiModelProperty(value= "")
-    @TableField("plt_type")
-    private Integer pltType;
-
-    /**
-     * 绌烘澘
-     */
-    @ApiModelProperty(value= "绌烘澘")
-    @TableField("empty_mk")
-    private String emptyMk;
-
-    /**
-     * 宸ヤ綔鏃堕棿
-     */
-    @ApiModelProperty(value= "宸ヤ綔鏃堕棿")
-    @TableField("io_time")
-    private Date ioTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("ctn_type")
-    private Integer ctnType;
-
-    @ApiModelProperty(value= "")
-    private String packed;
-
-    @ApiModelProperty(value= "")
-    @TableField("ove_mk")
-    private String oveMk;
-
-    @ApiModelProperty(value= "")
-    @TableField("mtn_type")
-    private Double mtnType;
-
-    @ApiModelProperty(value= "")
-    @TableField("user_no")
-    private String userNo;
-
-    /**
-     * 鍫嗗灈鏈哄惎鍔ㄦ椂闂�
-     */
-    @ApiModelProperty(value= "鍫嗗灈鏈哄惎鍔ㄦ椂闂�")
-    @TableField("crn_str_time")
-    private Date crnStrTime;
-
-    /**
-     * 鍫嗗灈鏈哄仠姝㈡椂闂�
-     */
-    @ApiModelProperty(value= "鍫嗗灈鏈哄仠姝㈡椂闂�")
-    @TableField("crn_end_time")
-    private Date crnEndTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("plc_str_time")
-    private Date plcStrTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("crn_pos_time")
-    private Date crnPosTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("load_time")
-    private Double loadTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("exp_time")
-    private Double expTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("ref_wrkno")
-    private Double refWrkno;
-
-    /**
-     * 鎷f枡鏃堕棿
-     */
-    @ApiModelProperty(value= "鎷f枡鏃堕棿")
-    @TableField("ref_iotime")
-    private Date refIotime;
-
-    /**
-     * 淇敼浜哄憳
-     */
-    @ApiModelProperty(value= "淇敼浜哄憳")
-    @TableField("modi_user")
-    private Long modiUser;
-
-    /**
-     * 淇敼鏃堕棿
-     */
-    @ApiModelProperty(value= "淇敼鏃堕棿")
-    @TableField("modi_time")
-    private Date modiTime;
-
-    /**
-     * 鍒涘缓鑰�
-     */
-    @ApiModelProperty(value= "鍒涘缓鑰�")
-    @TableField("appe_user")
-    private Long appeUser;
-
-    /**
-     * 娣诲姞鏃堕棿
-     */
-    @ApiModelProperty(value= "娣诲姞鏃堕棿")
-    @TableField("appe_time")
-    private Date appeTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("pause_mk")
-    private String pauseMk;
-
-    @ApiModelProperty(value= "")
-    @TableField("error_time")
-    private Date errorTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("error_memo")
-    private String errorMemo;
-
-    @ApiModelProperty(value= "")
-    @TableField("ctn_kind")
-    private Integer ctnKind;
-
-    @ApiModelProperty(value= "")
-    @TableField("manu_type")
-    private String manuType;
-
-    /**
-     * 澶囨敞
-     */
-    @ApiModelProperty(value= "澶囨敞")
-    private String memo;
-
-    @ApiModelProperty(value= "")
-    @TableField("sc_weight")
-    private Double scWeight;
-
-    @ApiModelProperty(value= "")
-    @TableField("log_mk")
-    private String logMk;
-
-    @ApiModelProperty(value= "")
-    @TableField("log_err_time")
-    private Date logErrTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("log_err_memo")
-    private String logErrMemo;
-
-    /**
-     * 鏉$爜
-     */
-    @ApiModelProperty(value= "鏉$爜")
-    private String barcode;
-
-    @ApiModelProperty(value= "")
-    @TableField("Pdc_type")
-    private String PdcType;
-
-    @ApiModelProperty(value= "")
-    @TableField("ctn_no")
-    private String ctnNo;
-
-    /**
-     * 婊℃澘
-     */
-    @ApiModelProperty(value= "婊℃澘")
-    @TableField("full_plt")
-    private String fullPlt;
-
-    /**
-     * wms浠诲姟鍙�
-     */
-    @ApiModelProperty(value= "wms浠诲姟鍙�")
-    @TableField("wms_wrk_no")
-    private String taskNo;
-
-    /**
-     * 缁撴潫鏃堕棿
-     */
-    @ApiModelProperty(value= "缁撴潫鏃堕棿")
-    @TableField("end_time")
-    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
-    private Date endTime;
-
-    //鍛戒护list
-    @TableField(exist = false)
-    private List<CommandInfo> children;
-
-    public String getWrkSts$(){
-        BasWrkStatusMapper mapper = SpringUtils.getBean(BasWrkStatusMapper.class);
-        BasWrkStatus entity = mapper.selectById(this.wrkSts);
-        if (entity != null) {
-            return entity.getWrkDesc();
-        }
-        return null;
-    }
-
-    public String getIoType$(){
-        BasWrkIotypeMapper mapper = SpringUtils.getBean(BasWrkIotypeMapper.class);
-        BasWrkIotype entity = mapper.selectById(this.ioType);
-        if (entity != null) {
-            return entity.getIoDesc();
-        }
-        return null;
-    }
-
-    public String getYmd$(){
-        if (Cools.isEmpty(this.ymd)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ymd);
-    }
-
-    public String getCrnNo$(){
-        BasCrnpService service = SpringUtils.getBean(BasCrnpService.class);
-        BasCrnp basCrnp = service.selectById(this.crnNo);
-        if (!Cools.isEmpty(basCrnp)){
-            return String.valueOf(basCrnp.getCrnNo());
-        }
-        return null;
-    }
-
-    public String getWrkDate$(){
-        if (Cools.isEmpty(this.wrkDate)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.wrkDate);
-    }
-
-    public String getLocNo$(){
-        LocMastService service = SpringUtils.getBean(LocMastService.class);
-        LocMast locMast = service.selectById(this.locNo);
-        if (!Cools.isEmpty(locMast)){
-            return String.valueOf(locMast.getLocNo());
-        }
-        return null;
-    }
-
-    public String getStaNo$(){
-        BasDevpService service = SpringUtils.getBean(BasDevpService.class);
-        BasDevp basDevp = service.selectById(this.staNo);
-        if (!Cools.isEmpty(basDevp)){
-            return String.valueOf(basDevp.getDevNo());
-        }
-        return null;
-    }
-
-    public String getSourceStaNo$(){
-        BasDevpService service = SpringUtils.getBean(BasDevpService.class);
-        BasDevp basDevp = service.selectById(this.sourceStaNo);
-        if (!Cools.isEmpty(basDevp)){
-            return String.valueOf(basDevp.getDevNo());
-        }
-        return null;
-    }
-
-    public String getSourceLocNo$(){
-        LocMastService service = SpringUtils.getBean(LocMastService.class);
-        LocMast locMast = service.selectById(this.sourceLocNo);
-        if (!Cools.isEmpty(locMast)){
-            return String.valueOf(locMast.getLocNo());
-        }
-        return null;
-    }
-
-    public String getIoTime$(){
-        if (Cools.isEmpty(this.ioTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
-    }
-
-    public String getCrnStrTime$(){
-        if (Cools.isEmpty(this.crnStrTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnStrTime);
-    }
-
-    public String getCrnEndTime$(){
-        if (Cools.isEmpty(this.crnEndTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnEndTime);
-    }
-
-    public String getPlcStrTime$(){
-        if (Cools.isEmpty(this.plcStrTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.plcStrTime);
-    }
-
-    public String getCrnPosTime$(){
-        if (Cools.isEmpty(this.crnPosTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnPosTime);
-    }
-
-    public String getRefIotime$(){
-        if (Cools.isEmpty(this.refIotime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.refIotime);
-    }
-
-    public String getModiUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.modiUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public String getModiTime$(){
-        if (Cools.isEmpty(this.modiTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
-    }
-
-    public String getAppeUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.appeUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public Date getAppeTime() {
-        return appeTime;
-    }
-
-    public String getAppeTime$(){
-        if (Cools.isEmpty(this.appeTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
-    }
-
-    public String getErrorTime$(){
-        if (Cools.isEmpty(this.errorTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime);
-    }
-
-    public void setErrorMemo(String errorMemo) {
-        if (errorMemo.length() > 255) {
-            errorMemo = errorMemo.substring(0, 150);
-        }
-        this.errorMemo = errorMemo;
-    }
-
-    public String getLogErrTime$(){
-        if (Cools.isEmpty(this.logErrTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime);
-    }
-
-    public String getEndTime$(){
-        if (Cools.isEmpty(this.endTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime);
-    }
-
-    /**
-     * 鑾峰彇鎸佺画鏃堕棿
-     */
-    public String getDurationTime() {
-        if (Cools.isEmpty(this.ioTime)) {
-            return "";
-        }
-
-        Date endDate = new Date();
-        if (!Cools.isEmpty(this.endTime)) {
-            endDate = this.endTime;
-        }
-
-        //鐢ㄦ潵鑾峰彇涓や釜鏃堕棿鐩稿樊鐨勬绉掓暟
-        long l = this.ioTime.getTime() - endDate.getTime();
-
-        //鍒嗗埆璁$畻鐩稿樊鐨勫ぉ銆佸皬鏃躲�佸垎銆佺
-        long day = l / (24 * 60 * 60 * 1000);
-        long hour = (l / (60 * 60 * 1000) - day * 24);
-        long min = ((l / (60 * 1000)) - day * 24 * 60 - hour * 60);
-        long s = (l / 1000 - day * 24 * 60 * 60 - hour * 60 * 60 - min * 60);
-
-        return Math.abs(day) + "澶�" + Math.abs(hour) + "灏忔椂" + Math.abs(min) + "鍒�" + Math.abs(s) + "绉�";
-    }
-
-}
diff --git a/src/main/java/com/zy/asrs/entity/WrkMastLog.java b/src/main/java/com/zy/asrs/entity/WrkMastLog.java
deleted file mode 100644
index e542a25..0000000
--- a/src/main/java/com/zy/asrs/entity/WrkMastLog.java
+++ /dev/null
@@ -1,546 +0,0 @@
-package com.zy.asrs.entity;
-
-import com.baomidou.mybatisplus.annotations.TableField;
-import com.baomidou.mybatisplus.annotations.TableId;
-import com.baomidou.mybatisplus.annotations.TableName;
-import com.baomidou.mybatisplus.enums.IdType;
-import com.core.common.Cools;
-import com.core.common.SpringUtils;
-import com.zy.asrs.service.*;
-import com.zy.system.entity.User;
-import com.zy.system.service.UserService;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import org.springframework.format.annotation.DateTimeFormat;
-
-import java.io.Serializable;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-@Data
-@TableName("asr_wrk_mast_log")
-public class WrkMastLog implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 缂栧彿
-     */
-    @ApiModelProperty(value= "缂栧彿")
-    @TableId(value = "id", type = IdType.AUTO)
-    private Long id;
-
-    /**
-     * 宸ヤ綔鍙�
-     */
-    @ApiModelProperty(value= "宸ヤ綔鍙�")
-    @TableField("wrk_no")
-    private Integer wrkNo;
-
-    @ApiModelProperty(value= "")
-    @TableField("inv_wh")
-    private String invWh;
-
-    @ApiModelProperty(value= "")
-    private Date ymd;
-
-    @ApiModelProperty(value= "")
-    private String mk;
-
-    @ApiModelProperty(value= "")
-    @TableField("whs_type")
-    private Integer whsType;
-
-    /**
-     * 宸ヤ綔鐘舵��
-     */
-    @ApiModelProperty(value= "宸ヤ綔鐘舵��")
-    @TableField("wrk_sts")
-    private Long wrkSts;
-
-    /**
-     * 鍏ュ嚭搴撶被鍨�
-     */
-    @ApiModelProperty(value= "鍏ュ嚭搴撶被鍨�")
-    @TableField("io_type")
-    private Integer ioType;
-
-    /**
-     * 鍫嗗灈鏈哄彿
-     */
-    @ApiModelProperty(value= "鍫嗗灈鏈哄彿")
-    @TableField("crn_no")
-    private Integer crnNo;
-
-    @ApiModelProperty(value= "")
-    @TableField("sheet_no")
-    private String sheetNo;
-
-    /**
-     * 浼樺厛绾�
-     */
-    @ApiModelProperty(value= "浼樺厛绾�")
-    @TableField("io_pri")
-    private Double ioPri;
-
-    @ApiModelProperty(value= "")
-    @TableField("wrk_date")
-    private Date wrkDate;
-
-    /**
-     * 鐩爣搴撲綅
-     */
-    @ApiModelProperty(value= "鐩爣搴撲綅")
-    @TableField("loc_no")
-    private String locNo;
-
-    /**
-     * 鐩爣绔�
-     */
-    @ApiModelProperty(value= "鐩爣绔�")
-    @TableField("sta_no")
-    private Integer staNo;
-
-    /**
-     * 婧愮珯
-     */
-    @ApiModelProperty(value= "婧愮珯")
-    @TableField("source_sta_no")
-    private Integer sourceStaNo;
-
-    /**
-     * 婧愬簱浣�
-     */
-    @ApiModelProperty(value= "婧愬簱浣�")
-    @TableField("source_loc_no")
-    private String sourceLocNo;
-
-    @ApiModelProperty(value= "")
-    @TableField("loc_sts")
-    private String locSts;
-
-    /**
-     * 鎷f枡
-     */
-    @ApiModelProperty(value= "鎷f枡")
-    private String picking;
-
-    @ApiModelProperty(value= "")
-    @TableField("link_mis")
-    private String linkMis;
-
-    @ApiModelProperty(value= "")
-    @TableField("online_yn")
-    private String onlineYn;
-
-    @ApiModelProperty(value= "")
-    @TableField("upd_mk")
-    private String updMk;
-
-    /**
-     * 閫�鍑�
-     */
-    @ApiModelProperty(value= "閫�鍑�")
-    @TableField("exit_mk")
-    private String exitMk;
-
-    @ApiModelProperty(value= "")
-    @TableField("plt_type")
-    private Integer pltType;
-
-    /**
-     * 绌烘澘
-     */
-    @ApiModelProperty(value= "绌烘澘")
-    @TableField("empty_mk")
-    private String emptyMk;
-
-    /**
-     * 宸ヤ綔鏃堕棿
-     */
-    @ApiModelProperty(value= "宸ヤ綔鏃堕棿")
-    @TableField("io_time")
-    private Date ioTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("ctn_type")
-    private Integer ctnType;
-
-    @ApiModelProperty(value= "")
-    private String packed;
-
-    @ApiModelProperty(value= "")
-    @TableField("ove_mk")
-    private String oveMk;
-
-    @ApiModelProperty(value= "")
-    @TableField("mtn_type")
-    private Double mtnType;
-
-    @ApiModelProperty(value= "")
-    @TableField("user_no")
-    private String userNo;
-
-    /**
-     * 鍫嗗灈鏈哄惎鍔ㄦ椂闂�
-     */
-    @ApiModelProperty(value= "鍫嗗灈鏈哄惎鍔ㄦ椂闂�")
-    @TableField("crn_str_time")
-    private Date crnStrTime;
-
-    /**
-     * 鍫嗗灈鏈哄仠姝㈡椂闂�
-     */
-    @ApiModelProperty(value= "鍫嗗灈鏈哄仠姝㈡椂闂�")
-    @TableField("crn_end_time")
-    private Date crnEndTime;
-
-    /**
-     * 鎷f枡鏃堕棿
-     */
-    @ApiModelProperty(value= "鎷f枡鏃堕棿")
-    @TableField("plc_str_time")
-    private Date plcStrTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("crn_pos_time")
-    private Date crnPosTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("load_time")
-    private Double loadTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("exp_time")
-    private Double expTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("ref_wrkno")
-    private Double refWrkno;
-
-    @ApiModelProperty(value= "")
-    @TableField("ref_iotime")
-    private Date refIotime;
-
-    /**
-     * 淇敼浜哄憳
-     */
-    @ApiModelProperty(value= "淇敼浜哄憳")
-    @TableField("modi_user")
-    private Long modiUser;
-
-    /**
-     * 淇敼鏃堕棿
-     */
-    @ApiModelProperty(value= "淇敼鏃堕棿")
-    @TableField("modi_time")
-    private Date modiTime;
-
-    /**
-     * 鍒涘缓鑰�
-     */
-    @ApiModelProperty(value= "鍒涘缓鑰�")
-    @TableField("appe_user")
-    private Long appeUser;
-
-    /**
-     * 娣诲姞鏃堕棿
-     */
-    @ApiModelProperty(value= "娣诲姞鏃堕棿")
-    @TableField("appe_time")
-    private Date appeTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("pause_mk")
-    private String pauseMk;
-
-    @ApiModelProperty(value= "")
-    @TableField("error_time")
-    private Date errorTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("error_memo")
-    private String errorMemo;
-
-    @ApiModelProperty(value= "")
-    @TableField("ctn_kind")
-    private Integer ctnKind;
-
-    @ApiModelProperty(value= "")
-    @TableField("manu_type")
-    private String manuType;
-
-    @ApiModelProperty(value= "")
-    @TableField("memo")
-    private String memo;
-
-    @ApiModelProperty(value= "")
-    @TableField("sc_weight")
-    private Double scWeight;
-
-    @ApiModelProperty(value= "")
-    @TableField("log_mk")
-    private String logMk;
-
-    @ApiModelProperty(value= "")
-    @TableField("log_err_time")
-    private Date logErrTime;
-
-    @ApiModelProperty(value= "")
-    @TableField("log_err_memo")
-    private String logErrMemo;
-
-    /**
-     * 鏉$爜
-     */
-    @ApiModelProperty(value= "鏉$爜")
-    private String barcode;
-
-    @ApiModelProperty(value= "")
-    @TableField("Pdc_type")
-    private String PdcType;
-
-    @ApiModelProperty(value= "")
-    @TableField("ctn_no")
-    private String ctnNo;
-
-    /**
-     * 婊℃澘
-     */
-    @ApiModelProperty(value= "婊℃澘")
-    @TableField("full_plt")
-    private String fullPlt;
-
-    /**
-     * 绌挎杞�
-     */
-    @ApiModelProperty(value= "涓ゅ悜绌挎杞�")
-    @TableField("ste_no")
-    private Integer steNo;
-
-    /**
-     * 绌挎杞�
-     */
-    @ApiModelProperty(value= "鍥涘悜绌挎杞�")
-    @TableField("shuttle_no")
-    private Integer shuttleNo;
-
-    /**
-     * 缁撴潫鏃堕棿
-     */
-    @ApiModelProperty(value= "缁撴潫鏃堕棿")
-    @TableField("end_time")
-    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
-    private Date endTime;
-
-    public WrkMastLog() {}
-
-    public String getWrkNo$(){
-        WrkMastService service = SpringUtils.getBean(WrkMastService.class);
-        WrkMast wrkMast = service.selectById(this.wrkNo);
-        if (!Cools.isEmpty(wrkMast)){
-            return String.valueOf(wrkMast.getWrkNo());
-        }
-        return null;
-    }
-
-    public String getYmd$(){
-        if (Cools.isEmpty(this.ymd)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ymd);
-    }
-
-    public String getWrkSts$(){
-        BasWrkStatusService service = SpringUtils.getBean(BasWrkStatusService.class);
-        BasWrkStatus basWrkStatus = service.selectById(this.wrkSts);
-        if (!Cools.isEmpty(basWrkStatus)){
-            return String.valueOf(basWrkStatus.getWrkDesc());
-        }
-        return null;
-    }
-
-    public String getIoType$(){
-        BasWrkIotypeService service = SpringUtils.getBean(BasWrkIotypeService.class);
-        BasWrkIotype basWrkIotype = service.selectById(this.ioType);
-        if (!Cools.isEmpty(basWrkIotype)){
-            return String.valueOf(basWrkIotype.getIoDesc());
-        }
-        return null;
-    }
-
-    public String getCrnNo$(){
-        BasCrnpService service = SpringUtils.getBean(BasCrnpService.class);
-        BasCrnp basCrnp = service.selectById(this.crnNo);
-        if (!Cools.isEmpty(basCrnp)){
-            return String.valueOf(basCrnp.getCrnNo());
-        }
-        return null;
-    }
-
-    public String getWrkDate$(){
-        if (Cools.isEmpty(this.wrkDate)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.wrkDate);
-    }
-
-    public String getLocNo$(){
-        LocMastService service = SpringUtils.getBean(LocMastService.class);
-        LocMast locMast = service.selectById(this.locNo);
-        if (!Cools.isEmpty(locMast)){
-            return String.valueOf(locMast.getLocNo());
-        }
-        return null;
-    }
-
-    public String getStaNo$(){
-        BasDevpService service = SpringUtils.getBean(BasDevpService.class);
-        BasDevp basDevp = service.selectById(this.staNo);
-        if (!Cools.isEmpty(basDevp)){
-            return String.valueOf(basDevp.getDevNo());
-        }
-        return null;
-    }
-
-    public String getSourceStaNo$(){
-        BasDevpService service = SpringUtils.getBean(BasDevpService.class);
-        BasDevp basDevp = service.selectById(this.sourceStaNo);
-        if (!Cools.isEmpty(basDevp)){
-            return String.valueOf(basDevp.getDevNo());
-        }
-        return null;
-    }
-
-    public String getSourceLocNo$(){
-        LocMastService service = SpringUtils.getBean(LocMastService.class);
-        LocMast locMast = service.selectById(this.sourceLocNo);
-        if (!Cools.isEmpty(locMast)){
-            return String.valueOf(locMast.getLocNo());
-        }
-        return null;
-    }
-
-    public String getIoTime$(){
-        if (Cools.isEmpty(this.ioTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
-    }
-
-    public String getCrnStrTime$(){
-        if (Cools.isEmpty(this.crnStrTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnStrTime);
-    }
-
-    public String getCrnEndTime$(){
-        if (Cools.isEmpty(this.crnEndTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnEndTime);
-    }
-
-    public String getPlcStrTime$(){
-        if (Cools.isEmpty(this.plcStrTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.plcStrTime);
-    }
-
-    public String getCrnPosTime$(){
-        if (Cools.isEmpty(this.crnPosTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnPosTime);
-    }
-
-
-    public String getRefIotime$(){
-        if (Cools.isEmpty(this.refIotime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.refIotime);
-    }
-
-    public String getModiUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.modiUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public String getModiTime$(){
-        if (Cools.isEmpty(this.modiTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
-    }
-
-    public String getAppeUser$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.selectById(this.appeUser);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getUsername());
-        }
-        return null;
-    }
-
-    public String getAppeTime$(){
-        if (Cools.isEmpty(this.appeTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
-    }
-
-    public String getErrorTime$(){
-        if (Cools.isEmpty(this.errorTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime);
-    }
-
-    public String getLogErrTime$(){
-        if (Cools.isEmpty(this.logErrTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime);
-    }
-
-    public String getEndTime$(){
-        if (Cools.isEmpty(this.endTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime);
-    }
-
-    /**
-     * 鑾峰彇鎸佺画鏃堕棿
-     */
-    public String getDurationTime() {
-        if (Cools.isEmpty(this.ioTime)) {
-            return "";
-        }
-
-        Date endDate = new Date();
-        if (!Cools.isEmpty(this.endTime)) {
-            endDate = this.endTime;
-        }
-
-        //鐢ㄦ潵鑾峰彇涓や釜鏃堕棿鐩稿樊鐨勬绉掓暟
-        long l = this.ioTime.getTime() - endDate.getTime();
-
-        //鍒嗗埆璁$畻鐩稿樊鐨勫ぉ銆佸皬鏃躲�佸垎銆佺
-        long day = l / (24 * 60 * 60 * 1000);
-        long hour = (l / (60 * 60 * 1000) - day * 24);
-        long min = ((l / (60 * 1000)) - day * 24 * 60 - hour * 60);
-        long s = (l / 1000 - day * 24 * 60 * 60 - hour * 60 * 60 - min * 60);
-
-        return Math.abs(day) + "澶�" + Math.abs(hour) + "灏忔椂" + Math.abs(min) + "鍒�" + Math.abs(s) + "绉�";
-    }
-
-
-}
diff --git a/src/main/java/com/zy/asrs/mapper/LocDetlMapper.java b/src/main/java/com/zy/asrs/mapper/LocDetlMapper.java
deleted file mode 100644
index bc2cd84..0000000
--- a/src/main/java/com/zy/asrs/mapper/LocDetlMapper.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package com.zy.asrs.mapper;
-
-import com.baomidou.mybatisplus.mapper.BaseMapper;
-import com.zy.asrs.entity.LocDetl;
-import org.apache.ibatis.annotations.Mapper;
-import org.apache.ibatis.annotations.Param;
-import org.apache.ibatis.annotations.Select;
-import org.apache.ibatis.annotations.Update;
-import org.springframework.stereotype.Repository;
-
-import java.util.List;
-import java.util.Map;
-
-@Mapper
-@Repository
-public interface LocDetlMapper extends BaseMapper<LocDetl> {
-
-    List<LocDetl> getStockOutPage(Map<String, Object> map);
-
-    Integer getStockOutPageCount(Map<String, Object> map);
-
-    @Update("update asr_loc_detl set anfme=#{anfme}, modi_time = getDate() where loc_no = #{locNo} and matnr = #{matnr}")
-    int updateAnfme(Double anfme, String locNo, String matnr);
-
-    @Update("update asr_loc_detl set loc_no = #{newLocNo}, modi_time=getDate() where loc_no = #{oldLocNo}")
-    int updateLocNo(String newLocNo, String oldLocNo);
-
-    @Select("SELECT ld.loc_no FROM asr_loc_detl ld LEFT JOIN asr_loc_mast lm ON ld.loc_no = lm.loc_no WHERE (1 = 1 AND ld.matnr = #{matnr} AND (lm.row1 >= #{start} AND lm.row1 <= #{end})  AND lm.loc_sts = 'F' AND DateDiff(dd, lm.modi_time, getdate()) = 0) ORDER BY lm.modi_time ASC")
-    List<String> selectSameDetlToday(@Param("matnr") String matnr, @Param("start") Integer start, @Param("end") Integer end);
-
-}
diff --git a/src/main/java/com/zy/asrs/mapper/MatCodeMapper.java b/src/main/java/com/zy/asrs/mapper/MatCodeMapper.java
deleted file mode 100644
index a09bd26..0000000
--- a/src/main/java/com/zy/asrs/mapper/MatCodeMapper.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.zy.asrs.mapper;
-
-import com.baomidou.mybatisplus.mapper.BaseMapper;
-import com.zy.asrs.entity.MatCode;
-import org.apache.ibatis.annotations.Mapper;
-import org.springframework.stereotype.Repository;
-
-@Mapper
-@Repository
-public interface MatCodeMapper extends BaseMapper<MatCode> {
-
-}
diff --git a/src/main/java/com/zy/asrs/mapper/RowLastnoMapper.java b/src/main/java/com/zy/asrs/mapper/RowLastnoMapper.java
deleted file mode 100644
index bfb9079..0000000
--- a/src/main/java/com/zy/asrs/mapper/RowLastnoMapper.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.zy.asrs.mapper;
-
-import com.baomidou.mybatisplus.mapper.BaseMapper;
-import com.zy.asrs.entity.RowLastno;
-import org.apache.ibatis.annotations.Mapper;
-import org.springframework.stereotype.Repository;
-
-@Mapper
-@Repository
-public interface RowLastnoMapper extends BaseMapper<RowLastno> {
-
-}
diff --git a/src/main/java/com/zy/asrs/mapper/WaitPakinMapper.java b/src/main/java/com/zy/asrs/mapper/WaitPakinMapper.java
deleted file mode 100644
index cbca94b..0000000
--- a/src/main/java/com/zy/asrs/mapper/WaitPakinMapper.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.zy.asrs.mapper;
-
-import com.baomidou.mybatisplus.mapper.BaseMapper;
-import com.zy.asrs.entity.WaitPakin;
-import org.apache.ibatis.annotations.Mapper;
-import org.springframework.stereotype.Repository;
-
-@Mapper
-@Repository
-public interface WaitPakinMapper extends BaseMapper<WaitPakin> {
-
-}
diff --git a/src/main/java/com/zy/asrs/mapper/WrkDetlLogMapper.java b/src/main/java/com/zy/asrs/mapper/WrkDetlLogMapper.java
deleted file mode 100644
index b006b11..0000000
--- a/src/main/java/com/zy/asrs/mapper/WrkDetlLogMapper.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.zy.asrs.mapper;
-
-import com.baomidou.mybatisplus.mapper.BaseMapper;
-import com.zy.asrs.entity.WrkDetlLog;
-import org.apache.ibatis.annotations.Insert;
-import org.apache.ibatis.annotations.Mapper;
-import org.springframework.stereotype.Repository;
-
-@Mapper
-@Repository
-public interface WrkDetlLogMapper extends BaseMapper<WrkDetlLog> {
-
-    @Insert("insert into asr_wrk_detl_log select * from asr_wrk_detl where wrk_no=#{workNo}")
-    int save(Integer workNo);
-
-}
diff --git a/src/main/java/com/zy/asrs/mapper/WrkDetlMapper.java b/src/main/java/com/zy/asrs/mapper/WrkDetlMapper.java
deleted file mode 100644
index 3ff2711..0000000
--- a/src/main/java/com/zy/asrs/mapper/WrkDetlMapper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.zy.asrs.mapper;
-
-import com.baomidou.mybatisplus.mapper.BaseMapper;
-import com.zy.asrs.entity.WrkDetl;
-import org.apache.ibatis.annotations.Mapper;
-import org.apache.ibatis.annotations.Param;
-import org.springframework.stereotype.Repository;
-
-import java.util.Date;
-import java.util.List;
-
-@Mapper
-@Repository
-public interface WrkDetlMapper extends BaseMapper<WrkDetl> {
-
-    List<WrkDetl> findByWorkNo(Integer workNo);
-
-    int updateIoTime(@Param("workNo") Integer workNo, @Param("ioTime") Date ioTime);
-
-}
diff --git a/src/main/java/com/zy/asrs/mapper/WrkMastLogMapper.java b/src/main/java/com/zy/asrs/mapper/WrkMastLogMapper.java
deleted file mode 100644
index c229b41..0000000
--- a/src/main/java/com/zy/asrs/mapper/WrkMastLogMapper.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.zy.asrs.mapper;
-
-import com.baomidou.mybatisplus.mapper.BaseMapper;
-import com.zy.asrs.entity.WrkMastLog;
-import org.apache.ibatis.annotations.Insert;
-import org.apache.ibatis.annotations.Mapper;
-import org.springframework.stereotype.Repository;
-
-@Mapper
-@Repository
-public interface WrkMastLogMapper extends BaseMapper<WrkMastLog> {
-
-    @Insert("insert into asr_wrk_mast_log select * from asr_wrk_mast where wrk_no=#{workNo}")
-    int save(Integer workNo);
-
-}
diff --git a/src/main/java/com/zy/asrs/mapper/WrkMastMapper.java b/src/main/java/com/zy/asrs/mapper/WrkMastMapper.java
deleted file mode 100644
index 8c1d459..0000000
--- a/src/main/java/com/zy/asrs/mapper/WrkMastMapper.java
+++ /dev/null
@@ -1,106 +0,0 @@
-package com.zy.asrs.mapper;
-
-import com.baomidou.mybatisplus.mapper.BaseMapper;
-import com.zy.asrs.entity.WrkMast;
-import org.apache.ibatis.annotations.*;
-import org.springframework.stereotype.Repository;
-
-import java.util.List;
-
-@Mapper
-@Repository
-public interface WrkMastMapper extends BaseMapper<WrkMast> {
-
-    WrkMast selectByLocNo(@Param("sourceLocNo") String sourceLocNo);
-
-    WrkMast selectByLocNo1(@Param("sourceLocNo") String sourceLocNo);
-
-//    @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no")
-    List<WrkMast> selectToBeCompleteData();
-
-    List<WrkMast> selectToBeHistoryData();
-
-    // wcs ---------------------------------------------
-    // 鍏ュ簱绗竴姝ワ紝鎵爜浠幏鍙栨潯鐮佷俊鎭椂鏌ヨ
-//    @Select("select top 1 * from asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=2 and barcode=#{barcode} and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC")
-    WrkMast selectPakInStep1(@Param("sourceStaNo")Integer sourceStaNo, @Param("barcode")String barcode);
-
-    WrkMast selectPakInStep11(@Param("sourceStaNo")Integer sourceStaNo);
-
-    // 鍏ュ簱绗簩姝ワ紝褰撴墭鐩樼墿鏂欏湪鍫嗗灈鏈哄叆搴撶珯鏃舵椂鏌ヨ
-//    @Select("select top 1 * from dbo.asr_wrk_mast where wrk_sts=2 and crn_no=#{crnNo} and wrk_no=#{workNo} and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC")
-    WrkMast selectPakInStep2(@Param("crnNo")Integer crnNo, @Param("workNo")Integer workNo, @Param("staNo")Integer staNo);
-
-    // 鍏ュ簱绗笁姝ワ紝褰撳爢鍨涙満鎶婅揣鏀惧叆搴撲綅鏃�
-//    @Select("select top 1 from dbo.asr_wrk_mast where wrk_no=#{workNo}")
-    WrkMast selectPakInStep3(@Param("workNo")Integer workNo);
-
-    // 鎷f枡鍐嶅叆搴撴椂锛岀珯鐐规湁鐗╀笖闇�姹傛椂鏌ヨ
-//    @Select("select top 1 * from asr_wrk_mast where wrk_no=#{workNo} and wrk_sts=14 and (io_type=103 or io_type=107 or io_type=104)")
-    WrkMast selectPickStep(@Param("barcode")String barcode);
-
-    // 鍑哄簱绗竴姝ワ紝浠庡簱浣嶅埌鍫嗗灈鏈哄嚭搴撶珯
-//    @Select("select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and wrk_sts=11 and io_type>100 order by io_pri desc,io_time,wrk_no asc")
-    WrkMast selectPakOutStep1(@Param("crnNo")Integer crnNO, @Param("sourceStaNo")Integer sourceStaNo);
-
-    // 鍑哄簱绗簩姝ワ紝浠庡爢鍨涙満鍑哄簱绔欏埌鐩爣鍑哄簱绔欙紝鍫嗗灈鏈哄嚭搴撶珯鏈夌墿鏃舵墽琛�
-//    @Select("select top 1 * from dbo.asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=12 and io_type>100 order by io_pri desc,io_time desc,wrk_no ASC")
-    WrkMast selectPakOutStep2(@Param("sourceStaNo")Integer sourceStaNo);
-
-    // 搴撲綅绉昏浆宸ヤ綔妗o紝鍦ㄨ繘琛屼竴娆″叆鍑哄簱浣滀笟鍚庣揣璺熷簱浣嶇Щ杞�
-//    @Select("select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and (io_type=11 or io_type=110) and crn_no=#{crnNo} order by io_time,wrk_no")
-    WrkMast selectLocMove(@Param("crnNo")Integer crnNo);
-
-    WrkMast selectLocMoving(@Param("crnNo")Integer crnNo);
-
-    WrkMast selectWorking(@Param("crnNo")Integer crnNo);
-
-    // work log -------------------------------------------------------
-    @Insert("insert into asr_wrk_mast_log select * from asr_wrk_mast where wrk_no=#{workNo}")
-    int saveWrkMastLog(Integer workNo);
-
-    @Insert("insert into asr_wrk_detl_log select * from asr_wrk_detl where wrk_no=#{workNo}")
-    int saveWrkDetlLog(Integer workNo);
-
-    // 閫氱煡妗� ----------------------------------------------------------------------
-
-    // update 鍏ュ簱閫氱煡妗� -- Y
-    @Update("update cust_wait_pakin set io_status='Y' where zpallet = #{barcode}")
-    int updateWaitPakInStep1(String barcode);
-
-    // update 鍏ュ簱閫氱煡妗�  -- F
-    @Update("update cust_wait_pakin set io_status='F' where zpallet = #{barcode}")
-    int updateWaitPakInStep2(String barcode);
-
-//    WrkMast selectWorkingPakin();
-//
-//    WrkMast selectWorkingPakout();
-
-    /**
-     * 鍫嗗灈鏈烘槸鍚﹀瓨鍦ㄥ嚭搴撲换鍔�
-     * @param crnNo
-     * @return
-     */
-    WrkMast selectCrnWorking(@Param("crnNo")Integer crnNo);
-
-    /**
-     * 杈撻�佺嚎鏄惁瀛樺湪鍏ュ簱浠诲姟
-     * @param crnNo
-     * @return
-     */
-    WrkMast selectDevWorking(@Param("crnNo")Integer crnNo);
-
-
-    List<WrkMast> selectPick();
-
-    /**
-     * 鏌ユ壘鍫嗗灈鏈哄彿瀵瑰簲鎵�鏈夊緟鍑哄簱宸ヤ綔妗�
-     * @param crnNO
-     * @param sourceStaNo
-     * @return
-     */
-    List<WrkMast> selectPakOutStep11(@Param("crnNo")Integer crnNO, @Param("sourceStaNo")Integer sourceStaNo);
-
-    WrkMast selectWorkingPakin(@Param("sourceStaNo")Integer sourceStaNo);
-    WrkMast selectWorkingPakout(@Param("sourceStaNo")Integer sourceStaNo);
-}
diff --git a/src/main/java/com/zy/asrs/service/LocDetlService.java b/src/main/java/com/zy/asrs/service/LocDetlService.java
deleted file mode 100644
index 737a98c..0000000
--- a/src/main/java/com/zy/asrs/service/LocDetlService.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.zy.asrs.service;
-
-import com.baomidou.mybatisplus.plugins.Page;
-import com.baomidou.mybatisplus.service.IService;
-import com.zy.asrs.entity.LocDetl;
-
-import java.util.List;
-
-public interface LocDetlService extends IService<LocDetl> {
-
-    Page<LocDetl> getStockOut(Page<LocDetl> page);
-
-    /**
-     * 淇敼搴撳瓨鏄庣粏鏁伴噺锛屽鏋滄暟閲忎负0锛屽垯鍒犻櫎璁板綍
-     */
-    boolean updateAnfme(Double anfme, String locNo, String matnr);
-
-    boolean updateLocNo(String newLocNo, String oldLocNo);
-
-    /**
-     * 鑾峰彇褰撳ぉ鐩稿悓瑙勬牸璐х墿鐨勬繁搴撲綅鍙�
-     * @param matnr 鐗╂枡鍙�
-     * @return locNo 搴撲綅鍙�
-     */
-    List<String> getSameDetlToday(String matnr, Integer start, Integer end);
-
-}
diff --git a/src/main/java/com/zy/asrs/service/MatCodeService.java b/src/main/java/com/zy/asrs/service/MatCodeService.java
deleted file mode 100644
index 0f78ed5..0000000
--- a/src/main/java/com/zy/asrs/service/MatCodeService.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package com.zy.asrs.service;
-
-import com.baomidou.mybatisplus.service.IService;
-import com.zy.asrs.entity.MatCode;
-
-public interface MatCodeService extends IService<MatCode> {
-
-}
diff --git a/src/main/java/com/zy/asrs/service/RowLastnoService.java b/src/main/java/com/zy/asrs/service/RowLastnoService.java
deleted file mode 100644
index dca50fd..0000000
--- a/src/main/java/com/zy/asrs/service/RowLastnoService.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package com.zy.asrs.service;
-
-import com.baomidou.mybatisplus.service.IService;
-import com.zy.asrs.entity.RowLastno;
-
-public interface RowLastnoService extends IService<RowLastno> {
-
-}
diff --git a/src/main/java/com/zy/asrs/service/WaitPakinService.java b/src/main/java/com/zy/asrs/service/WaitPakinService.java
deleted file mode 100644
index 84bcc0a..0000000
--- a/src/main/java/com/zy/asrs/service/WaitPakinService.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.zy.asrs.service;
-
-import com.baomidou.mybatisplus.service.IService;
-import com.zy.asrs.entity.WaitPakin;
-
-public interface WaitPakinService extends IService<WaitPakin> {
-}
diff --git a/src/main/java/com/zy/asrs/service/WrkDetlLogService.java b/src/main/java/com/zy/asrs/service/WrkDetlLogService.java
deleted file mode 100644
index 38fa7f4..0000000
--- a/src/main/java/com/zy/asrs/service/WrkDetlLogService.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.zy.asrs.service;
-
-import com.baomidou.mybatisplus.service.IService;
-import com.zy.asrs.entity.WrkDetlLog;
-
-public interface WrkDetlLogService extends IService<WrkDetlLog> {
-
-    boolean save(Integer workNo);
-
-}
diff --git a/src/main/java/com/zy/asrs/service/WrkDetlService.java b/src/main/java/com/zy/asrs/service/WrkDetlService.java
deleted file mode 100644
index 18f7637..0000000
--- a/src/main/java/com/zy/asrs/service/WrkDetlService.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.zy.asrs.service;
-
-import com.baomidou.mybatisplus.service.IService;
-import com.zy.asrs.entity.WaitPakin;
-import com.zy.asrs.entity.WrkDetl;
-
-import java.util.Date;
-import java.util.List;
-
-public interface WrkDetlService extends IService<WrkDetl> {
-
-    void createWorkDetail(Integer workNo, List<WaitPakin> waitPakins, String barcode);
-
-    List<WrkDetl> findByWorkNo(Integer workNo);
-
-    boolean updateIoTime(Integer workNo, Date ioTime);
-
-}
diff --git a/src/main/java/com/zy/asrs/service/WrkMastLogService.java b/src/main/java/com/zy/asrs/service/WrkMastLogService.java
deleted file mode 100644
index 78ea016..0000000
--- a/src/main/java/com/zy/asrs/service/WrkMastLogService.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.zy.asrs.service;
-
-import com.baomidou.mybatisplus.service.IService;
-import com.zy.asrs.entity.WrkMastLog;
-
-public interface WrkMastLogService extends IService<WrkMastLog> {
-
-    boolean save(Integer workNo);
-
-}
diff --git a/src/main/java/com/zy/asrs/service/WrkMastService.java b/src/main/java/com/zy/asrs/service/WrkMastService.java
deleted file mode 100644
index e2a0c06..0000000
--- a/src/main/java/com/zy/asrs/service/WrkMastService.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.zy.asrs.service;
-
-import com.baomidou.mybatisplus.service.IService;
-import com.zy.asrs.entity.WrkMast;
-
-import java.util.List;
-
-public interface WrkMastService extends IService<WrkMast> {
-
-    int getWorkingMast(Integer devpNo);
-
-    List<WrkMast> selectToBeCompleteData();
-
-    List<WrkMast> selectToBeHistoryData();
-
-    int getOutToStn182(Integer devpNo);
-
-    /**
-     * 鑾峰彇瀵瑰簲鍫嗗灈鏈哄彿宸ヤ綔鐘舵�佷负14锛�12锛�2鐨勫伐浣滄。
-     */
-    int getStoreCount(Integer crnNo);
-
-}
diff --git a/src/main/java/com/zy/asrs/service/impl/BasCrnpServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/BasCrnpServiceImpl.java
index 9735a47..bbbc6b6 100644
--- a/src/main/java/com/zy/asrs/service/impl/BasCrnpServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/BasCrnpServiceImpl.java
@@ -6,19 +6,17 @@
 import com.zy.asrs.entity.BasCrnp;
 import com.zy.asrs.mapper.BasCrnpMapper;
 import com.zy.asrs.service.BasCrnpService;
-import com.zy.asrs.service.WrkMastService;
 import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 
 @Slf4j
 @Service("basCrnpService")
 public class BasCrnpServiceImpl extends ServiceImpl<BasCrnpMapper, BasCrnp> implements BasCrnpService {
+
     @Value("${wms.count}")
     private Integer maxCount;
-    @Autowired
-    private WrkMastService wrkMastService;
+
     @Override
     public BasCrnp checkSiteStatus(Integer crnId) {
         BasCrnp crnp = this.selectById(crnId);
diff --git a/src/main/java/com/zy/asrs/service/impl/BasDevpServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/BasDevpServiceImpl.java
index 67b1ca8..e46a77d 100644
--- a/src/main/java/com/zy/asrs/service/impl/BasDevpServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/BasDevpServiceImpl.java
@@ -4,20 +4,14 @@
 import com.baomidou.mybatisplus.service.impl.ServiceImpl;
 import com.core.exception.CoolException;
 import com.zy.asrs.entity.BasDevp;
-import com.zy.asrs.entity.TaskWrk;
 import com.zy.asrs.mapper.BasDevpMapper;
 import com.zy.asrs.service.BasDevpService;
-import com.zy.asrs.service.WrkMastService;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
 import java.util.List;
 
 @Service("basDevpService")
 public class BasDevpServiceImpl extends ServiceImpl<BasDevpMapper, BasDevp> implements BasDevpService {
-
-    @Autowired
-    private WrkMastService wrkMastService;
 
     @Override
     public List<Integer> getAvailableInSite() {
@@ -59,9 +53,6 @@
             }
             if(station.getWrkNo()!=null && station.getWrkNo()>0) {
                 throw new CoolException(devpNo+"绔欑偣宸叉湁宸ヤ綔鍙�");
-            }
-            if(wrkMastService.getWorkingMast(devpNo)>0){
-                throw new CoolException(devpNo+"绔欑偣涓嶈兘鍚屾椂鐢熸垚涓ょ瑪鍏ュ簱宸ヤ綔妗�");
             }
         }
         return station;
diff --git a/src/main/java/com/zy/asrs/service/impl/LocDetlServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/LocDetlServiceImpl.java
deleted file mode 100644
index 57f3645..0000000
--- a/src/main/java/com/zy/asrs/service/impl/LocDetlServiceImpl.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package com.zy.asrs.service.impl;
-
-import com.baomidou.mybatisplus.mapper.EntityWrapper;
-import com.baomidou.mybatisplus.plugins.Page;
-import com.baomidou.mybatisplus.service.impl.ServiceImpl;
-import com.zy.asrs.entity.LocDetl;
-import com.zy.asrs.mapper.LocDetlMapper;
-import com.zy.asrs.service.LocDetlService;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-@Service("locDetlService")
-public class LocDetlServiceImpl extends ServiceImpl<LocDetlMapper, LocDetl> implements LocDetlService {
-
-    @Override
-    public Page<LocDetl> getStockOut(Page<LocDetl> page) {
-        page.setRecords(baseMapper.getStockOutPage(page.getCondition()));
-        page.setTotal(baseMapper.getStockOutPageCount(page.getCondition()));
-        return page;
-    }
-
-    @Override
-    public boolean updateAnfme(Double anfme, String locNo, String matnr) {
-        if (anfme <= 0) {
-            return delete(new EntityWrapper<LocDetl>().eq("loc_no", locNo).eq("matnr", matnr));
-        } else {
-            int res = baseMapper.updateAnfme(anfme, locNo, matnr);
-            return res > 0;
-        }
-    }
-
-    @Override
-    public boolean updateLocNo(String newLocNo, String oldLocNo) {
-        return baseMapper.updateLocNo(newLocNo, oldLocNo) > 0;
-    }
-
-    @Override
-    public List<String> getSameDetlToday(String matnr, Integer start, Integer end) {
-        return this.baseMapper.selectSameDetlToday(matnr, start, end);
-    }
-
-}
diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index 22dba90..91ad04b 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -58,8 +58,6 @@
     @Autowired
     private SlaveProperties slaveProperties;
     @Autowired
-    private WrkMastMapper wrkMastMapper;
-    @Autowired
     private LocMastService locMastService;
     @Autowired
     private BasCrnpService basCrnpService;
@@ -93,8 +91,6 @@
     private NotifyUtils notifyUtils;
     @Value("${wms.count}")
     private Integer maxCount;
-    @Autowired
-    private WrkMastService wrkMastService;
     @Value("${wms.url}")
     private String wmsUrl;
     @Value("${wms.inboundTaskApplyPath}")
@@ -207,7 +203,30 @@
                                     continue;
                                 }
 
-                                taskWrk = createTask1(result, barcode);
+                                String locNo = Utils.getLocNo(result.getRow(), result.getFloor(), result.getColumn());
+                                LocMast locMast = locMastService.selectByLocNo(locNo);
+                                if (locMast == null) {
+                                    log.info(locNo + "搴撲綅涓嶅瓨鍦�");
+                                    continue;
+                                }
+
+                                Date now = new Date();
+                                taskWrk = new TaskWrk();
+                                taskWrk.setTaskNo(result.getTaskNo());//浠诲姟鍙�
+                                taskWrk.setWrkNo(commonService.getWorkNo(WorkNoType.PAKIN.type));//鑾峰彇鍏ュ簱宸ヤ綔鍙�
+                                taskWrk.setStatus(TaskStatusType.RECEIVE.id);//浠诲姟鐘舵�侊細鎺ユ敹
+                                taskWrk.setWrkSts(2);//2.璁惧涓婅蛋
+                                taskWrk.setCreateTime(now);
+                                taskWrk.setIoType(1);//浠诲姟绫诲瀷
+                                taskWrk.setIoPri(13);//浼樺厛绾�
+                                taskWrk.setBarcode(barcode);//鏉$爜
+                                taskWrk.setCrnNo(locMast.getCrnNo());
+                                taskWrk.setTargetPoint(locNo);
+                                taskWrk.setStartPoint(String.valueOf(staProtocol.getStaNo()));
+                                if (!Cools.isEmpty(taskWrk.getTargetPoint())) {
+                                    taskWrk.setOriginTargetPoint(taskWrk.getTargetPoint());
+                                }
+
                                 if (!taskWrkService.insert(taskWrk)) {
                                     log.info("浠诲姟锛�" + result.getTaskNo() + "浠诲姟鍒涘缓澶辫触");
                                     continue;
@@ -229,7 +248,7 @@
                                 customDataDto.setData(JSON.toJSONString(hashMap));
                                 boolean notifyResult = notifyUtils.notify("task", 1, String.valueOf(taskWrk.getWrkNo()), taskWrk.getTaskNo(), NotifyMsgType.TASK_START, JSON.toJSONString(taskWrk), true, customDataDto);
                                 if(notifyResult) {
-                                    taskWrk.setStatus(2);
+                                    taskWrk.setStatus(TaskStatusType.DISTRIBUTE.id);//浠诲姟娲惧彂
                                     taskWrkService.updateById(taskWrk);
                                 }
                             }
@@ -836,26 +855,26 @@
                     // 鏈夊紓甯�
                     if (latest == null) {
                         if (crnProtocol.getAlarm() != null && crnProtocol.getAlarm() > 0) {
-                            WrkMast wrkMast = wrkMastMapper.selectById(crnProtocol.getTaskNo());
-                            if (wrkMast == null) {
+                            TaskWrk taskWrk = taskWrkService.selectByWrkNo(crnProtocol.getTaskNo().intValue());
+                            if (taskWrk == null) {
                                 continue;
                             }
                             BasCrnError crnError = basCrnErrorMapper.selectById(crnProtocol.getAlarm());
                             String errName = crnError == null ? String.valueOf(crnProtocol.getAlarm()) : crnError.getErrName();
                             BasErrLog basErrLog = new BasErrLog(
                                     null,    // 缂栧彿
-                                    wrkMast.getWrkNo(),    // 宸ヤ綔鍙�
+                                    taskWrk.getWrkNo(),    // 宸ヤ綔鍙�
                                     now,    // 鍙戠敓鏃堕棿
                                     null,    // 缁撴潫鏃堕棿
-                                    wrkMast.getWrkSts(),    // 宸ヤ綔鐘舵��
-                                    wrkMast.getIoType(),    // 鍏ュ嚭搴撶被鍨�
+                                    taskWrk.getWrkSts().longValue(),    // 宸ヤ綔鐘舵��
+                                    taskWrk.getIoType(),    // 鍏ュ嚭搴撶被鍨�
                                     crn.getId(),    // 鍫嗗灈鏈�
                                     null,    // plc
-                                    wrkMast.getLocNo(),    // 鐩爣搴撲綅
-                                    wrkMast.getStaNo(),    // 鐩爣绔�
-                                    wrkMast.getSourceStaNo(),    // 婧愮珯
-                                    wrkMast.getSourceLocNo(),    // 婧愬簱浣�
-                                    wrkMast.getBarcode(),    // 鏉$爜
+                                    taskWrk.getTargetPoint(),    // 鐩爣搴撲綅
+                                    null,    // 鐩爣绔�
+                                    null,    // 婧愮珯
+                                    taskWrk.getStartPoint(),    // 婧愬簱浣�
+                                    taskWrk.getBarcode(),    // 鏉$爜
                                     (int) crnProtocol.getAlarm1(),    // 寮傚父鐮�
                                     errName,    // 寮傚父
                                     1,    // 寮傚父鎯呭喌
@@ -1002,40 +1021,6 @@
                 locMastService.updateById(locMast);
             }
         }
-    }
-
-    private TaskWrk createTask1(Result result, String barcode) {
-        String locNo = Utils.getLocNo(result.getRow(), result.getFloor(), result.getColumn());
-        LocMast locMast = locMastService.selectByLocNo(locNo);
-        if (locMast == null) {
-            throw new CoolException("搴撲綅涓嶅瓨鍦�");
-        }
-
-        Date now = new Date();
-        TaskWrk taskWrk = new TaskWrk();
-        int workNo1 = commonService.getWorkNo(WorkNoType.PAKIN.type);//鑾峰彇鍏ュ簱宸ヤ綔鍙�
-        taskWrk.setTaskNo(result.getTaskNo());//浠诲姟鍙�
-        taskWrk.setWrkNo(workNo1);
-        taskWrk.setStatus(TaskStatusType.RECEIVE.id);//浠诲姟鐘舵�侊細鎺ユ敹
-        taskWrk.setCreateTime(now);
-        taskWrk.setIoType(1);//浠诲姟绫诲瀷
-        taskWrk.setIoPri(13);//浼樺厛绾�
-        taskWrk.setBarcode(barcode);//鏉$爜
-        taskWrk.setCrnNo(locMast.getCrnNo());
-        taskWrk.setTargetPoint(locNo);
-        taskWrk.setStartPoint("116");
-        if (result.getAlley().equals("1")) {
-            taskWrk.setCrnNo(1);
-        } else {
-            taskWrk.setCrnNo(2);
-        }
-        if (taskWrk.getIoType() == 1) {
-            taskWrk.setWrkSts(2);
-            if (!Cools.isEmpty(taskWrk.getTargetPoint())) {
-                taskWrk.setOriginTargetPoint(taskWrk.getTargetPoint());
-            }
-        }
-        return taskWrk;
     }
 
     private TaskWrk createTask(GetWmsDto dto, String barcode) {
diff --git a/src/main/java/com/zy/asrs/service/impl/MatCodeServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MatCodeServiceImpl.java
deleted file mode 100644
index 72ae4e0..0000000
--- a/src/main/java/com/zy/asrs/service/impl/MatCodeServiceImpl.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.zy.asrs.service.impl;
-
-import com.baomidou.mybatisplus.service.impl.ServiceImpl;
-import com.zy.asrs.entity.MatCode;
-import com.zy.asrs.mapper.MatCodeMapper;
-import com.zy.asrs.service.MatCodeService;
-import org.springframework.stereotype.Service;
-
-@Service("matCodeService")
-public class MatCodeServiceImpl extends ServiceImpl<MatCodeMapper, MatCode> implements MatCodeService {
-
-}
diff --git a/src/main/java/com/zy/asrs/service/impl/RowLastnoServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/RowLastnoServiceImpl.java
deleted file mode 100644
index 1a32cff..0000000
--- a/src/main/java/com/zy/asrs/service/impl/RowLastnoServiceImpl.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.zy.asrs.service.impl;
-
-import com.baomidou.mybatisplus.service.impl.ServiceImpl;
-import com.zy.asrs.entity.RowLastno;
-import com.zy.asrs.mapper.RowLastnoMapper;
-import com.zy.asrs.service.RowLastnoService;
-import org.springframework.stereotype.Service;
-
-@Service("rowLastnoService")
-public class RowLastnoServiceImpl extends ServiceImpl<RowLastnoMapper, RowLastno> implements RowLastnoService {
-
-}
diff --git a/src/main/java/com/zy/asrs/service/impl/WaitPakinServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WaitPakinServiceImpl.java
deleted file mode 100644
index ecdc6be..0000000
--- a/src/main/java/com/zy/asrs/service/impl/WaitPakinServiceImpl.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.zy.asrs.service.impl;
-
-import com.baomidou.mybatisplus.service.impl.ServiceImpl;
-import com.zy.asrs.entity.WaitPakin;
-import com.zy.asrs.mapper.WaitPakinMapper;
-import com.zy.asrs.service.WaitPakinService;
-import org.springframework.stereotype.Service;
-
-@Service
-public class WaitPakinServiceImpl extends ServiceImpl<WaitPakinMapper, WaitPakin> implements WaitPakinService {
-}
diff --git a/src/main/java/com/zy/asrs/service/impl/WrkDetlLogServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WrkDetlLogServiceImpl.java
deleted file mode 100644
index 3e1d1eb..0000000
--- a/src/main/java/com/zy/asrs/service/impl/WrkDetlLogServiceImpl.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.zy.asrs.service.impl;
-
-import com.baomidou.mybatisplus.service.impl.ServiceImpl;
-import com.zy.asrs.entity.WrkDetlLog;
-import com.zy.asrs.mapper.WrkDetlLogMapper;
-import com.zy.asrs.service.WrkDetlLogService;
-import org.springframework.stereotype.Service;
-
-@Service("wrkDetlLogService")
-public class WrkDetlLogServiceImpl extends ServiceImpl<WrkDetlLogMapper, WrkDetlLog> implements WrkDetlLogService {
-
-    @Override
-    public boolean save(Integer workNo) {
-        return this.baseMapper.save(workNo)>0;
-    }
-}
diff --git a/src/main/java/com/zy/asrs/service/impl/WrkDetlServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WrkDetlServiceImpl.java
deleted file mode 100644
index 017911a..0000000
--- a/src/main/java/com/zy/asrs/service/impl/WrkDetlServiceImpl.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package com.zy.asrs.service.impl;
-
-import com.baomidou.mybatisplus.service.impl.ServiceImpl;
-import com.core.common.Cools;
-import com.core.exception.CoolException;
-import com.zy.asrs.entity.MatCode;
-import com.zy.asrs.entity.WaitPakin;
-import com.zy.asrs.entity.WrkDetl;
-import com.zy.asrs.mapper.WrkDetlMapper;
-import com.zy.asrs.service.MatCodeService;
-import com.zy.asrs.service.WrkDetlService;
-import com.zy.asrs.utils.VersionUtils;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-
-import java.util.Date;
-import java.util.List;
-
-@Service("wrkDetlService")
-public class WrkDetlServiceImpl extends ServiceImpl<WrkDetlMapper, WrkDetl> implements WrkDetlService {
-
-    @Autowired
-    private MatCodeService matCodeService;
-
-    @Override
-    @Transactional
-    public void createWorkDetail(Integer workNo, List<WaitPakin> waitPakins, String barcode) {
-        if (waitPakins.isEmpty()){
-            return;
-        }
-        for (WaitPakin waitPakin : waitPakins) {
-            MatCode matCode = matCodeService.selectById(waitPakin.getMatnr());
-            if (Cools.isEmpty(matCode)){
-                throw new CoolException("鐗╂枡鏉$爜鏁版嵁涓虹┖");
-            }
-            // 淇濇寔宸ヤ綔妗f槑缁�
-            WrkDetl wrkDetl = new WrkDetl();
-            wrkDetl.setWrkNo(workNo);
-            wrkDetl.setIoTime(new Date());
-            VersionUtils.setWrkDetl(wrkDetl, matCode); // 鐗堟湰鎺у埗
-            wrkDetl.setZpallet(barcode); // 鎵樼洏鏉$爜
-            wrkDetl.setAppeTime(new Date());
-            wrkDetl.setModiTime(new Date());
-            if (!this.insert(wrkDetl)) {
-                throw new CoolException("淇濆瓨宸ヤ綔鏄庣粏澶辫触");
-            }
-        }
-    }
-
-    @Override
-    public List<WrkDetl> findByWorkNo(Integer workNo) {
-        return this.baseMapper.findByWorkNo(workNo);
-    }
-
-    @Override
-    public boolean updateIoTime(Integer workNo, Date ioTime) {
-        return this.baseMapper.updateIoTime(workNo, ioTime) > 0;
-    }
-
-}
diff --git a/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java
deleted file mode 100644
index bd51e68..0000000
--- a/src/main/java/com/zy/asrs/service/impl/WrkMastLogServiceImpl.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.zy.asrs.service.impl;
-
-import com.baomidou.mybatisplus.service.impl.ServiceImpl;
-import com.zy.asrs.entity.WrkMastLog;
-import com.zy.asrs.mapper.WrkMastLogMapper;
-import com.zy.asrs.service.WrkMastLogService;
-import org.springframework.stereotype.Service;
-
-@Service("wrkMastLogService")
-public class WrkMastLogServiceImpl extends ServiceImpl<WrkMastLogMapper, WrkMastLog> implements WrkMastLogService {
-
-    @Override
-    public boolean save(Integer workNo) {
-        return this.baseMapper.save(workNo) > 0;
-    }
-
-}
diff --git a/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java
deleted file mode 100644
index 99f7296..0000000
--- a/src/main/java/com/zy/asrs/service/impl/WrkMastServiceImpl.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package com.zy.asrs.service.impl;
-
-import com.baomidou.mybatisplus.mapper.EntityWrapper;
-import com.baomidou.mybatisplus.service.impl.ServiceImpl;
-import com.zy.asrs.entity.WrkMast;
-import com.zy.asrs.mapper.WrkMastMapper;
-import com.zy.asrs.service.WrkMastService;
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-
-@Service("wrkMastService")
-public class WrkMastServiceImpl extends ServiceImpl<WrkMastMapper, WrkMast> implements WrkMastService {
-
-    @Override
-    public int getWorkingMast(Integer devpNo) {
-        return selectCount(new EntityWrapper<WrkMast>().eq("source_sta_no", devpNo).in("wrk_sts", 1, 6));
-    }
-
-    @Override
-    public List<WrkMast> selectToBeCompleteData() {
-        return this.baseMapper.selectToBeCompleteData();
-    }
-
-    @Override
-    public List<WrkMast> selectToBeHistoryData() {
-        return this.baseMapper.selectToBeHistoryData();
-    }
-
-    @Override
-    public int getOutToStn182(Integer devpNo) {
-        return selectCount(new EntityWrapper<WrkMast>().eq("sta_no", devpNo).in("wrk_sts",11,12));
-    }
-
-    @Override
-    public int getStoreCount(Integer crnNo){
-        return selectCount(new EntityWrapper<WrkMast>().eq("crn_no", crnNo).in("wrk_sts",12,14,2));
-    }
-}
diff --git a/src/main/java/com/zy/asrs/task/NotifyScheduler.java b/src/main/java/com/zy/asrs/task/NotifyScheduler.java
index 3dfc3a2..f9203cc 100644
--- a/src/main/java/com/zy/asrs/task/NotifyScheduler.java
+++ b/src/main/java/com/zy/asrs/task/NotifyScheduler.java
@@ -91,27 +91,27 @@
                 if (notifyDto.getSendCustomData()) {
                     //鑷畾涔夋秷鎭牸寮�
                     NotifyCustomDataDto customData = notifyDto.getCustomData();
+                    apiLog.setUrl(customData.getUri() + customData.getPath());
+                    apiLog.setRequest(customData.getData());
+                    apiLog.setCreateTime(new Date());
+
                     response = new HttpHandler.Builder()
                             .setUri(customData.getUri())
                             .setPath(customData.getPath())
                             .setJson(customData.getData())
                             .build()
                             .doPost();
-
-                    apiLog.setUrl(customData.getUri() + customData.getPath());
-                    apiLog.setRequest(customData.getData());
-                    apiLog.setCreateTime(new Date());
                 }else {
+                    apiLog.setUrl(notifyUri + notifyUriPath);
+                    apiLog.setRequest(JSON.toJSONString(notifyDto));
+                    apiLog.setCreateTime(new Date());
+
                     response = new HttpHandler.Builder()
                             .setUri(notifyUri)
                             .setPath(notifyUriPath)
                             .setJson(JSON.toJSONString(notifyDto))
                             .build()
                             .doPost();
-
-                    apiLog.setUrl(notifyUri + notifyUriPath);
-                    apiLog.setRequest(JSON.toJSONString(notifyDto));
-                    apiLog.setCreateTime(new Date());
                 }
 
                 apiLog.setResponse(response);
diff --git a/src/main/java/com/zy/asrs/utils/VersionUtils.java b/src/main/java/com/zy/asrs/utils/VersionUtils.java
index 0e8be1f..3f1259e 100644
--- a/src/main/java/com/zy/asrs/utils/VersionUtils.java
+++ b/src/main/java/com/zy/asrs/utils/VersionUtils.java
@@ -1,10 +1,6 @@
 package com.zy.asrs.utils;
 
-import com.core.exception.CoolException;
-import com.zy.asrs.entity.LocDetl;
 import com.zy.asrs.entity.LocMast;
-import com.zy.asrs.entity.MatCode;
-import com.zy.asrs.entity.WrkDetl;
 import com.zy.common.model.LocTypeDto;
 
 /**
@@ -13,64 +9,6 @@
 public class VersionUtils {
 
     // 涓氬姟 ----------------------------------------------------------------------
-
-    public static void setWrkDetl(WrkDetl wrkDetl, MatCode matCode) {
-//        wrkDetl.setMatNo(matCode.getMatNo()); // 鐗╂枡缂栧彿
-//        wrkDetl.setMatName(matCode.getMatName()); // 鐗╂枡鎻忚堪
-//        wrkDetl.setLgnum(matCode.getStr2()); // 瑙勬牸
-//        wrkDetl.setType(matCode.getStr5()); // 鍨嬪彿
-//        wrkDetl.setColor(matCode.getBarcode()); // 鏉$爜
-//        wrkDetl.setSupplier(matCode.getStr6()); // 鎵瑰彿
-//        wrkDetl.setWarehouse(matCode.getStr7()); // 鍗曟嵁缂栧彿
-//        wrkDetl.setBrand(matCode.getStr3()); // 鍝侀」鏁�
-//        wrkDetl.setAltme(matCode.getStr1()); // 鍗曚綅
-//        wrkDetl.setBname(matCode.getStr4()); // 瀹㈡埛鍚嶇О
-    }
-
-    public static void setWrkDetl(WrkDetl wrkDetl, LocDetl locDetl) {
-        wrkDetl.setMatnr(locDetl.getMatnr()); // 浜у搧缂栧彿
-        wrkDetl.setMaktx(locDetl.getMaktx()); // 浜у搧鎻忚堪
-        wrkDetl.setSpecs(locDetl.getSpecs()); // 瑙勬牸
-        wrkDetl.setUnit(locDetl.getUnit()); // 鍗曚綅
-//        wrkDetl.setSize(locDetl.getSize()); // 灏哄
-        wrkDetl.setColor(locDetl.getColor()); // 棰滆壊
-        wrkDetl.setWeight(locDetl.getWeight()); // 鍗曢噸
-        wrkDetl.setZpallet(locDetl.getZpallet()); // 鎵樼洏鏉$爜
-    }
-
-    public static void setLocDetl(LocDetl locDetl, MatCode matCode) {
-//        locDetl.setMatNo(matCode.getMatNo()); // 鐗╂枡缂栧彿
-//        locDetl.setMatName(matCode.getMatName()); // 鐗╂枡鎻忚堪
-//        locDetl.setLgnum(matCode.getStr2()); // 瑙勬牸
-//        locDetl.setType(matCode.getStr5()); // 鍨嬪彿
-//        locDetl.setColor(matCode.getBarcode()); // 鏉$爜
-//        locDetl.setSupplier(matCode.getStr6()); // 鎵瑰彿
-//        locDetl.setWarehouse(matCode.getStr7()); // 鍗曟嵁缂栧彿
-//        locDetl.setBrand(matCode.getStr3()); // 鍝侀」鏁�
-//        locDetl.setAltme(matCode.getStr1()); // 鍗曚綅
-//        locDetl.setBname(matCode.getStr4()); // 瀹㈡埛鍚嶇О
-    }
-
-    public static void setLocDetl(LocDetl locDetl, WrkDetl wrkDetl) {
-        locDetl.setMatnr(wrkDetl.getMatnr()); // 浜у搧缂栧彿
-        locDetl.setMaktx(wrkDetl.getMaktx()); // 浜у搧鎻忚堪
-        locDetl.setSpecs(wrkDetl.getSpecs()); // 瑙勬牸
-        locDetl.setUnit(wrkDetl.getUnit()); // 鍗曚綅
-//        locDetl.setSize(wrkDetl.getSize()); // 灏哄
-        locDetl.setColor(wrkDetl.getColor()); // 棰滆壊
-        locDetl.setAnfme(wrkDetl.getAnfme()); // 鏁伴噺
-        locDetl.setZpallet(wrkDetl.getZpallet()); // 鎵樼洏鏉$爜
-    }
-
-    /**
-     *  搴撲綅绉昏浆鏃剁被鍨嬫娴�
-     **/
-    public static void locMoveCheckLocType(LocMast sourceLoc, LocMast loc){
-        // 濡傛灉婧愬簱浣嶆槸楂樺簱浣嶏紝鐩爣搴撲綅鏄綆搴撲綅
-//        if (sourceLoc.getLocType1() == 2 && loc.getLocType1() == 1) {
-//            throw new CoolException("楂樺簱浣嶄笉鑳界Щ杞嚦浣庡簱浣�");
-//        }
-    }
 
     /**
      *  搴撲綅绉昏浆鏃剁被鍨嬫娴�
diff --git a/src/main/java/com/zy/common/service/CommonService.java b/src/main/java/com/zy/common/service/CommonService.java
index ea237b8..109f0c7 100644
--- a/src/main/java/com/zy/common/service/CommonService.java
+++ b/src/main/java/com/zy/common/service/CommonService.java
@@ -1,29 +1,15 @@
 package com.zy.common.service;
 
-import com.alibaba.fastjson.JSON;
-import com.baomidou.mybatisplus.mapper.EntityWrapper;
-import com.baomidou.mybatisplus.mapper.Wrapper;
-import com.core.common.Arith;
 import com.core.common.Cools;
 import com.core.exception.CoolException;
 import com.zy.asrs.entity.*;
 import com.zy.asrs.service.*;
-import com.zy.asrs.utils.Utils;
-import com.zy.asrs.utils.VersionUtils;
-import com.zy.common.model.LocTypeDto;
-import com.zy.common.model.Shelves;
-import com.zy.common.model.StartupDto;
-import com.zy.core.properties.SlaveProperties;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-
-import java.util.List;
 
 /**
  * 璐ф灦鏍稿績鍔熻兘
- * Created by vincent on 2020/6/11
  */
 @Slf4j
 @Service
@@ -33,20 +19,6 @@
     private TaskWrkService taskWrkService;
     @Autowired
     private WrkLastnoService wrkLastnoService;
-    @Autowired
-    private RowLastnoService rowLastnoService;
-    @Autowired
-    private BasCrnpService basCrnpService;
-    @Autowired
-    private StaDescService staDescService;
-    @Autowired
-    private BasDevpService basDevpService;
-    @Autowired
-    private LocMastService locMastService;
-    @Autowired
-    private SlaveProperties slaveProperties;
-    @Autowired
-    private LocDetlService locDetlService;
 
     /**
      * 鐢熸垚宸ヤ綔鍙� wrkMk 0:鍏ュ簱 1 - 3000 ; 1:鎷f枡/骞舵澘/鐩樼偣 3001 - 6000 ; 2: 鍑哄簱 6001 -9000 ; 3:鍏朵粬 9001 -9999
@@ -84,255 +56,6 @@
             }
         }
         return workNo;
-    }
-
-
-    /**
-     * 妫�绱㈠簱浣嶅彿
-     * @param whsType 绫诲瀷 1:鍙屾繁寮忚揣鏋�
-     * @param staDescId 璺緞宸ヤ綔绫诲瀷
-     * @param sourceStaNo 婧愮珯
-     * @param matNos 鐗╂枡鍙烽泦鍚�
-     * @return locNo 妫�绱㈠埌鐨勫簱浣嶅彿
-     */
-    @Transactional
-    public StartupDto getLocNo(Integer whsType, Integer staDescId, Integer sourceStaNo, List<String> matNos, LocTypeDto locTypeDto, int times) {
-        StartupDto startupDto = new StartupDto();
-        // 鐢熸垚宸ヤ綔鍙�
-        int workNo = getWorkNo(0);
-
-        switch (sourceStaNo) {
-            case 202:
-                whsType = 2;
-                break;
-            case 205:
-                whsType = 1;
-                break;
-            case 126:
-                whsType = 3;
-                break;
-            case 110:
-                whsType = 4;
-                break;
-            case 301:
-                whsType = 5;
-                break;
-            default:
-                throw new CoolException("搴撲綅鎺掑彿鍒嗛厤閿欒, 婧愮珯鍙凤細" + sourceStaNo);
-        }
-        RowLastno rowLastno = rowLastnoService.selectById(whsType);
-        if (Cools.isEmpty(rowLastno)) {
-            throw new CoolException("鏁版嵁寮傚父锛岃鑱旂郴绠$悊鍛�");
-        }
-
-        // ===============>>>> 寮�濮嬫墽琛�
-        int curRow = rowLastno.getCurrentRow();
-        int sRow = rowLastno.getsRow();
-        int eRow = rowLastno.geteRow();
-        int crn_qty = rowLastno.getCrnQty();
-        int rowCount = eRow - sRow + 1;
-        // 鐩爣鍫嗗灈鏈哄彿
-        int crnNo = 0;
-        // 鐩爣搴撲綅
-        LocMast locMast = null;
-
-        // 闈犺繎鎽嗘斁瑙勫垯 --- 鍚屽ぉ鍚岃鏍肩墿鏂�
-        if (!Cools.isEmpty(matNos)) {
-            List<String> locNos = locDetlService.getSameDetlToday(matNos.get(0), sRow, eRow);
-            for (String locNo : locNos) {
-                if (Utils.isShallowLoc(slaveProperties, locNo)) {
-                    continue;
-                }
-                String shallowLocNo = Utils.getShallowLoc(slaveProperties, locNo);
-                // 妫�娴嬬洰鏍囧簱浣嶆槸鍚︿负绌哄簱浣�
-                LocMast shallowLoc = locMastService.selectById(shallowLocNo);
-                if (shallowLoc != null && shallowLoc.getLocSts().equals("O")) {
-                    if (basCrnpService.checkSiteError(shallowLoc.getCrnNo(), true)) {
-                        if (VersionUtils.locMoveCheckLocType(shallowLoc, locTypeDto)) {
-                            locMast = shallowLoc;
-                            crnNo = locMast.getCrnNo();
-                            break;
-                        }
-                    }
-                }
-            }
-        }
-
-        // 闈犺繎鎽嗘斁瑙勫垯 --- 绌烘墭
-        if (staDescId == 10) {
-            List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>().eq("loc_sts", "D").ge("row1", sRow).le("row1", eRow));
-            if (locMasts.size() > 0) {
-                for (LocMast loc : locMasts) {
-                    if (Utils.isShallowLoc(slaveProperties, loc.getLocNo())) {
-                        continue;
-                    }
-                    String shallowLocNo = Utils.getShallowLoc(slaveProperties,  loc.getLocNo());
-                    // 妫�娴嬬洰鏍囧簱浣嶆槸鍚︿负绌哄簱浣�
-                    LocMast shallowLoc = locMastService.selectById(shallowLocNo);
-                    if (shallowLoc != null && shallowLoc.getLocSts().equals("O")) {
-                        if (basCrnpService.checkSiteError(shallowLoc.getCrnNo(), true)) {
-                            locMast = shallowLoc;
-                            crnNo = locMast.getCrnNo();
-                            break;
-                        }
-
-                    }
-                }
-            }
-        }
-
-        // 濡傛灉娌℃湁鐩歌繎鐗╂枡锛屽垯鎸夎鍒欒疆璇㈣揣鏋�
-        if (null == locMast) {
-            Shelves shelves = new Shelves(rowCount, crn_qty);
-            // 1-4鎺�
-            if (whsType == 1) {
-                for (int i = 0; i < shelves.group; i ++) {
-                    curRow = shelves.start(curRow);
-                    if (curRow < 0) {
-                        throw new CoolException("妫�绱㈠簱浣嶅け璐ワ紝璇疯仈绯荤鐞嗗憳");
-                    }
-                    Integer crnNo1 = shelves.get(curRow);
-                    if (basCrnpService.checkSiteError(crnNo1, true)) {
-                        crnNo = crnNo1;
-                        break;
-                    }
-                }
-            // 5-8鎺�
-            } else if (whsType == 2) {
-                curRow = curRow - 4;
-                for (int i = 0; i < shelves.group; i ++) {
-                    curRow = shelves.start(curRow);
-                    if (curRow < 0) {
-                        throw new CoolException("妫�绱㈠簱浣嶅け璐ワ紝璇疯仈绯荤鐞嗗憳");
-                    }
-                    Integer crnNo1 = shelves.get(curRow);
-                    if (basCrnpService.checkSiteError(crnNo1 + 1, true)) {
-                        // 鍋忕Щ閲忚ˉ鍋�
-                        curRow = curRow + 4;
-                        crnNo = crnNo1 + 1;
-                        break;
-                    }
-
-                }
-            // 126绌烘澘鍏� 1-8鎺�
-            } else {
-                for (int i = 0; i < shelves.group; i ++) {
-                    curRow = shelves.start(curRow);
-                    if (curRow < 0) {
-                        throw new CoolException("妫�绱㈠簱浣嶅け璐ワ紝璇疯仈绯荤鐞嗗憳");
-                    }
-                    Integer crnNo1 = shelves.get(curRow);
-                    if (basCrnpService.checkSiteError(crnNo1, true)) {
-                        crnNo = crnNo1;
-                        break;
-                    }
-                }
-            }
-        }
-
-        if (crnNo == 0) {
-            throw new CoolException("娌℃湁鍙敤鐨勫爢鍨涙満");
-        }
-        // 鑾峰彇鐩爣绔�
-        Wrapper<StaDesc> wrapper = new EntityWrapper<StaDesc>()
-                .eq("type_no", staDescId)
-                .eq("stn_no", sourceStaNo)
-                .eq("crn_no", crnNo);
-        StaDesc staDesc = staDescService.selectOne(wrapper);
-        if (Cools.isEmpty(staDesc)) {
-            log.error("type_no={},stn_no={},crn_no={}", staDescId, sourceStaNo, crnNo);
-            throw new CoolException("鍏ュ簱璺緞涓嶅瓨鍦�");
-        }
-        BasDevp staNo = basDevpService.selectById(staDesc.getCrnStn());
-        if (!staNo.getAutoing().equals("Y")) {
-            throw new CoolException("鐩爣绔�"+staDesc.getCrnStn()+"涓嶅彲鐢�");
-        }
-        // 鏇存柊搴撲綅鎺掑彿
-        rowLastno.setCurrentRow(curRow);
-        rowLastnoService.updateById(rowLastno);
-
-        // 寮�濮嬫煡鎵惧簱浣� ==============================>>
-
-        // 1.褰撴绱㈠簱鎺掍负娴呭簱浣嶆帓鏃讹紝浼樺厛瀵绘壘褰撳墠搴撴帓鐨勬繁搴撲綅鎺�
-        if (locMast == null) {
-            if (Utils.isShallowLoc(slaveProperties, curRow)) {
-                Integer deepRow = Utils.getDeepRow(slaveProperties, curRow);
-                locMast = locMastService.queryFreeLocMast(deepRow, locTypeDto.getLocType1());
-                // 鍥犲簱浣嶇Щ杞�侀渶棰勭暀绌哄簱浣�
-                if (!locMastService.checkEmptyCount(locMast)) {
-                    locMast = null;
-                }
-            }
-            if (Cools.isEmpty(locMast)) {
-                locMast = locMastService.queryFreeLocMast(curRow, locTypeDto.getLocType1());
-                // 鍥犲簱浣嶇Щ杞�侀渶棰勭暀绌哄簱浣�
-                if (!locMastService.checkEmptyCount(locMast)) {
-                    locMast = null;
-                }
-                // 鐩爣搴撲綅 ===>> 娴呭簱浣嶏紝 鍒欐牎楠屽叾娣卞簱浣嶆槸鍚︿负 F D X
-                if (null != locMast && Utils.isShallowLoc(slaveProperties, locMast.getLocNo())) {
-                    LocMast deepLoc = locMastService.selectById(Utils.getDeepLoc(slaveProperties, locMast.getLocNo()));
-                    if (!deepLoc.getLocSts().equals("F") && !deepLoc.getLocSts().equals("D") && !deepLoc.getLocSts().equals("X")) {
-                        locMast = null;
-                    }
-                }
-                // 鐩爣搴撲綅 ===>> 娣卞簱浣嶏紝 鍒欐牎楠屽叾娴呭簱浣嶆槸鍚︿负 O
-                if (null != locMast && Utils.isDeepLoc(slaveProperties, locMast.getLocNo())) {
-                    LocMast shallowLoc = locMastService.selectById(Utils.getShallowLoc(slaveProperties, locMast.getLocNo()));
-                    if (!shallowLoc.getLocSts().equals("O")) {
-                        locMast = null;
-                    }
-                }
-            }
-        }
-
-        // 2.搴撲綅褰撳墠鎵�灞炲昂瀵告棤绌哄簱浣嶆椂锛岃皟鏁村昂瀵稿弬鏁帮紝鍚戜笂鍏煎妫�绱㈠簱浣�
-        if (Cools.isEmpty(locMast)) {
-            // 褰撳墠宸烽亾鏃犵┖搴撲綅鏃讹紝閫掑綊璋冩暣鑷充笅涓�宸烽亾锛屾绱㈠叏閮ㄥ贩閬撴棤鏋滃悗锛岃烦鍑洪�掑綊
-            if (times < rowCount) {
-                times = times + 1;
-                return getLocNo(1, staDescId, sourceStaNo, matNos, locTypeDto, times);
-            } else {
-                times = 0;
-            }
-
-            // 杞昏揣鐗╂壘杞诲簱浣嶄负绌烘椂锛屽彲浠ュ幓鎵鹃噸搴撲綅浠�
-            if (locTypeDto.getLocType1() == 1) {
-                locTypeDto.setLocType1((short) 2);
-                return getLocNo(null, staDescId, sourceStaNo, matNos, locTypeDto, times);
-            }
-            log.error("绯荤粺娌℃湁绌哄簱浣嶏紒锛侊紒 灏哄瑙勬牸锛� {}锛� 杞娆℃暟锛歿}", JSON.toJSONString(locTypeDto), times);
-            throw new CoolException("娌℃湁绌哄簱浣�");
-        }
-        String locNo = locMast.getLocNo();
-
-        // 杩斿洖dto
-        startupDto.setWorkNo(workNo);
-        startupDto.setCrnNo(crnNo);
-        startupDto.setSourceStaNo(sourceStaNo);
-        startupDto.setStaNo(staNo.getDevNo());
-        startupDto.setLocNo(locNo);
-        return startupDto;
-    }
-
-    public static void main(String[] args) {
-        System.out.println(Arith.remainder(1, 4));
-        System.out.println("0200201".substring(0, 2));
-        String locNo = "0800201";
-        int row = Integer.parseInt(locNo.substring(0, 2));
-        double remainder = Arith.remainder(row, 4);
-        int targetRow;
-        if (remainder == 1) {
-            // 寰楀埌褰撳墠搴撲綅鐨勫鍥村簱浣�
-            targetRow =  row + 1;
-        } else if (remainder == 0) {
-            // 寰楀埌褰撳墠搴撲綅鐨勫唴鍥村簱浣�
-            targetRow =  row - 1;
-        } else {
-            return;
-        }
-        String zerofill = zerofill(String.valueOf(targetRow), 2)+locNo.substring(2);
-        System.out.println(zerofill);
     }
 
     public static String zerofill(String msg, Integer count) {
diff --git a/src/main/java/com/zy/common/service/WmsService.java b/src/main/java/com/zy/common/service/WmsService.java
deleted file mode 100644
index d188461..0000000
--- a/src/main/java/com/zy/common/service/WmsService.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package com.zy.common.service;
-
-import com.alibaba.fastjson.JSON;
-import com.zy.asrs.entity.WaitPakin;
-import com.zy.common.utils.HttpHandler;
-import com.zy.core.properties.SystemProperties;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.stereotype.Service;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * Created by vincent on 2020/8/6
- */
-@Slf4j
-@Service
-public class WmsService {
-
-    public boolean fullStorePutStart(String barcode, Integer sourceStaNo, List<WaitPakin> waitPakins) {
-
-        try {
-            Map<String, Object> param = new HashMap<>();
-            param.put("barcode", barcode);
-            param.put("devpNo", sourceStaNo);
-            List<Map<String, Object>> list = new ArrayList<>();
-            for (WaitPakin waitPakin : waitPakins) {
-                Map<String, Object> mat = new HashMap<>();
-                mat.put("matNo", waitPakin.getMatnr());
-                mat.put("count", waitPakin.getAnfme());
-                list.add(mat);
-            }
-            param.put("list", list);
-
-            String response = new HttpHandler.Builder()
-                    .setUri(SystemProperties.WMS_URL)
-                    .setPath("/full/store/put/start")
-                    .setJson(JSON.toJSONString(param))
-                    .build()
-                    .doPost();
-        } catch (IOException e) {
-
-        }
-        return true;
-    }
-
-}
diff --git a/src/main/java/com/zy/core/thread/LedThread.java b/src/main/java/com/zy/core/thread/LedThread.java
index 056c0e8..6afc79f 100644
--- a/src/main/java/com/zy/core/thread/LedThread.java
+++ b/src/main/java/com/zy/core/thread/LedThread.java
@@ -1,12 +1,9 @@
 package com.zy.core.thread;
 
-import com.alibaba.fastjson.JSON;
-import com.core.common.Cools;
 import com.core.common.SpringUtils;
 import com.zy.asrs.entity.CommandInfo;
 import com.zy.asrs.service.CommandInfoService;
 import com.zy.asrs.service.DeviceErrorService;
-import com.zy.common.entity.Parameter;
 import com.zy.common.model.MatDto;
 import com.zy.core.Slave;
 import com.zy.core.ThreadHandler;
@@ -28,7 +25,6 @@
 import onbon.bx05.utils.DisplayStyleFactory;
 
 import java.awt.*;
-import java.util.Date;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
diff --git a/src/main/java/com/zy/core/thread/SiemensDevpThread.java b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
index 0fa8c85..8f98ead 100644
--- a/src/main/java/com/zy/core/thread/SiemensDevpThread.java
+++ b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -9,17 +9,12 @@
 import com.core.common.DateUtils;
 import com.core.common.SpringUtils;
 import com.core.exception.CoolException;
-import com.zy.asrs.domain.enums.TaskStatusType;
 import com.zy.asrs.entity.BasDevp;
-import com.zy.asrs.entity.CommandInfo;
-import com.zy.asrs.entity.CommandInfoLog;
-import com.zy.asrs.entity.TaskWrk;
 import com.zy.asrs.service.*;
 import com.zy.core.DevpThread;
 import com.zy.core.cache.MessageQueue;
 import com.zy.core.cache.OutputQueue;
 import com.zy.core.cache.SlaveConnection;
-import com.zy.core.enums.CommandStatusType;
 import com.zy.core.enums.IoModeType;
 import com.zy.core.enums.SlaveType;
 import com.zy.core.model.DevpSlave;
@@ -49,12 +44,11 @@
     private Map<Integer, StaProtocol> station = new ConcurrentHashMap<>();
     private short heartBeatVal = 1;
     public static final ArrayList<Integer> staNos1 = new ArrayList<Integer>() {{
-        add(100);add(101);add(102);add(103);add(104);
-        add(105);add(106);add(107);add(108);add(109);
-        add(110);add(111);add(112);add(113);add(114);
-        add(115);add(116);add(117);add(118);add(119);
-        add(120);add(121);add(122);add(123);add(124);
-        add(125);add(1001);add(1002);add(1003);add(1004);
+        add(101);add(102);add(103);add(104);
+        add(105);add(106);add(107);add(108);
+        add(201);add(202);add(203);add(204);add(205);
+        add(206);add(207);add(208);add(209);add(210);
+        add(211);add(212);
     }};
     /*public static final ArrayList<Integer> staNos2 = new ArrayList<Integer>() {{
         add(200);add(201);add(202);add(203);
diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
deleted file mode 100644
index 4fb3cbf..0000000
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zy.asrs.mapper.LocDetlMapper">
-
-    <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
-    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.LocDetl">
-        <result column="loc_no" property="locNo" />
-        <result column="zpallet" property="zpallet" />
-        <result column="anfme" property="anfme" />
-        <result column="matnr" property="matnr" />
-        <result column="maktx" property="maktx" />
-        <result column="batch" property="batch" />
-        <result column="order_no" property="orderNo" />
-
-        <result column="specs" property="specs" />
-        <result column="model" property="model" />
-        <result column="color" property="color" />
-        <result column="brand" property="brand" />
-        <result column="unit" property="unit" />
-        <result column="price" property="price" />
-        <result column="sku" property="sku" />
-        <result column="units" property="units" />
-        <result column="barcode" property="barcode" />
-        <result column="origin" property="origin" />
-        <result column="manu" property="manu" />
-        <result column="manu_date" property="manuDate" />
-        <result column="item_num" property="itemNum" />
-        <result column="safe_qty" property="safeQty" />
-        <result column="weight" property="weight" />
-        <result column="length" property="length" />
-        <result column="volume" property="volume" />
-        <result column="three_code" property="threeCode" />
-        <result column="supp" property="supp" />
-        <result column="supp_code" property="suppCode" />
-        <result column="be_batch" property="beBatch" />
-        <result column="dead_time" property="deadTime" />
-        <result column="dead_warn" property="deadWarn" />
-        <result column="source" property="source" />
-        <result column="inspect" property="inspect" />
-        <result column="danger" property="danger" />
-
-        <result column="modi_user" property="modiUser" />
-        <result column="modi_time" property="modiTime" />
-        <result column="appe_user" property="appeUser" />
-        <result column="appe_time" property="appeTime" />
-        <result column="memo" property="memo" />
-    </resultMap>
-
-    <sql id="stockOutCondition">
-        <if test="loc_no!=null and loc_no!='' ">
-            and a.loc_no like '%' + #{loc_no} + '%'
-        </if>
-        <if test="matNo!=null and matNo!='' ">
-            and a.matnr like '%' + #{matNo} + '%'
-        </if>
-        <if test="matName!=null and matName!='' ">
-            and a.maktx like '%' + #{matName} + '%'
-        </if>
-        <if test="anfme!=null and anfme!='' ">
-            and a.anfme like '%' + #{anfme} + '%'
-        </if>
-        <if test="altme!=null and altme!='' ">
-            and a.altme like '%' + #{altme} + '%'
-        </if>
-        <if test="startTime!=null and endTime!=null">
-            and a.modi_time between #{startTime} and #{endTime}
-        </if>
-    </sql>
-
-    <select id="getStockOutPage" resultMap="BaseResultMap">
-        select * from
-        (
-            select
-            ROW_NUMBER() over (order by a.appe_time,a.matnr,a.loc_no) as row,
-            a.*
-            from asr_loc_detl a
-            left join asr_loc_mast b on a.loc_no = b.loc_no
-            where 1=1
-            and b.loc_sts = 'F'
-            <include refid="stockOutCondition"></include>
-        ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
-    </select>
-
-    <select id="getStockOutPageCount" parameterType="java.util.Map" resultType="java.lang.Integer">
-        select
-        count(1)
-        from asr_loc_detl a
-        left join asr_loc_mast b on a.loc_no = b.loc_no
-        where 1=1
-        and b.loc_sts = 'F'
-        <include refid="stockOutCondition"></include>
-    </select>
-</mapper>
diff --git a/src/main/resources/mapper/MatCodeMapper.xml b/src/main/resources/mapper/MatCodeMapper.xml
deleted file mode 100644
index 8e78b20..0000000
--- a/src/main/resources/mapper/MatCodeMapper.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zy.asrs.mapper.MatCodeMapper">
-
-    <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
-    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.MatCode">
-        <result column="mat_no" property="matNo" />
-        <result column="barcode" property="barcode" />
-        <result column="mat_name" property="matName" />
-        <result column="str1" property="str1" />
-        <result column="str2" property="str2" />
-        <result column="str3" property="str3" />
-        <result column="str4" property="str4" />
-        <result column="str5" property="str5" />
-        <result column="str6" property="str6" />
-        <result column="str7" property="str7" />
-        <result column="str8" property="str8" />
-        <result column="str9" property="str9" />
-        <result column="str10" property="str10" />
-        <result column="str11" property="str11" />
-        <result column="str12" property="str12" />
-        <result column="str13" property="str13" />
-        <result column="str14" property="str14" />
-        <result column="str15" property="str15" />
-        <result column="str16" property="str16" />
-        <result column="str17" property="str17" />
-        <result column="str18" property="str18" />
-        <result column="str19" property="str19" />
-        <result column="str20" property="str20" />
-        <result column="str21" property="str21" />
-        <result column="str22" property="str22" />
-        <result column="str23" property="str23" />
-        <result column="num1" property="num1" />
-        <result column="num2" property="num2" />
-        <result column="num3" property="num3" />
-        <result column="num4" property="num4" />
-        <result column="num5" property="num5" />
-        <result column="num6" property="num6" />
-        <result column="date1" property="date1" />
-        <result column="appe_user" property="appeUser" />
-        <result column="appe_time" property="appeTime" />
-        <result column="modi_user" property="modiUser" />
-        <result column="modi_time" property="modiTime" />
-        <result column="status" property="status" />
-
-    </resultMap>
-
-</mapper>
diff --git a/src/main/resources/mapper/RowLastnoMapper.xml b/src/main/resources/mapper/RowLastnoMapper.xml
deleted file mode 100644
index 45639f6..0000000
--- a/src/main/resources/mapper/RowLastnoMapper.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zy.asrs.mapper.RowLastnoMapper">
-
-    <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
-    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.RowLastno">
-        <id column="whs_type" property="whsType" />
-        <result column="wrk_mk" property="wrkMk" />
-        <result column="current_row" property="currentRow" />
-        <result column="s_row" property="sRow" />
-        <result column="e_row" property="eRow" />
-        <result column="crn_qty" property="crnQty" />
-        <result column="memo" property="memo" />
-        <result column="modi_user" property="modiUser" />
-        <result column="modi_time" property="modiTime" />
-        <result column="appe_user" property="appeUser" />
-        <result column="appe_time" property="appeTime" />
-        <result column="limint_loc" property="limintLoc" />
-
-    </resultMap>
-
-</mapper>
diff --git a/src/main/resources/mapper/WaitPakinMapper.xml b/src/main/resources/mapper/WaitPakinMapper.xml
deleted file mode 100644
index 4615185..0000000
--- a/src/main/resources/mapper/WaitPakinMapper.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zy.asrs.mapper.WaitPakinMapper">
-
-    <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
-    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.WaitPakin">
-        <result column="matnr" property="matnr" />
-        <result column="maktx" property="maktx" />
-        <result column="lgnum" property="lgnum" />
-        <result column="type" property="type" />
-        <result column="color" property="color" />
-        <result column="supplier" property="supplier" />
-        <result column="warehouse" property="warehouse" />
-        <result column="brand" property="brand" />
-        <result column="anfme" property="anfme" />
-        <result column="altme" property="altme" />
-        <result column="zpallet" property="zpallet" />
-        <result column="bname" property="bname" />
-        <result column="loc_no" property="locNo" />
-        <result column="status" property="status" />
-        <result column="io_status" property="ioStatus" />
-        <result column="memo" property="memo" />
-        <result column="modi_time" property="modiTime" />
-        <result column="modi_user" property="modiUser" />
-        <result column="appe_time" property="appeTime" />
-        <result column="appe_user" property="appeUser" />
-
-    </resultMap>
-
-</mapper>
diff --git a/src/main/resources/mapper/WrkDetlMapper.xml b/src/main/resources/mapper/WrkDetlMapper.xml
deleted file mode 100644
index a28c05b..0000000
--- a/src/main/resources/mapper/WrkDetlMapper.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zy.asrs.mapper.WrkDetlMapper">
-
-    <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
-    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.WrkDetl">
-        <result column="wrk_no" property="wrkNo" />
-        <result column="io_time" property="ioTime" />
-        <result column="matnr" property="matnr" />
-        <result column="maktx" property="maktx" />
-        <result column="specs" property="specs" />
-        <result column="size" property="size" />
-        <result column="color" property="color" />
-        <result column="weight" property="weight" />
-        <result column="bill_no" property="billNo" />
-        <result column="seq_no" property="seqNo" />
-        <result column="brand" property="brand" />
-        <result column="anfme" property="anfme" />
-        <result column="unit" property="unit" />
-        <result column="zpallet" property="zpallet" />
-        <result column="bname" property="bname" />
-        <result column="memo" property="memo" />
-        <result column="modi_user" property="modiUser" />
-        <result column="modi_time" property="modiTime" />
-        <result column="appe_user" property="appeUser" />
-        <result column="appe_time" property="appeTime" />
-    </resultMap>
-
-    <select id="findByWorkNo" resultMap="BaseResultMap">
-        select wrk_no, matnr, maktx, anfme from asr_wrk_detl where 1=1 and wrk_no = #{workNo}
-    </select>
-
-    <update id="updateIoTime">
-        update asr_wrk_detl
-        set io_time = #{ioTime}
-        where 1=1
-        and wrk_no = #{workNo}
-    </update>
-
-</mapper>
diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
deleted file mode 100644
index 32279a3..0000000
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ /dev/null
@@ -1,183 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.zy.asrs.mapper.WrkMastMapper">
-
-    <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
-    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.WrkMast">
-        <id column="wrk_no" property="wrkNo" />
-        <result column="inv_wh" property="invWh" />
-        <result column="ymd" property="ymd" />
-        <result column="mk" property="mk" />
-        <result column="whs_type" property="whsType" />
-        <result column="wrk_sts" property="wrkSts" />
-        <result column="io_type" property="ioType" />
-        <result column="crn_no" property="crnNo" />
-        <result column="sheet_no" property="sheetNo" />
-        <result column="io_pri" property="ioPri" />
-        <result column="wrk_date" property="wrkDate" />
-        <result column="loc_no" property="locNo" />
-        <result column="sta_no" property="staNo" />
-        <result column="source_sta_no" property="sourceStaNo" />
-        <result column="source_loc_no" property="sourceLocNo" />
-        <result column="loc_sts" property="locSts" />
-        <result column="picking" property="picking" />
-        <result column="link_mis" property="linkMis" />
-        <result column="online_yn" property="onlineYn" />
-        <result column="upd_mk" property="updMk" />
-        <result column="exit_mk" property="exitMk" />
-        <result column="plt_type" property="pltType" />
-        <result column="empty_mk" property="emptyMk" />
-        <result column="io_time" property="ioTime" />
-        <result column="ctn_type" property="ctnType" />
-        <result column="packed" property="packed" />
-        <result column="ove_mk" property="oveMk" />
-        <result column="mtn_type" property="mtnType" />
-        <result column="user_no" property="userNo" />
-        <result column="crn_str_time" property="crnStrTime" />
-        <result column="crn_end_time" property="crnEndTime" />
-        <result column="plc_str_time" property="plcStrTime" />
-        <result column="crn_pos_time" property="crnPosTime" />
-        <result column="load_time" property="loadTime" />
-        <result column="exp_time" property="expTime" />
-        <result column="ref_wrkno" property="refWrkno" />
-        <result column="ref_iotime" property="refIotime" />
-        <result column="modi_user" property="modiUser" />
-        <result column="modi_time" property="modiTime" />
-        <result column="appe_user" property="appeUser" />
-        <result column="appe_time" property="appeTime" />
-        <result column="pause_mk" property="pauseMk" />
-        <result column="error_time" property="errorTime" />
-        <result column="error_memo" property="errorMemo" />
-        <result column="ctn_kind" property="ctnKind" />
-        <result column="manu_type" property="manuType" />
-        <result column="memo" property="memo" />
-        <result column="sc_weight" property="scWeight" />
-        <result column="log_mk" property="logMk" />
-        <result column="log_err_time" property="logErrTime" />
-        <result column="log_err_memo" property="logErrMemo" />
-        <result column="barcode" property="barcode" />
-<!--        <result column="Pdc_type" property="PdcType" />-->
-        <result column="ctn_no" property="ctnNo" />
-        <result column="full_plt" property="fullPlt" />
-        <result column="wms_wrk_no" property="wmsWrkNo" />
-
-    </resultMap>
-
-    <select id="selectByLocNo"  resultMap="BaseResultMap">
-        select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} and  (ctn_no is null or ctn_no != 'Y')
-    </select>
-
-    <select id="selectByLocNo1"  resultMap="BaseResultMap">
-        select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} or loc_no = #{sourceLocNo}
-    </select>
-
-    <select id="selectToBeCompleteData" resultMap="BaseResultMap">
-        select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type != 103 and io_type != 104 and io_type != 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no
-    </select>
-
-    <select id="selectToBeHistoryData" resultMap="BaseResultMap">
-        select * from asr_wrk_mast
-        where wrk_sts=5
-        or (wrk_sts=15 and ove_mk='Y' and wrk_no not in (select wrk_no from asr_bas_devp))
-        or (wrk_sts=15 and dateadd(mi,15,crn_end_time) &lt;= getdate() and wrk_no not in (select wrk_no from asr_bas_devp))
-        or (wrk_sts=15 and crn_end_time is null and wrk_no not in (select wrk_no from asr_bas_devp))
-        order by io_time,wrk_no asc
-    </select>
-
-    <select id="selectPakInStep1" resultMap="BaseResultMap">
-        select top 1 * from asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=2 and barcode=#{barcode} and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC
-    </select>
-
-    <select id="selectPakInStep11" resultMap="BaseResultMap">
-        select top 1 * from asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=1 and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC
-    </select>
-
-    <select id="selectPakInStep2" resultMap="BaseResultMap">
-        select top 1 * from dbo.asr_wrk_mast where wrk_sts=2 and crn_no=#{crnNo} and wrk_no=#{workNo} and sta_no=#{staNo} and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC
-    </select>
-
-    <select id="selectPakInStep3" resultMap="BaseResultMap">
-        select top 1 * from dbo.asr_wrk_mast where wrk_no=#{workNo}
-    </select>
-
-    <select id="selectPickStep" resultMap="BaseResultMap">
-        select top 1 * from asr_wrk_mast where barcode=#{barcode} and wrk_sts=14 and (io_type=103 or io_type=107 or io_type=104)
-    </select>
-
-    <select id="selectPakOutStep1" resultMap="BaseResultMap">
-        select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and source_sta_no=#{sourceStaNo} and wrk_sts=11 and io_type>100 order by io_pri desc,io_time,wrk_no asc
-    </select>
-
-    <select id="selectPakOutStep2" resultMap="BaseResultMap">
-        select top 1 * from dbo.asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=12 and io_type>100 order by io_pri desc,io_time desc,wrk_no ASC
-    </select>
-
-    <select id="selectLocMove" resultMap="BaseResultMap">
-        select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and io_type=11 and crn_no=#{crnNo} order by io_time,wrk_no
-    </select>
-
-    <select id="selectLocMoving" resultMap="BaseResultMap">
-        select top 1 * from dbo.asr_wrk_mast where wrk_sts=12 and io_type=11 and crn_no=#{crnNo} order by io_time,wrk_no
-    </select>
-
-    <select id="selectWorking" resultMap="BaseResultMap">
-        select top 1 * from dbo.asr_wrk_mast where 1=1 and (wrk_sts=3 or wrk_sts=12) and crn_no=#{crnNo} order by io_time,wrk_no
-    </select>
-
-<!--    &lt;!&ndash; 鍏ュ簱浠诲姟 &ndash;&gt;-->
-<!--    <select id="selectWorkingPakin" resultMap="BaseResultMap">-->
-<!--        select top 1 * from dbo.asr_wrk_mast where wrk_sts in (2,3,4) and io_type != 11 and source_sta_no = 180 order by io_time,wrk_no-->
-<!--    </select>-->
-
-<!--    &lt;!&ndash; 鍑哄簱浠诲姟 &ndash;&gt;-->
-<!--    <select id="selectWorkingPakout" resultMap="BaseResultMap">-->
-<!--        select top 1 *-->
-<!--        from dbo.asr_wrk_mast-->
-<!--        where (wrk_sts in (11,12)-->
-<!--        or (wrk_sts in (14,15) and wrk_no in-->
-<!--        (-->
-<!--        select wrk_no-->
-<!--        from asr_bas_devp-->
-<!--        where wrk_no > 0)-->
-<!--        ))-->
-<!--        and io_type != 11-->
-<!--        and source_sta_no = 180-->
-<!--        order by io_time,wrk_no-->
-<!--    </select>-->
-
-    <select id="selectCrnWorking" resultMap="BaseResultMap">
-        select top 1 * from dbo.asr_wrk_mast where 1=1 and wrk_sts in (3,4,11,12) and crn_no=#{crnNo} order by io_time,wrk_no
-    </select>
-
-    <select id="selectDevWorking" resultMap="BaseResultMap">
-        select top 1 * from dbo.asr_wrk_mast where 1=1 and wrk_sts=2 and crn_no=#{crnNo} order by io_time,wrk_no
-    </select>
-
-    <select id="selectPick" resultMap="BaseResultMap">
-        select * from dbo.asr_wrk_mast where 1=1 and wrk_sts = 14 and io_type in (103,104,107)
-    </select>
-
-    <select id="selectPakOutStep11" resultMap="BaseResultMap">
-        select * from dbo.asr_wrk_mast where crn_no=#{crnNo} and source_sta_no=#{sourceStaNo} and wrk_sts=11 and io_type>100 order by io_pri desc,io_time,wrk_no asc
-    </select>
-
-    <!--                                       鍏ュ嚭搴撴ā寮忕浉鍏�                                      -->
-    <select id="selectWorkingPakin" resultMap="BaseResultMap">
-        select top 1 * from dbo.asr_wrk_mast where wrk_sts in (2,3,4) and io_type != 11 and source_sta_no = #{sourceStaNo} order by io_time,wrk_no
-    </select>
-
-    <select id="selectWorkingPakout" resultMap="BaseResultMap">
-        select top 1 *
-        from dbo.asr_wrk_mast
-        where (wrk_sts in (11,12)
-        or (wrk_sts in (14,15) and wrk_no in
-        (
-        select wrk_no
-        from asr_bas_devp
-        where wrk_no > 0)
-        ))
-        and io_type != 11
-        and source_sta_no = #{sourceStaNo}
-        order by io_time,wrk_no
-    </select>
-</mapper>
diff --git a/src/main/webapp/static/wms/js/locMast/locMast.js b/src/main/webapp/static/wms/js/locMast/locMast.js
index f7cc2e2..812fa80 100644
--- a/src/main/webapp/static/wms/js/locMast/locMast.js
+++ b/src/main/webapp/static/wms/js/locMast/locMast.js
@@ -28,7 +28,7 @@
             // ,{field: 'ctnType', align: 'center',title: ''}
             // ,{field: 'locSts', align: 'center',title: ''}
             // ,{field: 'sheetNo', align: 'center',title: ''}
-            // ,{field: 'crnNo', align: 'center',title: '鍫嗗灈鏈哄彿'}
+            ,{field: 'crnNo', align: 'center',title: '鍫嗗灈鏈哄彿'}
             ,{field: 'row1', align: 'center',title: '鎺�', sort:true}
             ,{field: 'bay1', align: 'center',title: '鍒�', sort:true}
             ,{field: 'lev1', align: 'center',title: '灞�', sort:true}
diff --git a/src/main/webapp/views/locMast/locMast.html b/src/main/webapp/views/locMast/locMast.html
index 9323076..f1b3840 100644
--- a/src/main/webapp/views/locMast/locMast.html
+++ b/src/main/webapp/views/locMast/locMast.html
@@ -65,15 +65,6 @@
             <input class="layui-input" type="text" name="barcode" placeholder="鎵樼洏鐮�" autocomplete="off">
         </div>
     </div>
-    <div class="layui-inline">
-        <div class="layui-input-inline">
-            <select class="layui-input" id="loc_type1" name="loc_type1" autocomplete="off">
-                <option value>閫夋嫨妗剁被鍨�</option>
-                <option value="1">娌规《</option>
-                <option value="2">鍑�妗�</option>
-            </select>
-        </div>
-    </div>
     <!-- 寰呮坊鍔� -->
     <div id="data-search-btn" class="layui-btn-container layui-form-item" style="display: inline-block">
         <button id="search" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="search">鎼滅储</button>

--
Gitblit v1.9.1