瀏覽代碼

feat:测试统计当前年数据

release_toaliyun_real
xmzhao71 2 年之前
父節點
當前提交
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
WHERE
`tenant_id` = #{tenantId}
AND DATE_FORMAT( create_date, '%Y' ) = '2023'
<if test=" null != couponOrderStatus">
and `coupon_order_status` = #{couponOrderStatus}
AND `coupon_order_status` = #{couponOrderStatus}
</if>
<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>
</select>


Loading…
取消
儲存