bugfix:过滤军保支付对账

This commit is contained in:
Yuan
2025-11-19 11:37:49 +08:00
parent 9d3dd6c048
commit 0a344423e5
3 changed files with 29 additions and 0 deletions

View File

@@ -83,6 +83,9 @@
<if test="prepayment_code != null and prepayment_code != ''">
and a.PayType != #{prepayment_code}
</if>
<if test="military_payment_code != null and military_payment_code != ''">
and a.PayType != #{military_payment_code}
</if>
<if test="excludeMilitaryOperators != null and excludeMilitaryOperators.size() > 0">
and a.HisOperCode not in
<foreach collection="excludeMilitaryOperators" item="operator" open="(" separator="," close=")">
@@ -126,6 +129,9 @@
<if test="prepayment_code != null and prepayment_code != ''">
and payType!=#{prepayment_code}
</if>
<if test="military_payment_code != null and military_payment_code != ''">
and payType!=#{military_payment_code}
</if>
) a
inner join
(select * from bankbill_history where C_JYRQ = #{trade_date}) b
@@ -166,6 +172,9 @@
<if test="prepayment_code != null and prepayment_code != ''">
and payType!=#{prepayment_code}
</if>
<if test="military_payment_code != null and military_payment_code != ''">
and payType!=#{military_payment_code}
</if>
) a
left join
(select * from bankbill_history where C_JYRQ = #{trade_date}) b
@@ -207,6 +216,9 @@
<if test="prepayment_code != null and prepayment_code != ''">
and payType!=#{prepayment_code}
</if>
<if test="military_payment_code != null and military_payment_code != ''">
and payType!=#{military_payment_code}
</if>
) a
right join
(select * from bankbill_history where C_JYRQ = #{trade_date}) b