Commit 080022e4 by 章家宝

fixbug:优惠券金额计算

1 parent 0f60137a
......@@ -64,7 +64,7 @@ public interface CouponAccountRepository extends BaseRepository<CouponAccount, L
* @param now 当前时间
* @return 优惠券列表
*/
@Query("SELECT c FROM CouponAccount c WHERE c.accountId = :accountId AND c.status = :status AND c.deleteFlag = :deleteFlag AND c.validEndTime > :now")
@Query("SELECT c FROM CouponAccount c WHERE c.accountId = :accountId AND c.status = :status AND c.deleteFlag = :deleteFlag AND c.validStartTime <= :now AND c.validEndTime > :now")
List<CouponAccount> findAvailableCoupons(
@Param("accountId") Integer accountId,
@Param("status") Integer status,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!