style: 消灭部分魔法值
This commit is contained in:
+2
-3
@@ -1104,8 +1104,8 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
List<Map<String, Object>> records = commonPage.getRecords();
|
||||
|
||||
// 获取表头中的文件相关类型的对象集合
|
||||
List<String> standardNos = records.stream().map(r -> r.get("standard_number").toString()).collect(Collectors.toList());
|
||||
List<LawsTag> fileHeaders = headers.stream().filter(h -> h.getFieldShowType().equals("8")).collect(Collectors.toList());
|
||||
List<String> standardNos = records.stream().map(r -> r.get(FieldCommon.STANDARD_NUMBER).toString()).collect(Collectors.toList());
|
||||
List<LawsTag> fileHeaders = headers.stream().filter(h -> h.getFieldShowType().equals(FieldShowTypeEnum.FILE_UPLOAD.getValue())).collect(Collectors.toList());
|
||||
Map<String, String> fileNameByTypeMap = fileHeaders.stream()
|
||||
.collect(Collectors.toMap(LawsTag::getDbFieldName, LawsTag::getDbFieldTxt));
|
||||
|
||||
@@ -1219,7 +1219,6 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for (OSSFile file : files) {
|
||||
OSSFile ossFile = ossFileMap.get(file.getId());
|
||||
String fileExtension = FileUtil.extName(ossFile.getFileName());
|
||||
|
||||
Reference in New Issue
Block a user