md
This commit is contained in:
parent
a8415eef4f
commit
099d2e199d
@ -117,15 +117,15 @@
|
||||
|
||||
|
||||
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
|
||||
and settle_bill_no in(
|
||||
select bill_no from emis_settle_sub_bill b where del_flag='0'
|
||||
and (
|
||||
b.salesmen=#{params.privEmpName}
|
||||
or b.payee=#{params.privEmpName}
|
||||
or b.salesmen in(
|
||||
select salesmen from emis_salesmen_rel where sales_ass=#{params.privEmpName}
|
||||
)
|
||||
)
|
||||
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 WHERE sales_ass = #{params.privEmpName} ) )
|
||||
)
|
||||
</if>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user