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

Commit 67e3ec15 authored by 胡佳晨's avatar 胡佳晨

券相关接口提交

parent 4d1b9375
...@@ -45,7 +45,7 @@ public class CandyCouponVo implements Serializable, Cloneable { ...@@ -45,7 +45,7 @@ public class CandyCouponVo implements Serializable, Cloneable {
/* --- --- --- CandyUserCoupon */ /* --- --- --- CandyUserCoupon */
@ApiModelProperty(value = "券id",example = "6d74a49d3d1d13f96ba09215abcc49af") @ApiModelProperty(value = "券id",example = "6d74a49d3d1d13f96ba09215abcc49af")
private String ucouponId; private String ucouponId;
@ApiModelProperty(value = "券状态[1-可用|2-无效|3-已过期|5-已使用 |21-不可用]",example = "1") @ApiModelProperty(value = "券状态[1-可用|2-无效|3-已过期 |31-未到期|5-已使用 |21-不可用]",example = "1")
private Integer state; private Integer state;
// private String bindAt;//激活时间 // private String bindAt;//激活时间
@ApiModelProperty(value = "使用时间 可null",example = "2021-09-25") @ApiModelProperty(value = "使用时间 可null",example = "2021-09-25")
......
...@@ -227,8 +227,10 @@ public class CouponBaseUtil { ...@@ -227,8 +227,10 @@ public class CouponBaseUtil {
//券状态 //券状态
Integer data; Integer data;
if (state.equals(1)) { if (state.equals(1)) {
if (currentTime.isAfter(expireAt) || currentTime.isBefore(effectAt)) { if (currentTime.isAfter(expireAt)) {
data = 3; data = 3;
}else if (currentTime.isBefore(effectAt)) {
data = 31;
} else { } else {
data = state; data = state;
} }
......
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