商品模块代码提交

This commit is contained in:
Tankaikai
2025-02-17 18:12:29 +08:00
parent 563e8d4096
commit 410c9bab0d
5 changed files with 41 additions and 5 deletions

View File

@@ -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());