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

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

店铺券 过期逻辑

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