商品模块代码提交
This commit is contained in:
@@ -58,6 +58,12 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
||||
if (ObjUtil.isNotNull(param.getSpecId())) {
|
||||
queryWrapper.like(Product::getSpecId, param.getSpecId());
|
||||
}
|
||||
if (ObjUtil.isNotNull(param.getCreateBeginTime())) {
|
||||
queryWrapper.ge(Product::getCreateTime, param.getCreateBeginTime());
|
||||
}
|
||||
if (ObjUtil.isNotNull(param.getCreateEndTime())) {
|
||||
queryWrapper.le(Product::getCreateTime, param.getCreateEndTime());
|
||||
}
|
||||
Long shopId = StpKit.USER.getLoginIdAsLong();
|
||||
queryWrapper.eq(Product::getShopId, shopId);
|
||||
queryWrapper.eq(Product::getIsDel, DeleteEnum.NORMAL.value());
|
||||
|
||||
Reference in New Issue
Block a user