ljlong_2630
11 months ago
3 changed files with 15 additions and 167 deletions
@ -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<String,String> selectDcBaseAssetInfoMap(); |
|||
/** |
|||
* 查询资产信息列表 |
|||
* |
|||
* @param dcBaseAssetInfo 资产信息 |
|||
* @return 资产信息集合 |
|||
*/ |
|||
public List<DcBaseAssetInfo> 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); |
|||
} |
@ -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<String,String> selectDcBaseAssetInfoMap(){ |
|||
return dcBaseAssetInfoMapper.selectDcBaseAssetInfoMap(); |
|||
} |
|||
/** |
|||
* 查询资产信息列表 |
|||
* |
|||
* @param dcBaseAssetInfo 资产信息 |
|||
* @return 资产信息 |
|||
*/ |
|||
@Override |
|||
public List<DcBaseAssetInfo> 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); |
|||
} |
|||
} |
Loading…
Reference in new issue