From 6ccc870f835efc18a7f966cf82f3106a035b0fe8 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Tue, 13 Nov 2018 19:16:41 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=B4=A6=E5=8D=95=E6=80=BB=E8=A7=88][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9][=E6=9C=AC=E6=9C=88=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/WxBillAllMapper.xml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml b/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml index 3f52e176c..ce74eee5b 100644 --- a/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml @@ -53,7 +53,12 @@ select id,merchant_id,shop_id,tenant_id,7 bill_type_value,'其他' bill_type,'' need_pay,receive_pay,pay,owe,receive_date,pay_date,expired_day,status from wx_bill_other ) bill where bill.tenant_id=#{tenantId} and bill.status=#{status} - and bill.receive_date between #{starttime} and #{endtime} + + and bill.receive_date between #{starttime} and #{endtime} + + + and date_format(bill.receive_date,'%Y-%m')=#{month} + @@ -75,8 +80,13 @@ select id,merchant_id,shop_id,tenant_id,7 bill_type_value,'其他' bill_type,'' need_pay,receive_pay,pay,owe,receive_date,pay_date,expired_day,status from wx_bill_other ) bill where bill.tenant_id=#{tenantId} and bill.status=#{status} - and bill.receive_date between #{starttime} and #{endtime} - + + and bill.receive_date between #{starttime} and #{endtime} + + + and date_format(bill.receive_date,'%Y-%m')=#{month} + +