¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |