From 32afdc40d71b62ed0a2e0693cd56564816b188e5 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 26 十二月 2024 17:30:57 +0800
Subject: [PATCH] #添加HOST权限,如果授权为空,默认1

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

diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java
index 1cfb59d..8b8387f 100644
--- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java
@@ -8,20 +8,24 @@
 import com.zy.asrs.wms.asrs.service.MobileService;
 import com.zy.asrs.wms.asrs.service.WaitPakinService;
 import com.zy.asrs.wms.asrs.service.WorkService;
+import com.zy.asrs.wms.system.entity.Host;
+import com.zy.asrs.wms.system.service.HostService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
 import java.util.ArrayList;
+import java.util.List;
 
 @Service
 public class MobileServiceImpl implements MobileService {
 
     @Autowired
     private WaitPakinService waitPakinService;
-
     @Autowired
     private WorkService workService;
+    @Autowired
+    private HostService hostService;
 
     @Override
     @Transactional
@@ -30,7 +34,13 @@
         ArrayList<WaitPakin> waitPakins = new ArrayList<>();
         ordersParam.getOrderDetls().forEach(orderdetl -> {
             WaitPakin waitPakin = new WaitPakin();
-            waitPakin.setBatch(orderdetl.getBatch()).setAnfme(orderdetl.getMergeNum()).setBarcode(ordersParam.getMergeNo()).setMatnr(orderdetl.getMatnr()).setDetlId(orderdetl.getDetlId()).setIoStatus(0).setOrderNo(orderdetl.getOrderNo()).setOrderId(orderdetl.getOrderId()).setStatus(1);
+            waitPakin.setBatch(orderdetl.getBatch())
+                    .setAnfme(orderdetl.getMergeNum())
+                    .setBarcode(ordersParam.getMergeNo())
+                    .setMatnr(orderdetl.getMatnr())
+                    .setDetlId(orderdetl.getDetlId())
+                    .setIoStatus(0)
+                    .setOrderNo(orderdetl.getOrderNo()).setOrderId(orderdetl.getOrderId()).setStatus(1);
             waitPakins.add(waitPakin);
         });
 
@@ -51,4 +61,9 @@
         }
         return false;
     }
+
+    @Override
+    public List<Host> getHosts() {
+        return hostService.list();
+    }
 }

--
Gitblit v1.9.1