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} + +