style: 删除标准代替被代替无用代码
This commit is contained in:
+3
-5
@@ -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<String, Object> parameterMap, String standardNumber, String module) {
|
||||
private void processReplaced(Map<String, Object> 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)) {
|
||||
|
||||
Reference in New Issue
Block a user