From a440ec3bfaa1363f5841100b8948d852971a2eb1 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 10 十二月 2024 13:19:58 +0800 Subject: [PATCH] MmPredictAlarmConfigService --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictMergeItemServiceImpl.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/MmPredictMergeItemServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictMergeItemServiceImpl.java index 8e03ef2..f4da186 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictMergeItemServiceImpl.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictMergeItemServiceImpl.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.DmModuleItemDao; import com.iailab.module.model.mcs.pre.dao.MmPredictMergeItemDao; import com.iailab.module.model.mcs.pre.entity.MmPredictMergeItemEntity; import com.iailab.module.model.mcs.pre.service.MmPredictMergeItemService; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; @@ -15,13 +18,16 @@ * @author PanZhibao * @date 2021年04月27日 9:27 */ -@Service("mmPredictMergeItemService") -public class MmPredictMergeItemServiceImpl extends BaseServiceImpl<MmPredictMergeItemDao, MmPredictMergeItemEntity> implements MmPredictMergeItemService { +@Service +public class MmPredictMergeItemServiceImpl extends ServiceImpl<MmPredictMergeItemDao, MmPredictMergeItemEntity> implements MmPredictMergeItemService { + @Autowired + private MmPredictMergeItemDao mmPredictMergeItemDao; + @Override public void savePredictMergeItem(MmPredictMergeItemEntity predictMergeItem) { predictMergeItem.setId(UUID.randomUUID().toString()); - baseDao.insert(predictMergeItem); + mmPredictMergeItemDao.insert(predictMergeItem); } @Override @@ -32,13 +38,13 @@ public void deleteBatch(String[] itemIds) { QueryWrapper queryWrapper = new QueryWrapper<MmPredictMergeItemEntity>(); queryWrapper.in("itemid", itemIds); - baseDao.delete(queryWrapper); + mmPredictMergeItemDao.delete(queryWrapper); } public MmPredictMergeItemEntity getByItemid(String itemid) { QueryWrapper queryWrapper = new QueryWrapper<MmPredictMergeItemEntity>(); queryWrapper.eq("itemid", itemid); - List<MmPredictMergeItemEntity> list = baseDao.selectList(queryWrapper); + List<MmPredictMergeItemEntity> list = mmPredictMergeItemDao.selectList(queryWrapper); if (CollectionUtils.isEmpty(list)) { return new MmPredictMergeItemEntity(); } -- Gitblit v1.9.3