微调
This commit is contained in:
@@ -1435,11 +1435,11 @@ public class PqReportServiceImpl extends ServiceImpl<PqReportMapper, PqReport> i
|
||||
DictType dictType = dictTypeService.getByCode(EX_FACTORY_DEV_TYPE);
|
||||
if (ObjectUtil.isNotNull(dictType)) {
|
||||
List<DictData> dictDataList = dictDataService.getDictDataByTypeId(dictType.getId());
|
||||
DictData targetDictData = dictDataList.stream().filter(dictData -> dictData.getCode().equals(pqDevVO.getDevType())).findFirst().orElse(null);
|
||||
DictData targetDictData = dictDataList.stream().filter(dictData -> dictData.getCode().equals(devType.getName())).findFirst().orElse(null);
|
||||
if (ObjectUtil.isNotNull(targetDictData)) {
|
||||
String name = devType.getName();
|
||||
name = name.substring(0, name.lastIndexOf(StrUtil.C_UNDERLINE));
|
||||
baseModelMap.put(prefix + BaseReportKeyEnum.DEV_TYPE.getKey() + suffix, name + "(" + targetDictData.getCode() + ")");
|
||||
name = name.substring(0, name.lastIndexOf(StrUtil.DASHED));
|
||||
baseModelMap.put(prefix + BaseReportKeyEnum.DEV_TYPE.getKey() + suffix, name + "(" + targetDictData.getValue() + ")");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user