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/MmItemAccuracyRateServiceImpl.java |   44 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 43 insertions(+), 1 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemAccuracyRateServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemAccuracyRateServiceImpl.java
index abaade9..79951cb 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemAccuracyRateServiceImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemAccuracyRateServiceImpl.java
@@ -1,7 +1,19 @@
 package com.iailab.module.model.mcs.pre.service.impl;
 
+import com.iailab.framework.common.pojo.PageResult;
+import com.iailab.framework.common.service.impl.BaseServiceImpl;
+import com.iailab.framework.common.util.object.BeanUtils;
+import com.iailab.framework.security.core.util.SecurityFrameworkUtils;
+import com.iailab.module.model.mcs.pre.dao.MmItemAccuracyRateDao;
+import com.iailab.module.model.mcs.pre.entity.MmItemAccuracyRateEntity;
 import com.iailab.module.model.mcs.pre.service.MmItemAccuracyRateService;
+import com.iailab.module.model.mcs.pre.service.MmItemAccuracyRateService;
+import com.iailab.module.model.mcs.pre.vo.MmItemAccuracyRatePageReqVO;
+import com.iailab.module.model.mcs.pre.vo.MmItemAccuracyRateSaveReqVO;
 import org.springframework.stereotype.Service;
+
+import java.util.Date;
+import java.util.UUID;
 
 /**
  * @author PanZhibao
@@ -9,5 +21,35 @@
  * @createTime 2024年11月19日
  */
 @Service
-public class MmItemAccuracyRateServiceImpl implements MmItemAccuracyRateService {
+public class MmItemAccuracyRateServiceImpl extends BaseServiceImpl<MmItemAccuracyRateDao, MmItemAccuracyRateEntity>
+        implements MmItemAccuracyRateService {
+    @Override
+    public PageResult<MmItemAccuracyRateEntity> page(MmItemAccuracyRatePageReqVO reqVO) {
+        return baseDao.selectPage(reqVO);
+    }
+
+    @Override
+    public MmItemAccuracyRateEntity getInfo(String id) {
+        return baseDao.selectById(id);
+    }
+
+    @Override
+    public void create(MmItemAccuracyRateSaveReqVO reqVO) {
+        MmItemAccuracyRateEntity entity = BeanUtils.toBean(reqVO, MmItemAccuracyRateEntity.class);
+        entity.setId(UUID.randomUUID().toString());
+        entity.setCreateTime(new Date());
+        baseDao.insert(entity);
+    }
+
+    @Override
+    public void update(MmItemAccuracyRateSaveReqVO reqVO) {
+        MmItemAccuracyRateEntity entity = BeanUtils.toBean(reqVO, MmItemAccuracyRateEntity.class);
+        entity.setUpdateTime(new Date());
+        baseDao.updateById(entity);
+    }
+
+    @Override
+    public void delete(String id) {
+        baseDao.deleteById(id);
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3