|
|
|
@@ -164,7 +164,7 @@ |
|
|
|
WHERE a.coupon_order_id = o.id |
|
|
|
AND a.tenant_id = #{tenantId} |
|
|
|
AND o.c_user_id = #{cUserId} |
|
|
|
AND a.create_time between date_sub(now(),interval 1 day) and now() |
|
|
|
AND date(a.create_time) = curdate() |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getCountByUserAndCoupon" resultType="java.lang.Integer" parameterType="hashmap"> |
|
|
|
@@ -174,7 +174,7 @@ |
|
|
|
AND a.tenant_id = #{tenantId} |
|
|
|
AND o.c_user_id = #{cUserId} |
|
|
|
AND a.coupon_id = #{couponId} |
|
|
|
AND a.create_time between date_sub(now(),interval #{dayNum} day) and now() |
|
|
|
AND date(a.create_time) between date_sub(curdate(),interval #{dayNum} day) and curdate() |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |