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 状态内容
|
*/
|
void batchAddStatus(List<StatePool> statePoolList);
|
|
/**
|
* 批量修改状态
|
* @param statePoolList 状态内容
|
*/
|
void batchEditSave(List<StatePool> statePoolList);
|
|
/**
|
* 状态列表
|
* @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 状态的数据传输对象
|
*/
|
void addSave(OsStatusDTO statusDTO);
|
|
/**
|
* 编辑状态
|
* @param statusDTO 状态的数据传输对象
|
*/
|
void editSave(OsStatusDTO statusDTO);
|
|
/**
|
* 删除状态
|
* @param oids 主键
|
*/
|
void delete(String oids);
|
|
/**
|
* 状态的数据传输对象转换为数据对象
|
* @param statusDTO 数据传输对象
|
* @return 平台的数据对象
|
*/
|
StatePool statusDTO2DO(OsStatusDTO statusDTO);
|
}
|