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}