ludc
2024-07-26 696c68a9f7645bc35a9382a4e2271910b222f7b5
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package com.vci.web.service;
 
import com.vci.corba.omd.stm.StatePool;
import com.vci.starter.web.pagemodel.DataGrid;
import com.vci.starter.web.pagemodel.PageHelper;
import com.vci.dto.OsStatusDTO;
import com.vci.pagemodel.OsStatusVO;
 
import java.util.Collection;
import java.util.List;
import java.util.Map;
 
/**
 * 状态的服务
 * @author weidy
 * @date 2021-2-14
 */
public interface OsStatusServiceI extends OsBaseServiceI{
 
    /**
     * 数据对象转换为显示对象
     * @param statePool 状态池的数据对象
     * @return 显示对象
     */
    OsStatusVO statusDO2VO(com.vci.corba.omd.stm.StatePool statePool);
 
    /**
     * 数据对象转换为显示对象
     * @param statePools 状态池的数据对象 集合
     * @return 显示对象
     */
    List<OsStatusVO> statusDO2VOs(Collection<com.vci.corba.omd.stm.StatePool> statePools);
 
    /**
     * 查询所有的状态
     * @return 状态的显示对象
     */
    List<OsStatusVO> selectAllStatus();
 
    /**
     * 查询全部的状态映射
     * @return key是状态的英文名称
     */
    Map<String,OsStatusVO> selectAllStatusMap();
 
    /**
     * 状态转换为显示文本
     * @param status 状态
     * @return 显示文本
     */
    String getStatusTextByValue(String status);
 
    /**
     * 批量添加状态
     * @param statePoolList 状态内容
     */
    boolean batchAddStatus(List<StatePool> statePoolList) throws Exception;
 
    /**
     * 批量修改状态
     * @param statePoolList 状态内容
     */
    boolean batchEditSave(List<StatePool> statePoolList) throws Exception;
 
    /**
     * 状态列表
     * @param conditionMap 查询对象
     * @param pageHelper 分页列表
     * @return 显示对象
     */
    DataGrid<OsStatusVO> gridStatus(Map<String, String> conditionMap, PageHelper pageHelper);
 
    /**
     * 使用主键获取显示对象
     * @param oid 主键
     * @return 状态的显示对象
     */
    OsStatusVO getObjectByOid(String oid);
 
    /**
     * 使用主键集合查询
     * @param oidCollection 主键集合
     * @return 状态的内容
     */
    List<OsStatusVO> selectByOidCollection(Collection<String> oidCollection);
 
    /**
     * 添加状态
     * @param statusDTO 状态的数据传输对象
     */
    boolean addSave(OsStatusDTO statusDTO) throws Exception;
 
    /**
     * 编辑状态
     * @param statusDTO 状态的数据传输对象
     */
    boolean editSave(OsStatusDTO statusDTO)throws Exception ;
 
    /**
     * 删除状态
     * @param oids 主键
     */
    boolean delete(String oids);
 
    /**
     * 状态的数据传输对象转换为数据对象
     * @param statusDTO 数据传输对象
     * @return 平台的数据对象
     */
    StatePool statusDTO2DO(OsStatusDTO statusDTO);
}