From 51c1c2c9fa28fb1765dd6e81c70b78566792aebe Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 03 十二月 2024 14:45:07 +0800 Subject: [PATCH] 调度方案关联项目 --- 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