From 694374bb1c6c08e3e79a65f575922e61c5c971fc Mon Sep 17 00:00:00 2001 From: xiejun <xj@2023> Date: 星期四, 15 六月 2023 10:29:57 +0800 Subject: [PATCH] 历史导入功能添加 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeRuleService.java | 84 +++++++++++++++++++++++++++++++++++++---- 1 files changed, 75 insertions(+), 9 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 f31a205..229d537 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 @@ -20,12 +20,16 @@ import com.baomidou.mybatisplus.extension.service.IService; import com.vci.ubcs.code.dto.CodeRuleDTO; import com.vci.ubcs.code.entity.CodeRule; -import com.vci.ubcs.com.vci.starter.exception.VciBaseException; import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; +import com.vci.ubcs.starter.exception.VciBaseException; +import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; +import org.springblade.core.log.exception.ServiceException; +import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; import java.util.Collection; +import java.util.Map; /** * 缂栫爜瑙勫垯 鏈嶅姟绫� @@ -38,32 +42,32 @@ /** * 鑷畾涔夊垎椤� * - * @param page - * @param plCodeRule + * @param query + * @param condtionMap * @return */ - IPage<CodeRuleVO> selectPlCodeRulePage(IPage<CodeRuleVO> page, CodeRuleVO plCodeRule); + IPage<CodeRuleVO> gridCodeRule(Query query, Map<String,Object> condtionMap) throws VciBaseException; /** * 鏍¢獙缂栫爜瑙勫垯鐨勭姸鎬佹槸鍚﹀彲浠ョ紪杈戞垨鍒犻櫎 * @param lcStatus 缂栫爜瑙勫垯 * @return true琛ㄧず鍙互缂栬緫鎴栧垹闄わ紝false琛ㄧず涓嶅彲浠� */ - boolean checkEditDelStatus(String lcStatus); + boolean checkEditDelStatus(String lcStatus) throws VciBaseException; /** * 澧炲姞涓绘暟鎹紪鐮佽鍒� * @param codeRuleDTO 涓绘暟鎹紪鐮佽鍒欐暟鎹紶杈撳璞� * @return 鎵ц缁撴灉 */ - Boolean addSave(CodeRuleDTO codeRuleDTO) throws VciBaseException; + boolean addSave(CodeRuleDTO codeRuleDTO) throws VciBaseException; /** * 淇敼涓绘暟鎹紪鐮佽鍒� * @param codeRuleDTO 涓绘暟鎹紪鐮佽鍒欐暟鎹紶杈撳璞� * @return 鎵ц缁撴灉 */ - Boolean editSave(CodeRuleDTO codeRuleDTO) throws VciBaseException; + boolean editSave(CodeRuleDTO codeRuleDTO) throws VciBaseException; /** * 鍒犻櫎涓绘暟鎹紪鐮佽鍒� @@ -78,13 +82,75 @@ * @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; + /** + * 涓婚敭鑾峰彇涓绘暟鎹紪鐮佽鍒� + * @param oid 涓婚敭 + * @return 涓绘暟鎹紪鐮佽鍒欐樉绀哄璞� + * @throws VciBaseException 鍙傛暟涓虹┖锛屾暟鎹笉瀛樺湪鏃朵細鎶涘嚭寮傚父 + */ + CodeRuleVO getObjectByOid(String oid) throws VciBaseException; + + /** + * 涓婚敭鎵归噺鑾峰彇涓绘暟鎹紪鐮佽鍒� + * @param oidCollections 涓婚敭闆嗗悎锛屼絾鏄彈鎬ц兘褰卞搷锛屽缓璁竴娆℃煡璇笉瓒呰繃10000涓� + * @return 涓绘暟鎹紪鐮佽鍒欐樉绀哄璞� + * @throws VciBaseException 鏌ヨ鍑虹幇寮傚父鏃朵細鎶涘嚭 + */ + 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 bladeQueryObject 鏌ヨ鏉′欢 + * @return 涓绘暟鎹紪鐮佽鍒欐樉绀哄璞″垪琛紝鐢熸晥鐨勫唴瀹� + * @throws VciBaseException 鏌ヨ鏉′欢鍜屽垎椤靛嚭閿欑殑鏃跺�欎細鎶涘嚭寮傚父 + */ + IPage<CodeRuleVO> refDataGridCodeRule(BladeQueryObject bladeQueryObject) throws VciBaseException; + + /** + * 鍋滅敤涓庡惎鐢ㄧ紪鐮佽鍒� + * @param oid 缂栫爜瑙勫垯涓婚敭 + * @param update enable:鍚敤 disable:鍋滅敤 release:鍙戝竷 + * @return 鎵ц缁撴灉 + */ + R updateStatus(String oid, String update) throws VciBaseException; + + /** + * 鍏嬮殕缂栫爜瑙勫垯 + * @param codeRuleDTO 涓绘暟鎹紪鐮佽鍒欐暟鎹紶杈撳璞★紝oid鍜宼s闇�瑕佷紶杈� + * @return 涓绘暟鎹紪鐮佽鍒欐樉绀哄璞� + */ + R cloneCodeRule(CodeRuleDTO codeRuleDTO) throws VciBaseException; + + /** + * 缂栫爜瑙勫垯娓呯┖鎵�鏈夊凡鐢熸垚鐨勭紪鐮� + * @param oid 缂栫爜瑙勫垯涓婚敭 + * @return 鎵ц缁撴灉 + */ + R clearAllCode(String oid) throws VciBaseException; + + /** + * 浣跨敤涓婚敭鑾峰彇缂栫爜瑙勫垯鐨勫唴瀹� + * @param codeRuleOid 涓婚敭 + * @return 瑙勫垯鐨勬樉绀哄璞� + */ + CodeRuleVO getObjectHasSecByOid(String codeRuleOid) throws VciBaseException; } -- Gitblit v1.9.3