md
This commit is contained in:
parent
130248d260
commit
930bd307cb
@ -134,13 +134,12 @@
|
|||||||
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
|
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
|
||||||
AND FIND_IN_SET( x2.settle_bill_no, #{settleBillNo})
|
AND FIND_IN_SET( x2.settle_bill_no, #{settleBillNo})
|
||||||
) -->
|
) -->
|
||||||
|
|
||||||
and EXISTS(
|
and EXISTS(
|
||||||
select 1 from emis_settle_bill x2,emis_settle_invoice_bill_rel x3
|
select 1 from emis_settle_invoice_bill_rel x3
|
||||||
where x2.del_flag = '0' and x3.del_flag = '0'
|
where x3.del_flag = '0'
|
||||||
and a.apply_seq_no=x3.apply_seq_no and x2.settle_bill_no=x3.settle_bill_no
|
and a.apply_seq_no=x3.apply_seq_no
|
||||||
|
AND FIND_IN_SET(x3.settle_bill_no, #{settleBillNo})
|
||||||
)
|
)
|
||||||
|
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|
||||||
@ -209,18 +208,6 @@
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
<!--
|
|
||||||
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 ( x2.salesmen = #{params.privEmpName} OR x2.payee = #{params.privEmpName} OR x2.salesmen IN ( SELECT salesmen FROM emis_salesmen_rel esr where esr.del_flag='0' and esr.bl_open='1' and now() <![CDATA[ >= ]]> esr.start_date and now() <![CDATA[ <= ]]> esr.end_date and esr.sales_ass = #{params.privEmpName} ) )
|
|
||||||
)
|
|
||||||
-->
|
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user