From 37733cc39c04b863a0b997c7fa3d9ac6a24e08be Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 19 六月 2024 15:58:19 +0800
Subject: [PATCH] #

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java
index 70f38b1..6bc68e0 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java
@@ -77,12 +77,15 @@
     }
 
     @Override
-    public int batchInsert(List<Motion> motionList, String uuid, Integer taskNo) {
+    public int batchInsert(List<Motion> motionList, String uuid, Integer taskNo, Long hostId) {
         int i = motionList.size();
         for (Motion motion : motionList) {
             motion.setPriority(i);
-            motion.setWrkNo(taskNo);
+            motion.setTaskNo(taskNo);
             motion.setUuid(uuid);
+            if (hostId != null) {
+                motion.setHostId(hostId);
+            }
             if (!this.save(motion)) {
                 throw new CoolException(JSON.toJSONString(motion) + "鍔ㄤ綔淇濆瓨澶辫触");
             }
@@ -90,4 +93,9 @@
         }
         return motionList.size();
     }
+
+    @Override
+    public int batchInsert(List<Motion> motionList, String uuid, Integer taskNo) {
+        return batchInsert(motionList, uuid, taskNo, null);
+    }
 }

--
Gitblit v1.9.1