md
This commit is contained in:
parent
1a2c5e75f7
commit
4e580bd9f4
@ -74,7 +74,7 @@
|
|||||||
<if test="applySiteCode != null and applySiteCode != ''"> and apply_site_code = #{applySiteCode}</if>
|
<if test="applySiteCode != null and applySiteCode != ''"> and apply_site_code = #{applySiteCode}</if>
|
||||||
<if test="customerCode != null and customerCode != ''"> and customer_code = #{customerCode}</if>
|
<if test="customerCode != null and customerCode != ''"> and customer_code = #{customerCode}</if>
|
||||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||||
<if test="settleBillNo != null and settleBillNo != ''"> and settle_bill_no = #{settleBillNo}</if>
|
<if test="settleBillNo != null and settleBillNo != ''"> and FIND_IN_SET(#{settleBillNo},settle_bill_no) </if>
|
||||||
<if test="settleBillName != null and settleBillName != ''"> and settle_bill_name like concat('%', #{settleBillName}, '%')</if>
|
<if test="settleBillName != null and settleBillName != ''"> and settle_bill_name like concat('%', #{settleBillName}, '%')</if>
|
||||||
<if test="applyMoney != null "> and apply_money = #{applyMoney}</if>
|
<if test="applyMoney != null "> and apply_money = #{applyMoney}</if>
|
||||||
<if test="invoiceType != null and invoiceType != ''"> and invoice_type = #{invoiceType}</if>
|
<if test="invoiceType != null and invoiceType != ''"> and invoice_type = #{invoiceType}</if>
|
||||||
@ -115,6 +115,25 @@
|
|||||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||||
|
|
||||||
|
<if test="params.billCode != null and params.billCode != ''">
|
||||||
|
|
||||||
|
AND apply_seq_no IN (
|
||||||
|
SELECT x1.apply_seq_no FROM
|
||||||
|
emis_settle_invoice_record x1,
|
||||||
|
emis_settle_bill x2
|
||||||
|
WHERE
|
||||||
|
x1.del_flag = '0'
|
||||||
|
AND x2.del_flag = '0'
|
||||||
|
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
|
||||||
|
AND exists (
|
||||||
|
select 1 from emis_settle_sub_bill b
|
||||||
|
where x2.settle_bill_no=b.settle_bill_no
|
||||||
|
and ( FIND_IN_SET(b.`bill_code`,#{params.billCode}) or b.bill_code like concat('%', #{params.billCode}, '%') )
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
</if>
|
||||||
|
|
||||||
|
|
||||||
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
|
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
|
||||||
AND apply_seq_no IN (
|
AND apply_seq_no IN (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user