From ead1dde55f0ab0fb7ca28f4b6353cfdc90ecbbb6 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Wed, 13 Dec 2023 09:41:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96asset=E7=9A=84service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../asset/service/DcBaseAssetInfoService.java | 22 +++-- .../service/IDcBaseAssetInfoService.java | 65 ------------- .../impl/DcBaseAssetInfoServiceImpl.java | 95 ------------------- 3 files changed, 15 insertions(+), 167 deletions(-) delete mode 100644 lzbi-module/src/main/java/com/lzbi/asset/service/IDcBaseAssetInfoService.java delete mode 100644 lzbi-module/src/main/java/com/lzbi/asset/service/impl/DcBaseAssetInfoServiceImpl.java diff --git a/lzbi-module/src/main/java/com/lzbi/asset/service/DcBaseAssetInfoService.java b/lzbi-module/src/main/java/com/lzbi/asset/service/DcBaseAssetInfoService.java index 3bee66d..4393146 100644 --- a/lzbi-module/src/main/java/com/lzbi/asset/service/DcBaseAssetInfoService.java +++ b/lzbi-module/src/main/java/com/lzbi/asset/service/DcBaseAssetInfoService.java @@ -5,8 +5,10 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.lzbi.asset.domain.DcBaseAssetInfo; import com.lzbi.asset.mapper.DcBaseAssetInfoMapper; import com.lzbi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.util.HashMap; import java.util.List; /** @@ -19,6 +21,8 @@ import java.util.List; public class DcBaseAssetInfoService extends ServiceImpl implements IService { + @Autowired + private DcBaseAssetInfoMapper dcBaseAssetInfoMapper; /** * 查询资产信息 * @@ -27,7 +31,7 @@ public class DcBaseAssetInfoService extends ServiceImpl selectDcBaseAssetInfoList(DcBaseAssetInfo dcBaseAssetInfo) { - return baseMapper.selectDcBaseAssetInfoList(dcBaseAssetInfo); + return dcBaseAssetInfoMapper.selectDcBaseAssetInfoList(dcBaseAssetInfo); } /** @@ -51,7 +55,7 @@ public class DcBaseAssetInfoService extends ServiceImpl selectDcBaseAssetInfoMap(){ + return dcBaseAssetInfoMapper.selectDcBaseAssetInfoMap(); } diff --git a/lzbi-module/src/main/java/com/lzbi/asset/service/IDcBaseAssetInfoService.java b/lzbi-module/src/main/java/com/lzbi/asset/service/IDcBaseAssetInfoService.java deleted file mode 100644 index 0bc18a8..0000000 --- a/lzbi-module/src/main/java/com/lzbi/asset/service/IDcBaseAssetInfoService.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.lzbi.asset.service; - - -import com.lzbi.asset.domain.DcBaseAssetInfo; - -import java.util.HashMap; -import java.util.List; - -/** - * 资产信息Service接口 - * - * @author Lu.JL - * @date 2023-11-27 - */ -public interface IDcBaseAssetInfoService { - /** - * 查询资产信息 - * - * @param id 资产信息主键 - * @return 资产信息 - */ - public DcBaseAssetInfo selectDcBaseAssetInfoById(Long id); - public DcBaseAssetInfo selectDcBaseAssetInfoByCode(String assetCode); - //add by zhousq 2023-12-12 获取资产信息Map映射便于存储查询 - public HashMap selectDcBaseAssetInfoMap(); - /** - * 查询资产信息列表 - * - * @param dcBaseAssetInfo 资产信息 - * @return 资产信息集合 - */ - public List selectDcBaseAssetInfoList(DcBaseAssetInfo dcBaseAssetInfo); - - /** - * 新增资产信息 - * - * @param dcBaseAssetInfo 资产信息 - * @return 结果 - */ - public int insertDcBaseAssetInfo(DcBaseAssetInfo dcBaseAssetInfo); - - /** - * 修改资产信息 - * - * @param dcBaseAssetInfo 资产信息 - * @return 结果 - */ - public int updateDcBaseAssetInfo(DcBaseAssetInfo dcBaseAssetInfo); - - /** - * 批量删除资产信息 - * - * @param ids 需要删除的资产信息主键集合 - * @return 结果 - */ - public int deleteDcBaseAssetInfoByIds(Long[] ids); - - /** - * 删除资产信息信息 - * - * @param id 资产信息主键 - * @return 结果 - */ - public int deleteDcBaseAssetInfoById(Long id); -} diff --git a/lzbi-module/src/main/java/com/lzbi/asset/service/impl/DcBaseAssetInfoServiceImpl.java b/lzbi-module/src/main/java/com/lzbi/asset/service/impl/DcBaseAssetInfoServiceImpl.java deleted file mode 100644 index 03827ad..0000000 --- a/lzbi-module/src/main/java/com/lzbi/asset/service/impl/DcBaseAssetInfoServiceImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.lzbi.asset.service.impl; - -import java.util.HashMap; -import java.util.List; - -import com.lzbi.asset.domain.DcBaseAssetInfo; -import com.lzbi.asset.mapper.DcBaseAssetInfoMapper; -import com.lzbi.asset.service.IDcBaseAssetInfoService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -/** - * 资产信息Service业务层处理 - * - * @author Lu.JL - * @date 2023-11-27 - */ -@Service -public class DcBaseAssetInfoServiceImpl implements IDcBaseAssetInfoService { - @Autowired - private DcBaseAssetInfoMapper dcBaseAssetInfoMapper; - - /** - * 查询资产信息 - * - * @param id 资产信息主键 - * @return 资产信息 - */ - @Override - public DcBaseAssetInfo selectDcBaseAssetInfoById(Long id) { - return dcBaseAssetInfoMapper.selectDcBaseAssetInfoById(id); - } - @Override - public DcBaseAssetInfo selectDcBaseAssetInfoByCode(String assetCode) { - return dcBaseAssetInfoMapper.selectDcBaseAssetInfoByCode(assetCode); - } - @Override - public HashMap selectDcBaseAssetInfoMap(){ - return dcBaseAssetInfoMapper.selectDcBaseAssetInfoMap(); - } - /** - * 查询资产信息列表 - * - * @param dcBaseAssetInfo 资产信息 - * @return 资产信息 - */ - @Override - public List selectDcBaseAssetInfoList(DcBaseAssetInfo dcBaseAssetInfo) { - return dcBaseAssetInfoMapper.selectDcBaseAssetInfoList(dcBaseAssetInfo); - } - - /** - * 新增资产信息 - * - * @param dcBaseAssetInfo 资产信息 - * @return 结果 - */ - @Override - public int insertDcBaseAssetInfo(DcBaseAssetInfo dcBaseAssetInfo) { - return dcBaseAssetInfoMapper.insertDcBaseAssetInfo(dcBaseAssetInfo); - } - - /** - * 修改资产信息 - * - * @param dcBaseAssetInfo 资产信息 - * @return 结果 - */ - @Override - public int updateDcBaseAssetInfo(DcBaseAssetInfo dcBaseAssetInfo) { - return dcBaseAssetInfoMapper.updateDcBaseAssetInfo(dcBaseAssetInfo); - } - - /** - * 批量删除资产信息 - * - * @param ids 需要删除的资产信息主键 - * @return 结果 - */ - @Override - public int deleteDcBaseAssetInfoByIds(Long[] ids) { - return dcBaseAssetInfoMapper.deleteDcBaseAssetInfoByIds(ids); - } - - /** - * 删除资产信息信息 - * - * @param id 资产信息主键 - * @return 结果 - */ - @Override - public int deleteDcBaseAssetInfoById(Long id) { - return dcBaseAssetInfoMapper.deleteDcBaseAssetInfoById(id); - } -}