This commit is contained in:
hyunho 2020-12-28 04:43:01 +00:00
parent c4315b1914
commit 08240f136f
1 changed files with 2 additions and 2 deletions

View File

@ -779,8 +779,7 @@
order by d.rfdno,b.rstatus,ispast,b.pino order by d.rfdno,b.rstatus,ispast,b.pino
</select> </select>
<insert id="pay.payrfd.in" parameterClass="payrfd"> <insert id="pay.payrfd.in" parameterClass="payrfd">
delete from payrfditem where rfdno=#rfdno#; delete from payrfd where payno=#payno#;
delete from payrfd where payno=#payno# and rfdno=#rfdno#;
insert into payrfd(payno,rtext,bankname,bankno,bankowner,isowner,rstatus,ruser,rphone,rreason,fgnor,fgnob,ramt,<include refid="sql.inc"></include>) insert into payrfd(payno,rtext,bankname,bankno,bankowner,isowner,rstatus,ruser,rphone,rreason,fgnor,fgnob,ramt,<include refid="sql.inc"></include>)
select distinct #payno#,#rtext#,#bankname# select distinct #payno#,#rtext#,#bankname#
,HEX(AES_ENCRYPT(#bankno#, <include refid="sql.digest"></include>)) ,HEX(AES_ENCRYPT(#bankno#, <include refid="sql.digest"></include>))
@ -811,6 +810,7 @@
where rfdno=#rfdno# and payno=#payno# where rfdno=#rfdno# and payno=#payno#
</update> </update>
<update id="pay.payrfdcancel.up" parameterClass="hashtable"> <update id="pay.payrfdcancel.up" parameterClass="hashtable">
delete from payrfditem where rfdno=#rfdno#;
update payrfd update payrfd
set rstatus=#rstatus#,udt=now(),uno=#uno#,uip=#uip# set rstatus=#rstatus#,udt=now(),uno=#uno#,uip=#uip#
where rfdno=#rfdno# and payno=#payno# where rfdno=#rfdno# and payno=#payno#