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;
|
|
}
|