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

feat:测试统计当前年数据

release_toaliyun_real
xmzhao71 2 лет назад
Родитель
Сommit
47d2a750e9
1 измененных файлов: 3 добавлений и 2 удалений
  1. +3
    -2
      mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml

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

@@ -1232,11 +1232,12 @@
wx_coupon_order wx_coupon_order
WHERE WHERE
`tenant_id` = #{tenantId} `tenant_id` = #{tenantId}
AND DATE_FORMAT( create_date, '%Y' ) = '2023'
<if test=" null != couponOrderStatus"> <if test=" null != couponOrderStatus">
and `coupon_order_status` = #{couponOrderStatus}
AND `coupon_order_status` = #{couponOrderStatus}
</if> </if>
<if test=" null != specificDate"> <if test=" null != specificDate">
and DATE_FORMAT( create_date, '%Y-%m-%d' ) = DATE_FORMAT( #{specificDate}, '%Y-%m-%d' )
AND DATE_FORMAT( create_date, '%Y-%m-%d' ) = DATE_FORMAT( #{specificDate}, '%Y-%m-%d' )
</if> </if>
</select> </select>



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