Просмотр исходного кода

[日期改为自然日][修改]:日期判断24小时改为自然日判断

release_toaliyun_real
Stormeye Wu 7 лет назад
Родитель
Сommit
50f87f31ea
4 измененных файлов: 5 добавлений и 5 удалений
  1. +2
    -2
      mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml
  2. +1
    -1
      mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml
  3. +1
    -1
      mallinkService/src/main/resources/mapper/WxDateAmountRecordMapper.xml
  4. +1
    -1
      mallinkService/src/main/resources/mapper/WxOrderMapper.xml

+ 2
- 2
mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml Просмотреть файл

@@ -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>

+ 1
- 1
mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml Просмотреть файл

@@ -98,7 +98,7 @@
<if test=" null != cUserId ">
and `c_user_id` = #{cUserId}
</if>
and `create_date` between date_sub(now(),interval 1 day) and now()
and date(`create_date`) = curdate()
</where>
</select>



+ 1
- 1
mallinkService/src/main/resources/mapper/WxDateAmountRecordMapper.xml Просмотреть файл

@@ -99,7 +99,7 @@

<select id="queryprice" resultType="hashmap">
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
limit 30
</select>


+ 1
- 1
mallinkService/src/main/resources/mapper/WxOrderMapper.xml Просмотреть файл

@@ -121,7 +121,7 @@
<if test=" null != orderStatus ">
and `order_status` = #{orderStatus}
</if>
and `create_date` between date_sub(now(),interval 1 day) and now()
and date(`create_date`) = curdate()
</select>

<select id="findListOfUnpaidOrderByDate" parameterType="map" resultMap="BaseResultMap">


Загрузка…
Отмена
Сохранить