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