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

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

店铺券 过期逻辑

parent d3f6a767
...@@ -197,7 +197,7 @@ public class GoblinOrderUtils { ...@@ -197,7 +197,7 @@ public class GoblinOrderUtils {
for (GoblinUserCouponVo vo : voList) { for (GoblinUserCouponVo vo : voList) {
if (vo.getUcouponId().equals(ucouponId)) { if (vo.getUcouponId().equals(ucouponId)) {
//判断券状态 和 触发金额 //判断券状态 和 触发金额
if ((vo.getState().equals(1)) && vo.getTriggers().compareTo(totalPrice) <= 0) { if ((vo.getState().equals(1)) && vo.getTriggers().compareTo(totalPrice) <= 0 && vo.getDuedAt().isBefore(LocalDateTime.now())) {
if (vo.getUseScope().equals("0")) { if (vo.getUseScope().equals("0")) {
if (vo.getType().equals("1")) {//代金券 if (vo.getType().equals("1")) {//代金券
returnVo.setValue(vo.getValFace()); returnVo.setValue(vo.getValFace());
......
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