无关风月
21 小时以前 2aa0dd9c34c6be86e70b1d2d939d3660552cb514
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package com.ruoyi.system.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.dto.asset.AssetTypeDTO;
import com.ruoyi.system.model.AssetType;
import com.ruoyi.system.vo.asset.AssetTypeTreeVO;
 
import java.util.List;
 
/**
 * <p>
 * 资产类型表 服务类
 * </p>
 *
 * @author WuGuanFengYue
 * @since 2025-09-15
 */
public interface AssetTypeService extends IService<AssetType> {
 
    /**
     * 获取资产类型树形数据
     * @return 资产类型树形列表
     */
    List<AssetTypeTreeVO> getAssetTypeTree();
 
    /**
     * 新增资产类型
     * @param dto 资产类型数据传输对象
     */
    void addAssetType(AssetTypeDTO dto);
 
    /**
     * 编辑资产类型
     * @param dto 资产类型数据传输对象
     */
    void editAssetType(AssetTypeDTO dto);
 
    /**
     * 删除资产类型
     * @param id 资产类型ID
     */
    void deleteAssetType(Integer id);
 
    /**
     * 批量删除资产类型
     * @param ids 资产类型ID列表
     */
    void batchDeleteAssetType(List<Integer> ids);
 
    /**
     * 根据资产类型ID获取资产编码前缀
     * @param assetTypeId 资产类型ID
     * @return 资产编码前缀(一级分类简写+二级分类简写)
     */
    String getAssetCodePrefix(Integer assetTypeId);
 
}