记得上下班打卡 | git大法好,push需谨慎

Commit ca2f0db7 authored by 胡佳晨's avatar 胡佳晨

店铺券 过期逻辑

parent a4702c9a
...@@ -194,8 +194,9 @@ public class GoblinOrderUtils { ...@@ -194,8 +194,9 @@ public class GoblinOrderUtils {
GoblinUseResultVo returnVo = GoblinUseResultVo.getNew(); GoblinUseResultVo returnVo = GoblinUseResultVo.getNew();
returnVo.setValue(BigDecimal.ZERO); returnVo.setValue(BigDecimal.ZERO);
returnVo.setCouType("-1"); returnVo.setCouType("-1");
LocalDateTime now = LocalDateTime.now();
for (GoblinUserCouponVo vo : voList) { for (GoblinUserCouponVo vo : voList) {
if (vo.getUcouponId().equals(ucouponId) && vo.getDuedAt().isAfter(LocalDateTime.now())) { if (vo.getUcouponId().equals(ucouponId) && vo.getDuedAt().isAfter(now)) {
//判断券状态 和 触发金额 //判断券状态 和 触发金额
if ((vo.getState().equals(1)) && vo.getTriggers().compareTo(totalPrice) <= 0) { if ((vo.getState().equals(1)) && vo.getTriggers().compareTo(totalPrice) <= 0) {
if (vo.getUseScope().equals("0")) { if (vo.getUseScope().equals("0")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment