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

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

该配置

parent 8dd99b34
......@@ -274,18 +274,16 @@ public class CouponBaseUtil {
*/
public static Integer getCouponState(LocalDateTime currentTime, LocalDateTime expireAt, LocalDateTime effectAt, Integer state, Integer bindType) {
//券状态
Integer data;
int data;
if (state.equals(1)) {
if (currentTime.isAfter(expireAt)) {
if (bindType == 3 && effectAt == null) {
data = 22;
} else if (currentTime.isAfter(expireAt)) {
data = 3;
} else if (currentTime.isBefore(effectAt)) {
data = 31;
} else {
if (bindType == 3) {
data = 21;
} else {
data = state;
}
data = state;
}
} else {
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