Просмотр исходного кода

[账单总览][修改][查询]

release_toaliyun_real
gongbiao 7 лет назад
committed by Stormeye Wu
Родитель
Сommit
4e277d59fc
1 измененных файлов: 4 добавлений и 1 удалений
  1. +4
    -1
      mallinkService/src/main/resources/mapper/WxBillAllMapper.xml

+ 4
- 1
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
<if test=" null != tenantId ">
and bill.tenant_id=#{tenantId}
</if>
<if test=" null != month and ''!=month">
and date_format(bill.receive_date,'%Y-%m')=#{month}
</if>
<if test=" null != merchantName and ''!=merchantName ">and m.`name` like concat('%',#{merchantName},'%')</if>
<if test=" null != billTypeValue ">and bill.bill_type_value = #{billTypeValue}</if>
<if test=" null != status ">and bill.`status` = #{status}</if>


Загрузка…
Отмена
Сохранить