From e8ad669f7c97d45cd23630dc101180a130d6c17e Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期二, 05 十一月 2024 10:04:57 +0800
Subject: [PATCH] tag当前值开发

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/service/impl/IndItemCalServiceImpl.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/service/impl/IndItemCalServiceImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/service/impl/IndItemCalServiceImpl.java
index 19447b5..da7a480 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/service/impl/IndItemCalServiceImpl.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/service/impl/IndItemCalServiceImpl.java
@@ -1,14 +1,28 @@
 package com.iailab.module.data.ind.item.service.impl;
 
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.iailab.framework.common.service.impl.BaseServiceImpl;
+import com.iailab.framework.common.util.object.BeanUtils;
 import com.iailab.module.data.ind.item.dao.IndItemCalDao;
 import com.iailab.module.data.ind.item.entity.IndItemCalEntity;
 import com.iailab.module.data.ind.item.service.IndItemCalService;
+import com.iailab.module.data.ind.item.vo.IndItemCalVO;
+import org.springframework.stereotype.Service;
 
 /**
  * @author PanZhibao
  * @Description
  * @createTime 2024年09月11日
  */
+@Service
 public class IndItemCalServiceImpl extends BaseServiceImpl<IndItemCalDao, IndItemCalEntity> implements IndItemCalService {
+    @Override
+    public IndItemCalVO getByItemId(String itemId) {
+        return BeanUtils.toBean(baseDao.selectOne(new QueryWrapper<IndItemCalEntity>().eq("item_id", itemId)), IndItemCalVO.class);
+    }
+
+    @Override
+    public void deleteByItemId(String itemId) {
+        baseDao.delete(new QueryWrapper<IndItemCalEntity>().eq("item_id", itemId));
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3