From 0aa0bbdfde221a46019f90a245e40d6b57fd251b Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 11 七月 2023 19:09:03 +0800
Subject: [PATCH] 编码规则bug修复
---
Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/IBtmTypeAttributeService.java | 71 ++++++++++++++++++++++++++++++-----
1 files changed, 61 insertions(+), 10 deletions(-)
diff --git a/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/IBtmTypeAttributeService.java b/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/IBtmTypeAttributeService.java
index dabf1bb..a9a5392 100644
--- a/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/IBtmTypeAttributeService.java
+++ b/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/IBtmTypeAttributeService.java
@@ -3,10 +3,11 @@
import com.vci.ubcs.omd.dto.BtmTypeLinkAttributesDTO;
import com.vci.ubcs.omd.entity.BtmTypeAttribute;
import com.vci.ubcs.omd.vo.BtmTypeAttributeVO;
+import com.vci.ubcs.omd.vo.BtmTypeVO;
+import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.mp.base.BaseService;
-import java.util.Date;
-import java.util.List;
+import java.util.*;
/**
* Description:涓氬姟绫诲瀷鍏宠仈灞炴�х殑鏈嶅姟
@@ -22,15 +23,9 @@
* @param attributesDTOList 椤甸潰浼犺緭瀵硅薄闆嗗悎
* @param creator 鍒涘缓浜�
* @param now ts鏃堕棿鎴�
- * @return 鍙楀奖鍝嶇殑琛屾暟
+ * @return 淇濆瓨鐨勬樉绀哄璞�
*/
- int checkAndInsert(String btmTypeOid, List<BtmTypeLinkAttributesDTO> attributesDTOList, String creator, Date now);
-
- /**
- * 鎵归噺鎻掑叆
- * @param records 鏁版嵁瀵硅薄闆嗗悎
- */
- int batchInsert(List<BtmTypeAttribute> records);
+ List<BtmTypeAttributeVO> checkAndInsert(String btmTypeOid, List<BtmTypeLinkAttributesDTO> attributesDTOList, String creator, Date now);
/**
* 涓氬姟绫诲瀷涓婚敭鏌ュ睘鎬�
@@ -38,4 +33,60 @@
* @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);
+
+ /**
+ * 鑾峰彇榛樿瀛楁
+ * @param btmType 涓氬姟绫诲瀷
+ * @return 鎵ц缁撴灉
+ */
+ List<BtmTypeAttributeVO> getDefaultAttribute(BtmTypeVO btmType);
+
+ /**
+ * 鑾峰彇鎵�鏈夊瓧娈�
+ * @param btmType 涓氬姟绫诲瀷
+ * @return 鎵ц缁撴灉
+ */
+ List<BtmTypeAttributeVO> getAllAttribute(BtmTypeVO btmType);
}
--
Gitblit v1.9.3