From 4bbf0e099a4a84d7d79a0cda0a3e84216c2768e5 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Thu, 28 Feb 2019 11:34:00 +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=9F=A5=E8=AF=A2]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mallinkService/src/main/resources/mapper/WxBillAllMapper.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml b/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml index 0597d905e..aed695fb3 100644 --- a/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml @@ -42,10 +42,13 @@ ) bill left join wx_merchant m on bill.merchant_id=m.id left join wx_shop s on bill.shop_id=s.id - where date_format(bill.receive_date,'%Y-%m')=#{month} + where 1=1 and bill.tenant_id=#{tenantId} + + and date_format(bill.receive_date,'%Y-%m')=#{month} + and m.`name` like concat('%',#{merchantName},'%') and bill.bill_type_value = #{billTypeValue} and bill.`status` = #{status}