Commit f33c7e29 authored by 赵啸非's avatar 赵啸非

修改产品分类与公司查询

parent bb761626
...@@ -57,7 +57,7 @@ public class ProductServiceImpl extends AbstractCRUDCacheServiceImpl<ProductDao, ...@@ -57,7 +57,7 @@ public class ProductServiceImpl extends AbstractCRUDCacheServiceImpl<ProductDao,
public Result<ProductEntity> find(ProductEntity entity, PageInfo pageInfo, Context context) throws AppException { public Result<ProductEntity> find(ProductEntity entity, PageInfo pageInfo, Context context) throws AppException {
Result<ProductEntity> productEntityResult = new Result<>(); Result<ProductEntity> productEntityResult = new Result<>();
if (ObjectUtils.isEmpty(entity.getCategoryId()) && ObjectUtils.isEmpty(entity.getCompanyId())) { if (ObjectUtils.isEmpty(entity.getCategoryId()) && ObjectUtils.isEmpty(entity.getCompanyId())) {
return super.find(entity, pageInfo, context); return this.find(entity, pageInfo, context);
} else { } else {
//针对不同查询返回不同结果集 //针对不同查询返回不同结果集
if (!ObjectUtils.isEmpty(entity.getCategoryId()) && ObjectUtils.isEmpty(entity.getCompanyId())) { if (!ObjectUtils.isEmpty(entity.getCategoryId()) && ObjectUtils.isEmpty(entity.getCompanyId())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment