关联关系 type
This commit is contained in:
@@ -30,9 +30,10 @@ public class MkCouponGiftServiceImpl extends ServiceImpl<MkCouponGiftMapper, MkC
|
||||
private ShopCouponMapper couponMapper;
|
||||
|
||||
@Override
|
||||
public Page<MkCouponGiftDTO> getCouponGiftPage(Long couponId) {
|
||||
public Page<MkCouponGiftDTO> getCouponGiftPage(Long couponId, Integer type) {
|
||||
QueryWrapper queryWrapper = new QueryWrapper();
|
||||
queryWrapper.eq(MkCouponGift::getCouponId, couponId)
|
||||
.eq(MkCouponGift::getType, type)
|
||||
.orderBy(MkCouponGift::getId).desc();
|
||||
return pageAs(PageUtil.buildPage(), queryWrapper, MkCouponGiftDTO.class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user