From a6076e796892c476f7b38a5ee475a5f5591d7625 Mon Sep 17 00:00:00 2001
From: 18516761980 <tqsxp@163.com>
Date: 星期一, 26 九月 2022 20:28:43 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
index dae07fb..a617b49 100644
--- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -82,7 +82,7 @@
     @Autowired
     private TestMastService testMastService;
     @Autowired
-    private WorkLogHandler workLogHandler;
+    private WorkService workService;
 
     @Value("${mes.url}")
     private String mesUrl;
@@ -92,6 +92,10 @@
 
     @Value("${mes.startUpTestPACK}")
     private String suspendTestPACK;
+
+    @Value("${mes.inPath}")
+    private String inpath;
+
 
 
     @Override
@@ -618,11 +622,11 @@
     public void startUpTestPACK(TestMast testMast) {
 
         //鍚姩娴嬭瘯璇锋眰
-        ReturnT<String> result=startUpTestPACK1(testMast);
-        if (!result.isSuccess()) {
-            log.error("娴嬭瘯鐢宠澶辫触", testMast.getBarcode());
+//        ReturnT<String> result=startUpTestPACK1(testMast);
+//        if (!result.isSuccess()) {
+//            log.error("娴嬭瘯鐢宠澶辫触", testMast.getBarcode());
 //            throw new CoolException("娴嬭瘯鐢宠澶辫触");
-        }
+//        }
         LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", testMast.getLocNo()));
         if (Cools.isEmpty(locMast)) {
             throw new CoolException(BaseRes.PARAM);
@@ -635,8 +639,16 @@
         if (!testMastService.insert(testMast)){
             throw new CoolException("娣诲姞testMast澶辫触");
         }
-        locMast.setPackStatus(2);
+        locMast.setPackStatus(1);
         locMast.setModiTime(now);
+
+        CombParam combParam = new CombParam();
+        combParam.setPackNo(locMast.getBarcode());
+        combParam.setLocno(locMast.getLocNo());
+        combParam.setPackSts(1);
+        combParam.setRequestTime(DateUtils.convert(new Date()));
+        postMesData(inpath,combParam);
+
         if (!locMastService.update(locMast,new EntityWrapper<LocMast>().eq("loc_no", testMast.getLocNo()))){
             throw new CoolException("鐢宠娴嬭瘯澶辫触");
         }
@@ -646,7 +658,7 @@
     public void suspendTestPACK() {
         ReturnT<String> result=suspendTestPACK1();
         if (!result.isSuccess()) {
-            log.error("娴嬭瘯鐢宠澶辫触");
+            log.error("鏆傚仠娴嬭瘯澶辫触");
         }
     }
     @Transactional

--
Gitblit v1.9.1