田源
2023-05-09 d2570148ec3884de3af721bd99c4b7acbbdee075
Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/IBtmTypeAttributeService.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,83 @@
package com.vci.ubcs.omd.service;
import com.vci.ubcs.omd.dto.BtmTypeLinkAttributesDTO;
import com.vci.ubcs.omd.entity.BtmTypeAttribute;
import com.vci.ubcs.omd.vo.BtmTypeAttributeVO;
import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.mp.base.BaseService;
import java.util.*;
/**
 * Description:业务类型关联属性的服务
 *
 * @author LiHang
 * @date 2023/4/23
 */
public interface IBtmTypeAttributeService extends BaseService<BtmTypeAttribute> {
   /**
    * æ£€æŸ¥å±žæ€§å­˜åœ¨å¹¶æ·»åŠ 
    * @param btmTypeOid ä¸šåŠ¡ç±»åž‹ä¸»é”®
    * @param attributesDTOList é¡µé¢ä¼ è¾“对象集合
    * @param creator åˆ›å»ºäºº
    * @param now ts时间戳
    * @return ä¿å­˜çš„æ˜¾ç¤ºå¯¹è±¡
    */
   List<BtmTypeAttributeVO> checkAndInsert(String btmTypeOid, List<BtmTypeLinkAttributesDTO> attributesDTOList, String creator, Date now);
   /**
    * æ‰¹é‡æ’å…¥
    * @param records æ•°æ®å¯¹è±¡é›†åˆ
    */
   int batchInsert(List<BtmTypeAttribute> records);
   /**
    * ä¸šåŠ¡ç±»åž‹ä¸»é”®æŸ¥å±žæ€§
    * @param btmTypeOid ä¸šåŠ¡ç±»åž‹ä¸»é”®
    * @return æŸ¥è¯¢ç»“æžœ
    */
    List<BtmTypeAttributeVO> getAttributeByBtmTypeOid(String btmTypeOid);
   /**
    * æ ¹æ®ä¸šåŠ¡ç±»åž‹ä¸»é”®èŽ·å–å…³è”çš„æ‰€æœ‰å±žæ€§å¯¹è±¡
    *
    * @param oidCollection ä¸šåŠ¡ç±»åž‹ä¸»é”®é›†åˆ
    * @return æ‰€æœ‰çš„属性对象,包括系统内置属性,key是业务类型主键,value是包含的属性
    * @throws ServiceException ä¸šåŠ¡ç±»åž‹ä¸å­˜åœ¨ï¼Œå‚æ•°ä¸ºç©ºæˆ–è€…æŸ¥è¯¢å‡ºé”™æ—¶ä¼šæŠ›å‡ºå¼‚å¸¸
    */
   List<BtmTypeAttributeVO> batchListHasAttributesByBtmTypeOidCollection(Collection<String> oidCollection);
   /**
    * æ£€æŸ¥å±žæ€§å­˜åœ¨å¹¶åˆ é™¤
    * @param records ä¸»é”®é›†åˆ
    * @return å—影响的行数
    */
   int checkAndRemove(List<String> records);
   /**
    * æ£€æŸ¥å±žæ€§å­˜åœ¨å¹¶æ·»åŠ 
    * @param btmTypeOid ä¸šåŠ¡ç±»åž‹ä¸»é”®
    * @param attributesDTOList é¡µé¢ä¼ è¾“对象集合
    * @param creator åˆ›å»ºäºº
    * @param now ts时间戳
    * @return ä¿å­˜çš„æ˜¾ç¤ºå¯¹è±¡
    */
   List<BtmTypeAttributeVO> checkAndUpdate(String btmTypeOid, List<BtmTypeLinkAttributesDTO> attributesDTOList, String creator, Date now);
   /**
    * èŽ·å–ä¸šåŠ¡ç±»åž‹ä¸­çš„æŒ‡å®šå±žæ€§
    * @param id ä¸šåŠ¡ç±»åž‹çš„ä¸»é”®
    * @param attributeIdCollection å±žæ€§çš„id,若为空则获取全部
    * @return å±žæ€§çš„æ•°æ®å¯¹è±¡
    */
   List<BtmTypeAttribute> selectByBtmTypeIdAndAttributeIds(String id, Collection<String> attributeIdCollection);
   /**
    * é€šè¿‡ä¸šåŠ¡ç±»åž‹çš„è‹±æ–‡åç§°èŽ·å–å…³è”çš„å±žæ€§
    * @param idList ä¸šåŠ¡ç±»åž‹çš„è‹±æ–‡åç§°é›†åˆ
    * @return åŒ…含的属性
    */
   List<BtmTypeAttribute> selectByBtmTypeIds(List<String> idList);
}