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 ec20e24f..e54da909 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 @@ -820,6 +820,18 @@ public class LawsCommonServiceImpl implements ILawsCommonService { } else if (FieldCommon.REFERENCE_STANDARD.equals(key)) { // 引用标准 oldValue = (String) oldDataMap.get(key + FieldCommon._DICT_TEXT); + } else if (FieldCommon.PART_NAME.equals(key)) { + // 零部件名称 + oldValue = (String) oldDataMap.get(key + FieldCommon._DICT_TEXT); + if (StringUtils.isNotBlank(value)) { + List valueList = Arrays.asList(value.split(",")); + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.in(SysDictItem::getId, valueList); + queryWrapper.orderByDesc(SysDictItem::getId); + List dictList = sysDictItemService.list(queryWrapper); + value = StringUtils.join(dictList.stream() + .map(SysDictItem::getItemText).collect(Collectors.toList()), ","); + } } else if (FieldCommon.TYPE_DICT.contains(lawsTag.getFieldShowType())) { // 字典翻译 oldValue = (String) oldDataMap.get(key + FieldCommon._DICT_TEXT);