From 08923c6d95dc8f0f415de94e1d4e3230cdcf7a8e Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期四, 14 十一月 2024 15:42:58 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmModelParamServiceImpl.java | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmModelParamServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmModelParamServiceImpl.java index cea16cc..4c79982 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmModelParamServiceImpl.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmModelParamServiceImpl.java @@ -1,10 +1,13 @@ package com.iailab.module.model.mcs.pre.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.iailab.framework.common.service.impl.BaseServiceImpl; +import com.iailab.module.model.mcs.pre.dao.MmModelArithSettingsDao; import com.iailab.module.model.mcs.pre.dao.MmModelParamDao; import com.iailab.module.model.mcs.pre.entity.MmModelParamEntity; import com.iailab.module.model.mcs.pre.service.MmModelParamService; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; @@ -16,17 +19,20 @@ * @author PanZhibao * @date 2021年04月27日 9:25 */ -@Service("mmModelParamService") -public class MmModelParamServiceImpl extends BaseServiceImpl<MmModelParamDao, MmModelParamEntity> implements MmModelParamService { +@Service +public class MmModelParamServiceImpl extends ServiceImpl<MmModelParamDao, MmModelParamEntity> implements MmModelParamService { + @Autowired + private MmModelParamDao mmModelParamDao; + @Override public void saveList(List<MmModelParamEntity> list) { QueryWrapper<MmModelParamEntity> queryWrapper = new QueryWrapper(); queryWrapper.eq("modelid", list.get(0).getModelid()); - baseDao.delete(queryWrapper); + mmModelParamDao.delete(queryWrapper); list.forEach(item -> { item.setId(UUID.randomUUID().toString()); - baseDao.insert(item); + mmModelParamDao.insert(item); }); } @@ -36,7 +42,7 @@ queryWrapper.eq("modelid", modelid); queryWrapper.orderByAsc("MODELPARAMPORTORDER"); queryWrapper.orderByAsc("MODELPARAMORDER"); - List<MmModelParamEntity> list = baseDao.selectList(queryWrapper); + List<MmModelParamEntity> list = mmModelParamDao.selectList(queryWrapper); if (CollectionUtils.isEmpty(list)) { return new ArrayList<>(); } -- Gitblit v1.9.3