|
@@ -49,7 +49,6 @@ public class CategoryLogic {
|
|
|
|
|
|
|
|
|
|
List<GoodsCategory> list = goodsCategoryService.lambdaQuery()
|
|
List<GoodsCategory> list = goodsCategoryService.lambdaQuery()
|
|
- .eq(GoodsCategory::getCompanyWechatId , currentCompanyWechat.getCurrentCompanyWechatId())
|
|
|
|
.eq(StringUtils.isNotEmpty(parentId), GoodsCategory::getParentId, parentId)
|
|
.eq(StringUtils.isNotEmpty(parentId), GoodsCategory::getParentId, parentId)
|
|
.eq(StringUtils.isEmpty(parentId), GoodsCategory::getLevel, 1)
|
|
.eq(StringUtils.isEmpty(parentId), GoodsCategory::getLevel, 1)
|
|
.like(StringUtils.isNotEmpty(name),GoodsCategory::getName,name)
|
|
.like(StringUtils.isNotEmpty(name),GoodsCategory::getName,name)
|
|
@@ -74,7 +73,6 @@ public class CategoryLogic {
|
|
.isNull(GoodsCategory::getParentId)
|
|
.isNull(GoodsCategory::getParentId)
|
|
.eq(GoodsCategory::getStatus,true)
|
|
.eq(GoodsCategory::getStatus,true)
|
|
.eq(GoodsCategory::getDel,false)
|
|
.eq(GoodsCategory::getDel,false)
|
|
- .eq(GoodsCategory::getCompanyWechatId,currentCompanyWechat.getCurrentCompanyWechatId())
|
|
|
|
.orderByAsc(GoodsCategory::getSortNum)
|
|
.orderByAsc(GoodsCategory::getSortNum)
|
|
.orderByDesc(GoodsCategory::getCreateTime)
|
|
.orderByDesc(GoodsCategory::getCreateTime)
|
|
.list();
|
|
.list();
|
|
@@ -83,7 +81,6 @@ public class CategoryLogic {
|
|
CurrentCompanyWechat currentCompanyWechat = commonLogic.getCurrentCompanyWechat(request);
|
|
CurrentCompanyWechat currentCompanyWechat = commonLogic.getCurrentCompanyWechat(request);
|
|
|
|
|
|
return goodsCategoryService.lambdaQuery()
|
|
return goodsCategoryService.lambdaQuery()
|
|
- .eq(GoodsCategory::getCompanyWechatId , currentCompanyWechat.getCurrentCompanyWechatId())
|
|
|
|
.eq(GoodsCategory::getParentId,categoryId)
|
|
.eq(GoodsCategory::getParentId,categoryId)
|
|
.eq(GoodsCategory::getStatus,true)
|
|
.eq(GoodsCategory::getStatus,true)
|
|
.eq(GoodsCategory::getDel,false)
|
|
.eq(GoodsCategory::getDel,false)
|
|
@@ -143,7 +140,6 @@ public class CategoryLogic {
|
|
}
|
|
}
|
|
|
|
|
|
return goodsService.lambdaQuery()
|
|
return goodsService.lambdaQuery()
|
|
- .eq(Goods::getCompanyWechatId , currentCompanyWechat.getCurrentCompanyWechatId())
|
|
|
|
.in(Goods::getCategoryId,categoryIds)
|
|
.in(Goods::getCategoryId,categoryIds)
|
|
.eq(Goods::getStatus,true)
|
|
.eq(Goods::getStatus,true)
|
|
.eq(Goods::getDel,false)
|
|
.eq(Goods::getDel,false)
|