Min 1 jaar geleden
bovenliggende
commit
e80f095d8c

+ 3 - 0
fhKeeper/formulahousekeeper/management-workshop/src/main/java/com/management/platform/service/impl/ProductServiceImpl.java

@@ -289,6 +289,9 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
                 product.setCompanyId(companyId);
                 product.setCategoryId(categoryId);
                 if(nameCell!=null){
+                    if(StringUtils.isEmpty(nameCell.getStringCellValue())){
+                        continue;
+                    }
                     Integer count = productMapper.selectCount(new LambdaQueryWrapper<Product>()
                             .eq(companyId != null, Product::getCompanyId, companyId)
                             .eq(!StringUtils.isEmpty( nameCell.getStringCellValue()), Product::getName,  nameCell.getStringCellValue())