田源
2024-07-18 d5ebac1efe04615795c939fa6d6032b233bc4e79
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/OsEnumServiceI.java
@@ -1,5 +1,7 @@
package com.vci.web.service;
import com.vci.corba.common.PLException;
import com.vci.corba.omd.etm.EnumType;
import com.vci.dto.OsEnumDTO;
import com.vci.starter.web.exception.VciBaseException;
import com.vci.starter.web.pagemodel.DataGrid;
import com.vci.starter.web.pagemodel.PageHelper;
@@ -59,6 +61,49 @@
   List<OsEnumVO> selectAllEnum();
   /**
    * 枚举定义列表查询(带查询条件)
    * @param enumName
    * @return 枚举的显示对象
    */
   List<OsEnumVO> getEnumTypeList(String enumName) throws PLException;
   /**
    * 查看枚举的使用范围
    * @param enumName
    * @return
    * @throws PLException
    */
   List<OsEnumVO> getUsedEnumList(String enumName) throws PLException;
   /**
    * 根据枚举英文名称获取枚举类型
    * @param id
    * @return
    */
   OsEnumVO getEnumTypeById(String id) throws PLException;
   /**
    * 新增枚举类型
    * @param osEnumDTO
    * @return
    */
   boolean addEnumType(OsEnumDTO osEnumDTO) throws PLException ;
   /**
    * 修改枚举类型
    * @param osEnumDTO
    * @return
    */
   boolean updateEnumType(OsEnumDTO osEnumDTO) throws PLException ;
   /**
    * 删除枚举类型
    * @param osEnumDTOS
    * @return
    */
   boolean deleteEnumTypes(List<OsEnumDTO> osEnumDTOS) throws PLException;
   /**
    * 查询所有的枚举映射
    * @return key是枚举的英文名称
    */
@@ -73,10 +118,10 @@
   /**
    * 枚举的数据对象转换为显示对象
    * @param enumItem 数据对象
    * @param enumType 数据对象
    * @return 显示对象
    */
   OsEnumVO enumDO2VO(EnumType enumItem);
   OsEnumVO enumDO2VO(EnumType enumType);
   /**
    * 枚举明细转换为KV