From 1205f84f732610763d46935c0ec31757005376f4 Mon Sep 17 00:00:00 2001
From: Jay <csj123456>
Date: 星期二, 15 十月 2024 08:38:27 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleModelSettingServiceImpl.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleModelSettingServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleModelSettingServiceImpl.java
index a2caba9..d21da80 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleModelSettingServiceImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/service/impl/StScheduleModelSettingServiceImpl.java
@@ -44,10 +44,13 @@
         if (CollectionUtils.isEmpty(saveList)) {
             return;
         }
-        saveList.forEach(item -> {
+        for (int i = 0; i < saveList.size(); i++) {
+            StScheduleModelSettingSaveReqVO item = saveList.get(i);
             StScheduleModelSettingEntity entity = BeanUtils.toBean(item, StScheduleModelSettingEntity.class);
             entity.setId(UUID.randomUUID().toString());
+            entity.setModelid(modelId);
+            entity.setSort(i);
             baseDao.insert(entity);
-        });
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3