From 951059e62e3cfde1cb01114382c9f49a8b0dc8c8 Mon Sep 17 00:00:00 2001 From: caihaohan Date: Mon, 5 Aug 2024 09:52:43 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=88=A0=E9=99=A4=E6=A0=87=E5=87=86?= =?UTF-8?q?=E4=BB=A3=E6=9B=BF=E8=A2=AB=E4=BB=A3=E6=9B=BF=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../laws/common/service/impl/LawsCommonServiceImpl.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java index 087beb9c..937f0a27 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java @@ -754,7 +754,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService { // 将更新数据库的标准体系字段设置为空 parameterMap.put(FieldCommon.STANDARD_SYSTEM, ""); // 处理新增和编辑时的代替标准、引用标准 - processReplaced(parameterMap, standardNumber, module); + processReplaced(parameterMap, standardNumber); // 获取要操作的表名 String tableName = TableNameEnum.getTableName(module); @@ -929,7 +929,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService { String standardNumber = singleStandard.getStandardNumber(); // 处理新增和编辑时的代替标准、引用标准 - processReplaced(parameterMap, standardNumber, module); + processReplaced(parameterMap, standardNumber); // 处理零部件 processPartName(parameterMap, id); @@ -1026,11 +1026,9 @@ public class LawsCommonServiceImpl implements ILawsCommonService { * @Date: 2023/9/19 11:53 * @Description: 处理新增和编辑时的代替标准、引用标准 **/ - private void processReplaced(Map parameterMap, String standardNumber, String module) { + private void processReplaced(Map parameterMap, String standardNumber) { // 代替标准 String replacedStandard = (String) parameterMap.get(FieldCommon.REPLACED_STANDARD); - // 获取标准状态 - String standardState = (String) parameterMap.get(FieldCommon.STANDARD_STATE); // 先删除已经存储的关联 lawsReplacedStandardService.removeRelation(standardNumber, 1); if (StringUtils.isNotBlank(replacedStandard)) {