ludc
2025-01-15 d42f321ca241ab7f8bb3cdc71f11fe5ec4ebc48d
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package com.vci.web.service;
 
import com.vci.corba.common.PLException;
import com.vci.corba.omd.btm.BizType;
import com.vci.pagemodel.OsAttributeVO;
import com.vci.pagemodel.OsBtmTypeAttributeVO;
import com.vci.pagemodel.OsBtmTypeVO;
import com.vci.pagemodel.OsUsedAttributeVO;
 
import java.util.Collection;
import java.util.List;
import java.util.Map;
 
/**
 * @Description 业务类型服务接口
 * @Author dangsn
 * @Date 2024/11/28 11:32
 */
public interface WebBtmServiceI {
 
    /**
     * TODO:尽量别用这个方法很慢,做了一次全查再转来转去
     * 使用编号获取业务类型
     * @param id 编号
     * @return 业务类型
     */
    OsBtmTypeVO getBtmById(String id) throws PLException;
 
    /**
     * 数据对象转换为显示对象
     * @param btmItem 数据对象
     * @return 显示对象
     */
    OsBtmTypeVO btmDO2VO(BizType btmItem, Map<String, OsAttributeVO> attributeVOMap);
 
    /**
     * 获取业务类型的在哪个属性中使用
     * @param btmName 业务类型
     * @return 引用的信息
     */
    List<OsUsedAttributeVO> listBtmUsedInfo(String btmName);
 
    /**
     * 获取业务类型的在哪个属性中使用
     *
     * @param btmId 业务类型
     * @param hasLink 是否包含链接类型中
     * @return 引用的信息
     */
    List<OsUsedAttributeVO> listBtmUsedInfo(String btmId, boolean hasLink);
 
    /**
     * 查询所有的业务类型映射
     * @return key 是业务的英文名称的小写
     */
    Map<String,OsBtmTypeVO> selectAllBtmMap();
 
    /**
     * 查询所有的业务类型映射
     * @return key 是业务的英文名称的小写
     */
    Map<String,OsBtmTypeVO> selectAllBtmMap(Map<String, OsAttributeVO> attributeVOMap);
 
    /**
     * 查询所有的业务类型
     * @return 业务类型对象
     */
    List<OsBtmTypeVO> selectAllBtm();
 
    /**
     * 查询所有的业务类型
     * @return 业务类型对象
     */
    List<OsBtmTypeVO> selectAllBtm(Map<String, OsAttributeVO> attributeVOMap);
 
    /**
     * 数据对象转换为显示对象
     * @param btmItems 数据对象
     * @return 显示对象
     */
    List<OsBtmTypeVO> btmDO2VOs(Collection<BizType> btmItems, Map<String, OsAttributeVO> attributeVOMap);
 
    /**
     * 使用编号获取业务类型
     * @param btmIds 编号
     * @return 业务类型
     */
    List<OsBtmTypeVO> listBtmByIds(Collection<String> btmIds);
 
    /**
     * 根据业务类型获取包含的属性--不包含基础属性
     * @param btmId 业务类型的编号
     * @return 属性的内容
     */
    List<OsBtmTypeAttributeVO> listAttributeByBtmId(String btmId);
}