|
|
@ -405,9 +405,7 @@ public class PartServiceImpl extends ServiceImpl<PartMapper, Part> implements Pa |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (row.getCell(13) == null || getStringCellValue(row, 13).equals("")) { |
|
|
|
|
|
throw new RuntimeException("Certification cannot be empty!(line:"+ j + ")"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (row.getCell(13) != null && !getStringCellValue(row, 13).equals("")) { |
|
|
// 将由-分隔的getStringCellValue(row, 13)转换为List<String> |
|
|
// 将由-分隔的getStringCellValue(row, 13)转换为List<String> |
|
|
String[] split2 = getStringCellValue(row, 13).split("-"); |
|
|
String[] split2 = getStringCellValue(row, 13).split("-"); |
|
|
List<String> certificationNoList = new ArrayList<>(Arrays.asList(split2)); |
|
|
List<String> certificationNoList = new ArrayList<>(Arrays.asList(split2)); |
|
|
@ -450,6 +448,8 @@ public class PartServiceImpl extends ServiceImpl<PartMapper, Part> implements Pa |
|
|
externalPartPictureList.add(externalPartPicture); |
|
|
externalPartPictureList.add(externalPartPicture); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Category categoryByValue = categoryService.getCategoryByValue(task.getCategory()); |
|
|
Category categoryByValue = categoryService.getCategoryByValue(task.getCategory()); |
|
|
task.setManufacturerRequired(categoryByValue.getManufacturerRequired()); |
|
|
task.setManufacturerRequired(categoryByValue.getManufacturerRequired()); |
|
|
|