update:建行账单接入
This commit is contained in:
@@ -117,6 +117,9 @@
|
||||
<if test="military_code != null and military_code != ''">
|
||||
and payType!=#{military_code}
|
||||
</if>
|
||||
<if test="medical_insurance_code != null and medical_insurance_code != ''">
|
||||
and payType!=#{medical_insurance_code}
|
||||
</if>
|
||||
) a
|
||||
inner join
|
||||
(select * from bankbill_history where C_JYRQ = #{trade_date}) b
|
||||
@@ -151,6 +154,9 @@
|
||||
<if test="military_code != null and military_code != ''">
|
||||
and payType!=#{military_code}
|
||||
</if>
|
||||
<if test="medical_insurance_code != null and medical_insurance_code != ''">
|
||||
and payType!=#{medical_insurance_code}
|
||||
</if>
|
||||
) a
|
||||
left join
|
||||
(select * from bankbill_history where C_JYRQ = #{trade_date}) b
|
||||
@@ -186,6 +192,9 @@
|
||||
<if test="military_code != null and military_code != ''">
|
||||
and payType!=#{military_code}
|
||||
</if>
|
||||
<if test="medical_insurance_code != null and medical_insurance_code != ''">
|
||||
and payType!=#{medical_insurance_code}
|
||||
</if>
|
||||
) a
|
||||
right join
|
||||
(select * from bankbill_history where C_JYRQ = #{trade_date}) b
|
||||
@@ -428,7 +437,23 @@
|
||||
where HisOperCode = #{hisOperCode}
|
||||
and trade_date = #{trade_date}
|
||||
and PayType = #{payType}
|
||||
and payMethod = #{payMethod}
|
||||
</update>
|
||||
|
||||
<!-- 根据三方信息更新关联表记录(用于自费对账自动核销) -->
|
||||
<update id="updateJoinDateByThird" parameterType="HashMap">
|
||||
update third_join_his
|
||||
set check_result=#{check_result}
|
||||
<where>
|
||||
<if test="i_ddh!=null and i_ddh!=''">
|
||||
and I_DDH=#{i_ddh}
|
||||
</if>
|
||||
<if test="i_jylx!=null and i_jylx!=''">
|
||||
and I_JYLX=#{i_jylx}
|
||||
</if>
|
||||
<if test="trade_date!=null and trade_date!=''">
|
||||
and trade_date=#{trade_date}
|
||||
</if>
|
||||
</where>
|
||||
</update>
|
||||
|
||||
<update id="updateJoinSetActiveByZhiPiao" parameterType="HashMap">
|
||||
@@ -440,6 +465,21 @@
|
||||
and payMethod = #{payMethod}
|
||||
</update>
|
||||
|
||||
<delete id="deleteJoinDataByThird" parameterType="HashMap">
|
||||
delete from third_join_his
|
||||
<where>
|
||||
<if test="i_ddh!=null and i_ddh!=''">
|
||||
and I_DDH=#{i_ddh}
|
||||
</if>
|
||||
<if test="i_jylx!=null and i_jylx!=''">
|
||||
and I_JYLX=#{i_jylx}
|
||||
</if>
|
||||
<if test="trade_date!=null and trade_date!=''">
|
||||
and trade_date=#{trade_date}
|
||||
</if>
|
||||
</where>
|
||||
</delete>
|
||||
|
||||
<select id="findAllBankDetailNum" parameterType="HashMap" resultType="HashMap">
|
||||
select count(1) as num
|
||||
from third_join_his
|
||||
|
||||
Reference in New Issue
Block a user