招行查询流水交易,因招行返回数据原因,需要新增本地总笔数汇总统计

This commit is contained in:
Alawn
2024-04-23 18:39:04 +08:00
parent 9b9d0a1fc9
commit 7cb4a7dbc7
+17
View File
@@ -80,6 +80,14 @@
</Sentence>
<Fields>ACC_NBR|RF_TRS_DAT|TRS_DAT|</Fields>
</DynSentence>
<DynSentence name="QRY_CAPCMBHIJNL_TOTCNT">
<Sentence>
SELECT COUNT(1) tot_cnt FROM CAPCMBHIJNLTMP
WHERE ACC_NBR=? AND TRS_DAT=?
</Sentence>
<Fields>ACC_NBR|TRS_DAT|</Fields>
</DynSentence>
<FlowCtrl>
<Delete>TRSP_CD</Delete>
<Delete>TRSP_MSG</Delete>
@@ -227,6 +235,15 @@
</While>
<If condition="IS_NOEQUAL_STRING($tot_cnt,0)">
<Exec func="PUB:ReadRecord" error="IGNORE">
<Arg name="SqlCmd" value="QRY_CAPCMBHIJNL_TOTCNT"/>
</Exec>
<If condition='~RetCod!=0'>
<Set>Rsp_Cd=80</Set>
<Set>Rsp_Msg=数据库错误</Set>
<Return/>
</If>
<Exec func="PUB:ExecSql" error="IGNORE">
<Arg name="SqlCmd" value="INS_CAPCMBHIJNL"/>
</Exec>