修复订单取消/退款之后优惠券没有返还问题 (#397)
This commit is contained in:
@@ -91,4 +91,10 @@ public class LitemallCouponUserService {
|
||||
example.or().andStatusEqualTo(CouponUserConstant.STATUS_USABLE).andEndTimeLessThan(LocalDateTime.now()).andDeletedEqualTo(false);
|
||||
return couponUserMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
public List<LitemallCouponUser> findByOid(Integer orderId) {
|
||||
LitemallCouponUserExample example = new LitemallCouponUserExample();
|
||||
example.or().andOrderIdEqualTo(orderId).andDeletedEqualTo(false);
|
||||
return couponUserMapper.selectByExample(example);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user