修复订单取消/退款之后优惠券没有返还问题 (#397)

This commit is contained in:
Tyson
2020-06-08 22:09:41 +08:00
committed by GitHub
parent acb459a74b
commit a2f77152d8
4 changed files with 45 additions and 4 deletions

View File

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