xiejun
2024-09-06 1615c6851b507867f9090f8cafcb1a32d1dad6bc
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
package com.vci.web.service;
 
import com.vci.corba.common.PLException;
import com.vci.corba.omd.stm.StatePool;
import com.vci.starter.web.pagemodel.BaseResult;
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.io.File;
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 osStatusDTOS
     */
    boolean deleteStatus(List<OsStatusDTO> osStatusDTOS) throws PLException;
 
    /**
     * 状态的数据传输对象转换为数据对象
     * @param statusDTO 数据传输对象
     * @return 平台的数据对象
     */
    StatePool statusDTO2DO(OsStatusDTO statusDTO);
 
    /**
     * 导出选中的状态
     * @param exportFileName 导出的文件名
     * @param statusOids 需要导出的属性名称
     * @return
     */
    String exportStatus(String exportFileName,String statusOids,boolean flag/*控制导出的列名是否和导入模板一致*/) throws PLException;
 
    /**
     * 下载状态导入模板
     * @param exportFileName
     * @return
     * @throws PLException
     */
    String downloadStatusTemplate(String exportFileName) throws Exception;
 
    /**
     * 导入状态
     * @param file
     * @return
     */
    BaseResult importStatus(File file) throws Exception;
 
}