|
|
|
@ -360,7 +360,8 @@ public class PartServiceImpl extends ServiceImpl<PartMapper, Part> implements Pa |
|
|
|
// 解析图片 |
|
|
|
if (row.getCell(13) != null && !getStringCellValue(row, 13).isEmpty()) { |
|
|
|
String[] certificationNos = getStringCellValue(row, 13).split("-"); |
|
|
|
for (String certificationNo : certificationNos) { |
|
|
|
for (int i = 0; i < certificationNos.length; i++) { |
|
|
|
String certificationNo = certificationNos[i].trim(); |
|
|
|
BasePicture basePicture = basePictureMap.get(certificationNo); |
|
|
|
if (basePicture == null) { |
|
|
|
throw new RuntimeException("Invalid Certification No: " + certificationNo + " at line: " + j); |
|
|
|
@ -368,7 +369,7 @@ public class PartServiceImpl extends ServiceImpl<PartMapper, Part> implements Pa |
|
|
|
ExternalPartPicture picture = new ExternalPartPicture(); |
|
|
|
picture.setSite(data.getSite()); |
|
|
|
picture.setPartNo(part.getPartNo()); |
|
|
|
picture.setPictureNo(certificationNos.length); |
|
|
|
picture.setPictureNo(i+1); |
|
|
|
picture.setPictureDesc(basePicture.getPictureDesc()); |
|
|
|
picture.setPictureUrl(basePicture.getPictureUrl()); |
|
|
|
picture.setPictureFileName(basePicture.getPictureFileName()); |
|
|
|
|