feat: 零部件翻译
This commit is contained in:
+10
@@ -157,6 +157,9 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
|||||||
@Resource
|
@Resource
|
||||||
private DocumentSplitMapper documentSplitMapper;
|
private DocumentSplitMapper documentSplitMapper;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private PartNameService partNameService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: liao
|
* @Author: liao
|
||||||
* @Date: 2023/8/23 16:57
|
* @Date: 2023/8/23 16:57
|
||||||
@@ -465,6 +468,13 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
|||||||
LawsStandardization lawsStandardization = lawsStandardizationService.getById(value);
|
LawsStandardization lawsStandardization = lawsStandardizationService.getById(value);
|
||||||
resultMap.put(key, value);
|
resultMap.put(key, value);
|
||||||
resultMap.put(key + FieldCommon._DICT_TEXT, lawsStandardization.getName());
|
resultMap.put(key + FieldCommon._DICT_TEXT, lawsStandardization.getName());
|
||||||
|
} else if (FieldCommon.PART_NAME.equals(key) && StringUtils.isNotBlank(value)) {
|
||||||
|
// 如果是零部件
|
||||||
|
LambdaQueryWrapper<PartName> partNameLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
partNameLambdaQueryWrapper.in(PartName::getCode, Arrays.asList(value.split(",")));
|
||||||
|
List<PartName> partNameList = partNameService.list(partNameLambdaQueryWrapper);
|
||||||
|
resultMap.put(key, value);
|
||||||
|
resultMap.put(key + FieldCommon._DICT_TEXT, partNameList.stream().map(PartName::getName).collect(Collectors.joining(",")));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user