From 94c169d9c7809ae78927608ef55c61d24459fdab Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期四, 12 十二月 2024 10:47:59 +0800
Subject: [PATCH] 项目打包bug

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/SettingSelectServiceImpl.java |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/SettingSelectServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/SettingSelectServiceImpl.java
index 1bfba31..689ad71 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/SettingSelectServiceImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/SettingSelectServiceImpl.java
@@ -2,14 +2,20 @@
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.iailab.framework.common.service.impl.BaseServiceImpl;
+import com.iailab.framework.common.util.object.ConvertUtils;
 import com.iailab.module.model.mpk.dao.SettingSelectDao;
+import com.iailab.module.model.mpk.dto.MethodSettingDTO;
+import com.iailab.module.model.mpk.dto.SettingSelectDTO;
+import com.iailab.module.model.mpk.entity.ModelMethodEntity;
 import com.iailab.module.model.mpk.entity.SettingSelectEntity;
 import com.iailab.module.model.mpk.service.SettingSelectService;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.stereotype.Service;
 
+import java.util.List;
 import java.util.Map;
+import java.util.UUID;
 
 /**
  * @description:
@@ -34,4 +40,17 @@
 
         return wrapper;
     }
+
+    @Override
+    public void insertList(List<SettingSelectDTO> list, String settingId) {
+        List<SettingSelectEntity> entityList = ConvertUtils.sourceToTarget(list, SettingSelectEntity.class);
+        for(int i = 0; i < entityList.size(); i++){
+            SettingSelectEntity entity = entityList.get(i);
+            entity.setId(UUID.randomUUID().toString());
+            entity.setSettingId(settingId);
+            entity.setSort(i);
+            baseDao.insert(entity);
+        }
+
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3