| @@ -164,7 +164,7 @@ | |||||
| WHERE a.coupon_order_id = o.id | WHERE a.coupon_order_id = o.id | ||||
| AND a.tenant_id = #{tenantId} | AND a.tenant_id = #{tenantId} | ||||
| AND o.c_user_id = #{cUserId} | 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> | ||||
| <select id="getCountByUserAndCoupon" resultType="java.lang.Integer" parameterType="hashmap"> | <select id="getCountByUserAndCoupon" resultType="java.lang.Integer" parameterType="hashmap"> | ||||
| @@ -174,7 +174,7 @@ | |||||
| AND a.tenant_id = #{tenantId} | AND a.tenant_id = #{tenantId} | ||||
| AND o.c_user_id = #{cUserId} | AND o.c_user_id = #{cUserId} | ||||
| AND a.coupon_id = #{couponId} | 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> | </select> | ||||
| </mapper> | </mapper> | ||||
| @@ -98,7 +98,7 @@ | |||||
| <if test=" null != cUserId "> | <if test=" null != cUserId "> | ||||
| and `c_user_id` = #{cUserId} | and `c_user_id` = #{cUserId} | ||||
| </if> | </if> | ||||
| and `create_date` between date_sub(now(),interval 1 day) and now() | |||||
| and date(`create_date`) = curdate() | |||||
| </where> | </where> | ||||
| </select> | </select> | ||||
| @@ -99,7 +99,7 @@ | |||||
| <select id="queryprice" resultType="hashmap"> | <select id="queryprice" resultType="hashmap"> | ||||
| select record.date,sum(record.pay_price) price | select record.date,sum(record.pay_price) price | ||||
| from (select * from wx_date_amount_record where tenant_id=#{value} and type=0 and date > date_sub(now(),INTERVAL 30 day)) record | |||||
| from (select * from wx_date_amount_record r where r.`tenant_id`=#{value} and r.`type`=0 and date(r.`date`) > date(now(),INTERVAL 30 day)) record | |||||
| group by record.date | group by record.date | ||||
| limit 30 | limit 30 | ||||
| </select> | </select> | ||||
| @@ -121,7 +121,7 @@ | |||||
| <if test=" null != orderStatus "> | <if test=" null != orderStatus "> | ||||
| and `order_status` = #{orderStatus} | and `order_status` = #{orderStatus} | ||||
| </if> | </if> | ||||
| and `create_date` between date_sub(now(),interval 1 day) and now() | |||||
| and date(`create_date`) = curdate() | |||||
| </select> | </select> | ||||
| <select id="findListOfUnpaidOrderByDate" parameterType="map" resultMap="BaseResultMap"> | <select id="findListOfUnpaidOrderByDate" parameterType="map" resultMap="BaseResultMap"> | ||||