bugfix:对账过滤预交金
This commit is contained in:
@@ -80,6 +80,9 @@
|
||||
inner join bankbill_history b on a.PlatformTransId = b.C_YSDDH
|
||||
where b.C_JYRQ >= #{startTime}
|
||||
and b.C_JYRQ <= #{endTime}
|
||||
<if test="prepayment_code != null and prepayment_code != ''">
|
||||
and a.PayType != #{prepayment_code}
|
||||
</if>
|
||||
<if test="excludeMilitaryOperators != null and excludeMilitaryOperators.size() > 0">
|
||||
and a.HisOperCode not in
|
||||
<foreach collection="excludeMilitaryOperators" item="operator" open="(" separator="," close=")">
|
||||
@@ -120,6 +123,9 @@
|
||||
<if test="medical_insurance_code != null and medical_insurance_code != ''">
|
||||
and payType!=#{medical_insurance_code}
|
||||
</if>
|
||||
<if test="prepayment_code != null and prepayment_code != ''">
|
||||
and payType!=#{prepayment_code}
|
||||
</if>
|
||||
) a
|
||||
inner join
|
||||
(select * from bankbill_history where C_JYRQ = #{trade_date}) b
|
||||
@@ -157,6 +163,9 @@
|
||||
<if test="medical_insurance_code != null and medical_insurance_code != ''">
|
||||
and payType!=#{medical_insurance_code}
|
||||
</if>
|
||||
<if test="prepayment_code != null and prepayment_code != ''">
|
||||
and payType!=#{prepayment_code}
|
||||
</if>
|
||||
) a
|
||||
left join
|
||||
(select * from bankbill_history where C_JYRQ = #{trade_date}) b
|
||||
@@ -195,6 +204,9 @@
|
||||
<if test="medical_insurance_code != null and medical_insurance_code != ''">
|
||||
and payType!=#{medical_insurance_code}
|
||||
</if>
|
||||
<if test="prepayment_code != null and prepayment_code != ''">
|
||||
and payType!=#{prepayment_code}
|
||||
</if>
|
||||
) a
|
||||
right join
|
||||
(select * from bankbill_history where C_JYRQ = #{trade_date}) b
|
||||
|
||||
Reference in New Issue
Block a user