From a5dd831d991af10624a5d064b0041bb6fddd1160 Mon Sep 17 00:00:00 2001 From: liao Date: Thu, 2 Nov 2023 16:01:19 +0800 Subject: [PATCH] =?UTF-8?q?delete=20=E9=9B=B6=E9=83=A8=E4=BB=B6=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/LawsCommonServiceImpl.java | 18 ------------------ 1 file changed, 18 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 47d12dae..b425a10e 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 @@ -410,14 +410,6 @@ public class LawsCommonServiceImpl implements ILawsCommonService { resultMap.put(key + FieldCommon._DICT_TEXT, StringUtils.join(fileList.stream() .map(OSSFile::getFileName).collect(Collectors.toList()), ",")); } - } else if (FieldCommon.PART_NAME.equals(key)) { - // 如果是零部件名称(存的是id,数据源为其他系统,目前用字典做代替) - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(SysDictItem::getId, value); - SysDictItem dictItem = sysDictItemService.getOne(queryWrapper); - if (dictItem != null) { - resultMap.put(key + FieldCommon._DICT_TEXT, dictItem.getItemText()); - } } } @@ -863,16 +855,6 @@ public class LawsCommonServiceImpl implements ILawsCommonService { } } } - } else if (FieldCommon.PART_NAME.equals(key)) { - // 零部件名称(单选) - oldValue = (String) oldDataMap.get(key + FieldCommon._DICT_TEXT); - if (StringUtils.isNotBlank(value)) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(SysDictItem::getDictId, lawsTag.getDictId()); - queryWrapper.eq(SysDictItem::getItemValue, value); - SysDictItem dictItem = sysDictItemService.getOne(queryWrapper); - //value = dictItem.getItemText(); // 先注释掉,后面确定好显示后再放开 - } } else if (FieldCommon.TYPE_DICT.contains(lawsTag.getFieldShowType())) { // 字典翻译 oldValue = (String) oldDataMap.get(key + FieldCommon._DICT_TEXT);