fix: 优惠券时间查询问题

This commit is contained in:
chc 2023-04-04 17:55:47 +08:00
parent a56ceca3c5
commit 81f47a7fb6

View File

@ -103,7 +103,7 @@ public class CouponSearchParams extends BasePromotionsSearchParams implements Se
} }
if (this.getStartTime() != null) { if (this.getStartTime() != null) {
queryWrapper.ge("start_time", new Date(this.getEndTime())); queryWrapper.ge("start_time", new Date(this.getStartTime()));
} }
if (this.getEndTime() != null) { if (this.getEndTime() != null) {
queryWrapper.le("end_time", new Date(this.getEndTime())); queryWrapper.le("end_time", new Date(this.getEndTime()));