From ebdfec3e9db0977bccca0527be7d2226fbbd0229 Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期三, 12 六月 2024 11:02:16 +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