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);