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/DmModuleItemServiceImpl.java |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/DmModuleItemServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/DmModuleItemServiceImpl.java
index 90073a4..52b4efe 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/DmModuleItemServiceImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/DmModuleItemServiceImpl.java
@@ -1,12 +1,12 @@
 package com.iailab.module.model.mcs.pre.service.impl;
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.iailab.framework.common.service.impl.BaseServiceImpl;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.iailab.module.model.mcs.pre.dao.DmModuleItemDao;
 import com.iailab.module.model.mcs.pre.entity.DmModuleItemEntity;
 import com.iailab.module.model.mcs.pre.service.DmModuleItemService;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.CollectionUtils;
 
 import java.util.List;
@@ -16,24 +16,24 @@
  * @author PanZhibao
  * @date 2021年04月27日 9:20
  */
-@Service("dmModuleItemService")
-public class DmModuleItemServiceImpl extends BaseServiceImpl<DmModuleItemDao, DmModuleItemEntity> implements DmModuleItemService {
-
+@Service
+public class DmModuleItemServiceImpl extends ServiceImpl<DmModuleItemDao, DmModuleItemEntity> implements DmModuleItemService {
+    @Autowired
+    private DmModuleItemDao dmModuleItemDao;
+    
     @Override
-    @Transactional(rollbackFor = Exception.class)
     public void saveModuleItem(DmModuleItemEntity moduleItem) {
         moduleItem.setId(UUID.randomUUID().toString());
-        baseDao.insert(moduleItem);
+        dmModuleItemDao.insert(moduleItem);
     }
 
     @Override
-    @Transactional(rollbackFor = Exception.class)
     public void update(DmModuleItemEntity moduleItem) {
-        baseDao.updateById(moduleItem);
+        dmModuleItemDao.updateById(moduleItem);
     }
 
     public DmModuleItemEntity getByItemid(String itemid) {
-        List<DmModuleItemEntity> list = baseDao.selectList(new QueryWrapper<DmModuleItemEntity>().in("itemid", itemid));
+        List<DmModuleItemEntity> list = dmModuleItemDao.selectList(new QueryWrapper<DmModuleItemEntity>().in("itemid", itemid));
         if (CollectionUtils.isEmpty(list)) {
             return new DmModuleItemEntity();
         }

--
Gitblit v1.9.3