From c7bb59c8630c508e9b5d072f3e1526db83336a2c Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期一, 10 七月 2023 10:46:07 +0800
Subject: [PATCH] 1、查询按钮是修改判断为删除的逻辑

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeBasicSecServiceImpl.java |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeBasicSecServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeBasicSecServiceImpl.java
index 351a817..5a5262d 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeBasicSecServiceImpl.java
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeBasicSecServiceImpl.java
@@ -266,9 +266,9 @@
 			}catch (Throwable e){
 				throw new VciBaseException("寮曠敤鐮佹鐨勬椂鍊欙紝鍙傜収閰嶇疆鐨勫唴瀹圭殑鏍煎紡涓嶆纭�,",new String[0],e);
 			}
+			// 鍒ゆ柇鏄惁涓哄紩鐢ㄧ爜娈碉紝濡傛灉鏄簲鐢ㄧ爜娈电殑璇濓紝涓轰簡閫傞厤鍓嶇缁勪欢锛岃繖閲岃瀵硅〃杩涜澶勭悊涓�涓嬶紝鎸夌収浠ュ墠鐨勫弬鐓ф牸寮忚繘琛岃浆鎹�
+			codeBasicSecDO.setReferValueInfo(referConfigTOUIUiTable(codeReferConfigVO));
 			if(codeReferConfigVO.getIsPersistence()=="true"){
-				// 鍒ゆ柇鏄惁涓哄紩鐢ㄧ爜娈碉紝濡傛灉鏄簲鐢ㄧ爜娈电殑璇濓紝涓轰簡閫傞厤鍓嶇缁勪欢锛岃繖閲岃瀵硅〃杩涜澶勭悊涓�涓嬶紝鎸夌収浠ュ墠鐨勫弬鐓ф牸寮忚繘琛岃浆鎹�
-				codeBasicSecDO.setReferValueInfo(referConfigTOUIUiTable(codeReferConfigVO));
 				codeReferConfigService.insert(codeReferConfigVO);
 			}
 		}
@@ -376,10 +376,9 @@
 			resBoolean = codeBasicSecMapper.updateById(codeBasicSecDO)>0;
 			//SessionInfo sessionInfo = VciBaseUtil.getCurrentUserSessionInfo();
 			if(StringUtils.isNotBlank(codeBasicSecDO.getCodeFillSeparator())){
-				//杩欏効鐩墠闇�瑕佹敼 2023/4/24
 				DictBiz dictBiz = new DictBiz();
-				dictBiz.setCode(MdmBtmTypeConstant.CODE_BASIC_SEC);
-				dictBiz.setDictKey("codefileseparator");
+				dictBiz.setCode("codeFillSeparator");
+				dictBiz.setDictKey(codeBasicSecDO.getCodeFillSeparator());
 				dictBiz.setDictValue(codeBasicSecDO.getCodeFillSeparator());
 				//浠庡師鏉ョ殑charService锛堝彲杈撳彲閫夛級鏇存敼涓鸿皟鐢╫md涓殑鎺ュ彛鏉ュ疄鐜�
 				iDictBizClient.getCheck(dictBiz);
@@ -457,7 +456,7 @@
 	public R deleteCodeBasicSecByPrimaryKey(String oid) throws VciBaseException {
 		CodeBasicSec codeBasicSecDO = selectByOid(oid);
 		boolean isLinked = checkIsLinked(codeBasicSecDO.getPkCodeRule(), oid);
-		if (!isLinked) {
+		if (isLinked) {
 			return R.fail("缂栫爜瑙勫垯宸茶寮曠敤锛屼笉鍏佽缂栬緫鎴栧垹闄�");
 		}
 		//鎵ц鍒犻櫎鎿嶄綔

--
Gitblit v1.9.3