From ee6e7a5260183a0ac977d6ff21fe3de6f70d3bdd Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期二, 18 六月 2024 16:56:40 +0800 Subject: [PATCH] # --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MotionServiceImpl.java | 10 +++++++++- 1 files changed, 9 insertions(+), 1 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 56a428b..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.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