lihang
2023-05-04 3579af2945dd38d841a23cd340acd474bb63773a
Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/IBtmTypeService.java
@@ -4,12 +4,13 @@
import com.vci.ubcs.omd.dto.BtmTypeLinkAttributesDTO;
import com.vci.ubcs.omd.entity.BtmType;
import com.vci.ubcs.omd.entity.BtmTypeAttribute;
import com.vci.ubcs.omd.entity.ModifyAttributeInfoDO;
import com.vci.ubcs.omd.entity.ModifyAttributeInfo;
import com.vci.ubcs.omd.vo.BtmTypeVO;
import com.vci.ubcs.omd.vo.BtmTypeAttributeVO;
import com.vci.ubcs.omd.vo.LinkTypeVO;
import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.mp.base.BaseService;
import org.springblade.core.tool.api.R;
import java.util.Collection;
import java.util.Date;
@@ -170,24 +171,6 @@
    boolean checkBtmTypeUseds(Collection<String> oidCollection) throws ServiceException;
    /**
     * 添加业务类型
     * @param btmTypeDTO 业务类型数据传输对象
     * @param autoCreateTable 是否自动创建表格
     * @return 添加后的业务类型
     * @throws ServiceException 添加出错的时候会抛出异常
     */
    BtmTypeDTO addSave(BtmTypeDTO btmTypeDTO, boolean autoCreateTable) throws ServiceException;
    /**
     * 修改业务类型
     * @param btmTypeDTO 业务类型数据传输对象
     * @param autoEditTable 是否自动更新表格
     * @return 修改后的业务类型
     * @throws ServiceException 修改出错的时候会抛出异常
     */
    BtmTypeDTO editSave(BtmTypeDTO btmTypeDTO, boolean autoEditTable) throws ServiceException;
    /**
     * 删除业务类型
     * @param btmTypeVO 业务类型显示对象
     * @param autoDeleteTable 自动删除表格
@@ -209,82 +192,22 @@
     * @return 不同的属性信息
     * @throws ServiceException 参数为空或者查询出错时会抛出异常
     */
    List<ModifyAttributeInfoDO> checkDbTableSame(String pkBtmType) throws ServiceException;
    List<ModifyAttributeInfo> checkDbTableSame(String pkBtmType) throws ServiceException;
    /**
     * 获取数据库表,支持业务类型和视图
     * @param id 业务类型的名称
    * @param domain 领域名称
     * @return 数据库表的名称
     * @throws ServiceException 参数为空的时候会抛出异常
     */
    String getTableName(String id) throws ServiceException;
    /**
     * 将业务类型使用的属性的传输对象转换为数据对象
     * @param attributesDTO 属性的数据传输对象
     * @param pkBtmType 业务类型的主键
     * @param creator 创建人
     * @param now 当前时间
     * @return 属性的数据对象
     */
    BtmTypeAttribute btmTypeAttributeDTO2DO(BtmTypeLinkAttributesDTO attributesDTO, String pkBtmType, String creator, Date now);
    /**
     * 业务类型的属性显示对象转换为数据对象
     * @param thisBtmTypeHasAttributeVOList 业务类型属性显示对象
     * @return 数据对象
     */
    List<BtmTypeAttribute> btmTypeAttributeVO2DO(List<BtmTypeAttributeVO> thisBtmTypeHasAttributeVOList);
    /**
     * 批量将业务类型的数据对象转换为显示对象
     * @param attributeDOList 属性的数据对象列表
     * @return 属性的显示对象列表
     */
    List<BtmTypeAttributeVO> batchBtmTypeAttributeDO2VO(List<BtmTypeAttribute> attributeDOList);
    /**
     * 批量将业务类型的数据对象转换为显示对象
     * @param attributesDO 属性的数据对象
     * @return 属性的显示对象列表
     */
    BtmTypeAttributeVO btmTypeAttributeDO2VO(BtmTypeAttribute attributesDO);
    /**
     * 获取业务类型的指定属性
     * @param id 链接类型的英文名称
     * @param attributeIdCollection 属性的集合,如果为空则获取全部
     * @return 属性的显示对象
     */
    List<BtmTypeAttribute> listAttributeDOByIdsForBtm(String id, Collection<String> attributeIdCollection);
    /**
     * 根据业务类型的编号获取属性
     * @param id 业务类型的编号
     * @return 属性的显示对象
     */
    List<BtmTypeAttributeVO> listAttributeByBtmTypeId(String id);
    /**
     * 根据业务类型的主键获取属性
     * @param oid 业务类型的主键
     * @return 属性的显示对象
     */
    List<BtmTypeAttributeVO> listAttributeByBtmTypeOid(String oid);
    /**
     * 批量根据业务类型编号或者主键获取包含的属性
     * @param oidsOrIds 主键或者编号集合
     * @param queryById 是否使用编号查询
     * @return key是业务类型的主键或者编号,值是包含的属性的信息
     * @throws ServiceException 参数为空或者查询出错会抛出异常
     */
     List<BtmTypeAttributeVO> batchListAttributeByBtmType(Collection<String> oidsOrIds, boolean queryById) throws ServiceException;
    String getTableName(String id,String domain) throws ServiceException;
   /**
    * 新增或修改业务类型
    * @param btmTypeDTO 业务类型页面传输对象
    * @param autoCreateTable 自动创建表
    * @return 执行结果
    */
   boolean submit(BtmTypeDTO btmTypeDTO);
   R submit(BtmTypeDTO btmTypeDTO,boolean autoCreateTable);
}