From 03fc4cfd7abfd125b942417284999a0aea7305d9 Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期三, 15 一月 2025 21:35:07 +0800
Subject: [PATCH] 产品型号集成,类型转换,人员组织加日志,申请接口引用码段值校验

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeRuleService.java |   64 ++++++++++++++++++++++++-------
 1 files changed, 49 insertions(+), 15 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeRuleService.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeRuleService.java
index dd5694a..576d705 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeRuleService.java
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeRuleService.java
@@ -22,10 +22,14 @@
 import com.vci.ubcs.code.entity.CodeRule;
 import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO;
 import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO;
-import com.vci.ubcs.com.vci.starter.exception.VciBaseException;
+import com.vci.ubcs.starter.exception.VciBaseException;
+import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject;
+import org.springblade.core.mp.support.Query;
 import org.springblade.core.tool.api.R;
 
+import java.rmi.ServerException;
 import java.util.Collection;
+import java.util.Map;
 
 /**
  * 缂栫爜瑙勫垯 鏈嶅姟绫�
@@ -38,32 +42,39 @@
 	/**
 	 * 鑷畾涔夊垎椤�
 	 *
-	 * @param page
-	 * @param codeRule
+	 * @param query
+	 * @param condtionMap
 	 * @return
 	 */
-	IPage<CodeRuleVO> gridCodeRule(IPage<CodeRuleVO> page, CodeRuleVO codeRule);
+	IPage<CodeRuleVO> gridCodeRule(Query query, Map<String,Object> condtionMap) throws VciBaseException;
+
+	/**
+	 * 妫�鏌d缂栧彿鏄惁閲嶅
+	 * @param codeRuleDTO 褰撳墠鍒ゆ柇鏄惁閲嶅鐨勫璞�
+	 * @return 杩斿洖false琛ㄧず鏈噸澶�
+	 */
+	boolean checkCodeRuleRepeat(CodeRuleDTO codeRuleDTO);
 
 	/**
 	 * 鏍¢獙缂栫爜瑙勫垯鐨勭姸鎬佹槸鍚﹀彲浠ョ紪杈戞垨鍒犻櫎
 	 * @param lcStatus 缂栫爜瑙勫垯
 	 * @return true琛ㄧず鍙互缂栬緫鎴栧垹闄わ紝false琛ㄧず涓嶅彲浠�
 	 */
-	boolean checkEditDelStatus(String lcStatus);
+	boolean checkEditDelStatus(String lcStatus) throws VciBaseException;
 
 	/**
 	 * 澧炲姞涓绘暟鎹紪鐮佽鍒�
 	 * @param codeRuleDTO 涓绘暟鎹紪鐮佽鍒欐暟鎹紶杈撳璞�
 	 * @return 鎵ц缁撴灉
 	 */
-	boolean addSave(CodeRuleDTO codeRuleDTO) throws VciBaseException;
+	R addSave(CodeRuleDTO codeRuleDTO) throws VciBaseException;
 
 	/**
 	 * 淇敼涓绘暟鎹紪鐮佽鍒�
 	 * @param codeRuleDTO 涓绘暟鎹紪鐮佽鍒欐暟鎹紶杈撳璞�
 	 * @return 鎵ц缁撴灉
 	 */
-	boolean editSave(CodeRuleDTO codeRuleDTO) throws VciBaseException;
+	R editSave(CodeRuleDTO codeRuleDTO) throws VciBaseException;
 
 	/**
 	 * 鍒犻櫎涓绘暟鎹紪鐮佽鍒�
@@ -78,14 +89,14 @@
 	 * @param oid 缂栫爜瑙勫垯涓婚敭
 	 * @return true琛ㄧず宸茬粡浣跨敤锛宖alse琛ㄧず鏈浣跨敤
 	 */
-	boolean isAlreadyInUse(String oid);
+	boolean isAlreadyInUse(String oid) throws VciBaseException;
 
 	/**
 	 * 鏌ョ湅涓绘暟鎹紪鐮佽鍒欑殑浣跨敤鑼冨洿
 	 * @param oid 缂栫爜瑙勫垯涓婚敭
 	 * @return 涓婚搴撳垎绫讳娇鐢ㄥ埌璇ョ紪鐮佽鍒欑殑鎵�鏈夐泦鍚�
 	 */
-	Collection<CodeClassifyVO> listUseRangeInCodeClassify(String oid);
+	Collection<CodeClassifyVO> listUseRangeInCodeClassify(String oid) throws VciBaseException;
 
 	/**
 	 * 涓婚敭鑾峰彇涓绘暟鎹紪鐮佽鍒�
@@ -104,13 +115,22 @@
 	Collection<CodeRuleVO> listCodeRuleByOids(Collection<String> oidCollections) throws VciBaseException;
 
 	/**
+	 * 涓婚敭鎵归噺鑾峰彇涓绘暟鎹紪鐮佽鍒�
+	 *
+	 * @param oidCollections 涓婚敭闆嗗悎锛屼絾鏄彈鎬ц兘褰卞搷锛屽缓璁竴娆℃煡璇笉瓒呰繃10000涓�
+	 * @param hasSec         鏄惁鍖呭惈鐮佹
+	 * @return 涓绘暟鎹紪鐮佽鍒欐樉绀哄璞�
+	 * @throws VciBaseException 鏌ヨ鍑虹幇寮傚父鏃朵細鎶涘嚭
+	 */
+	Collection<CodeRuleVO> listCodeRuleByIds(Collection<String> oidCollections,boolean hasSec)throws VciBaseException ;
+
+	/**
 	 * 鍙傜収涓绘暟鎹紪鐮佽鍒欏垪琛�
-	 * @param codeRule 鏌ヨ鏉′欢
-	 * @param page 鍒嗛〉鍜屾帓搴�
+	 * @param bladeQueryObject 鏌ヨ鏉′欢
 	 * @return 涓绘暟鎹紪鐮佽鍒欐樉绀哄璞″垪琛紝鐢熸晥鐨勫唴瀹�
 	 * @throws VciBaseException 鏌ヨ鏉′欢鍜屽垎椤靛嚭閿欑殑鏃跺�欎細鎶涘嚭寮傚父
 	 */
-	IPage<CodeRuleVO> refDataGridCodeRule(IPage<CodeRuleVO> page, CodeRuleVO codeRule) throws VciBaseException;
+	IPage<CodeRuleVO> refDataGridCodeRule(BladeQueryObject bladeQueryObject) throws VciBaseException;
 
 	/**
 	 * 鍋滅敤涓庡惎鐢ㄧ紪鐮佽鍒�
@@ -118,20 +138,34 @@
 	 * @param update enable:鍚敤 disable:鍋滅敤 release:鍙戝竷
 	 * @return 鎵ц缁撴灉
 	 */
-	R updateStatus(String oid, String update);
+	R updateStatus(String oid, String update) throws VciBaseException;
 
 	/**
 	 * 鍏嬮殕缂栫爜瑙勫垯
 	 * @param codeRuleDTO 涓绘暟鎹紪鐮佽鍒欐暟鎹紶杈撳璞★紝oid鍜宼s闇�瑕佷紶杈�
 	 * @return 涓绘暟鎹紪鐮佽鍒欐樉绀哄璞�
 	 */
-	R cloneCodeRule(CodeRuleDTO codeRuleDTO);
+	R cloneCodeRule(CodeRuleDTO codeRuleDTO) throws ServerException;
 
 	/**
 	 * 缂栫爜瑙勫垯娓呯┖鎵�鏈夊凡鐢熸垚鐨勭紪鐮�
 	 * @param oid 缂栫爜瑙勫垯涓婚敭
 	 * @return 鎵ц缁撴灉
 	 */
-	R clearAllCode(String oid);
+	R clearAllCode(String oid) throws VciBaseException;
+
+	/**
+	 * 浣跨敤涓婚敭鑾峰彇缂栫爜瑙勫垯鐨勫唴瀹�
+	 * @param codeRuleOid 涓婚敭
+	 * @return 瑙勫垯鐨勬樉绀哄璞�
+	 */
+	CodeRuleVO getObjectHasSecByOid(String codeRuleOid) throws VciBaseException;
+
+	/**
+	 * 妫�鏌ョ浉浼肩紪鐮佽鍒欙紝骞惰繑鍥炲搴旂殑缁撴灉
+	 * @param oid 涓婚敭
+	 * @return 鎵ц缁撴灉
+	 */
+	R checkLikeCodeRule(String oid) throws VciBaseException;
 
 }

--
Gitblit v1.9.3