|
|
@@ -157,7 +157,8 @@ public class BaseInfoServiceImpl implements BaseInfoService {
|
|
|
// 最小包装量
|
|
|
if (row.getCell(5) != null) {
|
|
|
row.getCell(5).setCellType(Cell.CELL_TYPE_STRING);
|
|
|
- if (null != row.getCell(5).getStringCellValue()) {
|
|
|
+ if (null != row.getCell(5).getStringCellValue()
|
|
|
+ && !row.getCell(5).getStringCellValue().trim().equals("")) {
|
|
|
product.setMinPack(Float.valueOf(row.getCell(5).getStringCellValue()));
|
|
|
}
|
|
|
}
|
|
|
@@ -505,7 +506,9 @@ public class BaseInfoServiceImpl implements BaseInfoService {
|
|
|
if (productDao.exists(id)) {
|
|
|
// 先删除匹配结果的id
|
|
|
List<ProductMatchResult> results = productMatchResultDao.findByPrid(id);
|
|
|
- productMatchResultDao.delete(results);
|
|
|
+ if (!CollectionUtils.isEmpty(results)) {
|
|
|
+ productMatchResultDao.delete(results);
|
|
|
+ }
|
|
|
productDao.delete(id);
|
|
|
}
|
|
|
}
|