对账单优化
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
<Set>Rsp_Msg=循环游标失败</Set>
|
||||
<Return/>
|
||||
</ElseIf>
|
||||
<Set>TTXN_CD=QRY_CMBRECEIPT</Set>
|
||||
<Set>TTXN_CD=QRY_CMBBILL</Set>
|
||||
|
||||
<Exec func="PUB:CallThirdComm" error="IGNORE">
|
||||
<Arg name="HTxnCd" value="$TTXN_CD" />
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<DynSentence name="QRY_CAPCMBJNLTOT_LST">
|
||||
<Sentence>
|
||||
SELECT * FROM (
|
||||
SELECT ACC_NBR,TRS_DAT FROM CAPCMBJNLTOT WHERE ACC_RPT_STS='0' AND TOT_CNT!='0' )
|
||||
SELECT ACC_NBR EAC_NBR,TRS_DAT FROM CAPCMBJNLTOT WHERE ACC_RPT_STS='0' AND TOT_CNT!='0' )
|
||||
</Sentence>
|
||||
|
||||
</DynSentence>
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
</DynSentence>
|
||||
|
||||
<Process>
|
||||
<Delete>OUT_DAT</Delete>
|
||||
<Exec func="PUB:ReadRecord" error="IGNORE">
|
||||
<Arg name="SqlCmd" value="QRY_TOKEN"/>
|
||||
</Exec>
|
||||
|
||||
@@ -777,7 +777,7 @@
|
||||
</DynSentence>
|
||||
<DynSentence name="QRYCAPTXNJNL"> <!--查询批次信息-->
|
||||
<Sentence>
|
||||
SELECT TAC_TYP,ROUT_FLG,tac_no
|
||||
SELECT TAC_TYP,ROUT_FLG,tac_no,TAC_NAM
|
||||
FROM CAPTXNJNL
|
||||
WHERE DSK_NAM=?
|
||||
AND CORG_DSK_NO=?
|
||||
@@ -907,8 +907,12 @@
|
||||
<Set>rspcod=$rspcod</Set>
|
||||
<If condition="IS_EQUAL_STRING($rspcod,A6A0587)">
|
||||
<!--账户透支 发送预警-->
|
||||
<Set>EVENT.DRW_AC_BAL=0.01</Set>
|
||||
<Set>EVENT.UDRW_AC_BAL=0.02</Set>
|
||||
<!--Set>EVENT.DRW_AC_BAL=0.01</Set>
|
||||
<Set>EVENT.UDRW_AC_BAL=0.02</Set-->
|
||||
<Set>EVENT.DSK_NO=$ODSK_NAM</Set>
|
||||
<Set>EVENT.TITLE_NAME=$TAC_NAM</Set>
|
||||
<Set>EVENT.AC_NO=$TAC_NO</Set>
|
||||
<Set>EVENT.CORG_NO=$OCORG_NO</Set>
|
||||
<Set>EVT_TYP=EVT_BALANCE_INSUFFICIENT</Set>
|
||||
<Exec func="PUB:InvokeService" error="IGNORE">
|
||||
<Arg name="ServiceName" value="PUSH_EVENT" />
|
||||
|
||||
@@ -234,6 +234,7 @@
|
||||
</If>
|
||||
|
||||
<Set>CRE_TM=GETDATETIME()</Set>
|
||||
|
||||
<!--登记明细汇总表-->
|
||||
<Exec func="PUB:InsertRecord" error="IGNORE">
|
||||
<Arg name="TblNam" value="CAPCMBJNLTOT" />
|
||||
@@ -422,7 +423,7 @@
|
||||
<Set>Rsp_Msg=$RESULTMSG</Set>
|
||||
<Return/>
|
||||
</If>
|
||||
<ElseIf condition="IS_EQUAL_STRING($RESULTCODE,DCASY02)">
|
||||
<ElseIf condition="IS_EQUAL_STRING($RESULTCODE,DCASY02,CDFD013)">
|
||||
<Set>Rsp_Msg=$RESULTMSG</Set>
|
||||
<Set>FLAG_CNT=0</Set>
|
||||
<Break/>
|
||||
@@ -698,7 +699,7 @@
|
||||
<DynSentence name="UPD_CAPCMBHIJNL">
|
||||
<Sentence>
|
||||
UPDATE CAPCMBHIJNL
|
||||
SET ACT_RPT_STS='1',ACT_FIL_NAM=?,ACT_FIL_URL=?,ACT_FIL_ID=?,ACT_ULD_TM=?
|
||||
SET ACT_RPT_STS='4',ACT_FIL_NAM=?,ACT_FIL_URL=?,ACT_FIL_ID=?,ACT_ULD_TM=?
|
||||
WHERE ACC_NBR=? AND TRS_DAT=? AND REF_NBR=?
|
||||
</Sentence>
|
||||
<Fields>ACT_FIL_NAM|ACT_FIL_URL|ACT_FIL_ID|ACT_ULD_TM|ACC_NBR|TRS_DAT|REF_NBR|</Fields>
|
||||
@@ -971,7 +972,7 @@
|
||||
<!--读取需要获取文件地址 -->
|
||||
<Exec func="PUB:OpenCursor" error="IGNORE">
|
||||
<Arg name="SqlCmd" value="QRY_CAPCMBHIJNL_INF"/>
|
||||
<Arg name="CursorName" value="CURSOR_1"/>
|
||||
<Arg name="CursorName" value="CURSOR_2"/>
|
||||
</Exec>
|
||||
<If condition="~RetCod=-1">
|
||||
<Set>Rsp_Cd=80</Set>
|
||||
@@ -980,11 +981,11 @@
|
||||
</If>
|
||||
<While>
|
||||
<Exec func="PUB:FetchCursor" error="IGNORE">
|
||||
<Arg name="CursorName" value="CURSOR_1"/>
|
||||
<Arg name="CursorName" value="CURSOR_2"/>
|
||||
</Exec>
|
||||
<If condition="~RetCod=2">
|
||||
<Exec func="PUB:CloseCursor" error="IGNORE">
|
||||
<Arg name="CursorName" value="CURSOR_1"/>
|
||||
<Arg name="CursorName" value="CURSOR_2"/>
|
||||
</Exec>
|
||||
<Break/>
|
||||
</If>
|
||||
@@ -1049,7 +1050,7 @@
|
||||
<Set>Rsp_Msg=该笔明细对账单查询异常</Set>
|
||||
<Continue/>
|
||||
</If>
|
||||
<Set>BIL_SND_TM=$TMP_TM</Set>
|
||||
<Set>BIL_SND_TM=GETDATETIME(MMDDHHMISS)</Set>
|
||||
<Set>BIL_PRT_ID=$PRINTID</Set>
|
||||
<Set>BIL_TOT_CNT=$TOTAL</Set>
|
||||
|
||||
@@ -1074,7 +1075,7 @@
|
||||
|
||||
</While>
|
||||
<Exec func="PUB:CloseCursor" error="IGNORE"> <!-- 关闭游标 -->
|
||||
<Arg name="CursorName" value="CURSOR_1"/>
|
||||
<Arg name="CursorName" value="CURSOR_2"/>
|
||||
</Exec>
|
||||
<If condition="~RetCod!=0">
|
||||
<Set>Rsp_Cd=80</Set>
|
||||
@@ -1156,7 +1157,7 @@
|
||||
<DynSentence name="UPD_CAPCMBJNLTOT">
|
||||
<Sentence>
|
||||
UPDATE CAPCMBJNLTOT
|
||||
SET BIL_STS='2'
|
||||
SET BIL_STS='4'
|
||||
WHERE ACC_NBR=? AND TRS_DAT=?
|
||||
</Sentence>
|
||||
<Fields>ACC_NBR|TRS_DAT|</Fields>
|
||||
@@ -1185,7 +1186,7 @@
|
||||
<!--读取需要获取文件地址 -->
|
||||
<Exec func="PUB:OpenCursor" error="IGNORE">
|
||||
<Arg name="SqlCmd" value="QRY_CAPCMBHIJNL_INF"/>
|
||||
<Arg name="CursorName" value="CURSOR_1"/>
|
||||
<Arg name="CursorName" value="CURSOR_2"/>
|
||||
</Exec>
|
||||
<If condition="~RetCod=-1">
|
||||
<Set>Rsp_Cd=80</Set>
|
||||
@@ -1194,11 +1195,11 @@
|
||||
</If>
|
||||
<While>
|
||||
<Exec func="PUB:FetchCursor" error="IGNORE">
|
||||
<Arg name="CursorName" value="CURSOR_1"/>
|
||||
<Arg name="CursorName" value="CURSOR_2"/>
|
||||
</Exec>
|
||||
<If condition="~RetCod=2">
|
||||
<Exec func="PUB:CloseCursor" error="IGNORE">
|
||||
<Arg name="CursorName" value="CURSOR_1"/>
|
||||
<Arg name="CursorName" value="CURSOR_2"/>
|
||||
</Exec>
|
||||
<Break/>
|
||||
</If>
|
||||
@@ -1295,7 +1296,7 @@
|
||||
|
||||
</While>
|
||||
<Exec func="PUB:CloseCursor" error="IGNORE"> <!-- 关闭游标 -->
|
||||
<Arg name="CursorName" value="CURSOR_1"/>
|
||||
<Arg name="CursorName" value="CURSOR_2"/>
|
||||
</Exec>
|
||||
<If condition="~RetCod!=0">
|
||||
<Set>Rsp_Cd=80</Set>
|
||||
|
||||
@@ -358,7 +358,7 @@
|
||||
<Set>SMS_FLAG=$SMS_FLAG</Set>
|
||||
<If condition="IS_EQUAL_STRING($SMS_FLAG,1)">
|
||||
<!--是否发送短信标志-->
|
||||
<Set>EVENT.DSK_NO=$DSK_NM</Set>
|
||||
<Set>EVENT.DSK_NO=$DSK_NAM</Set>
|
||||
<Set>EVENT.BAT_NO=$CORG_DSK_NO</Set>
|
||||
<Set>EVENT.ERR_MSG=工行通道批量代付发送接口调用异常</Set>
|
||||
<Set>EVT_TYP=EVT_BATCH_SEND_FAILURE</Set>
|
||||
|
||||
@@ -169,8 +169,8 @@
|
||||
<Set>end_date=$trs_date</Set> <!--结束时间 -->
|
||||
|
||||
|
||||
<Set>begin_date=20210825</Set> <!--TEST -->
|
||||
<Set>end_date=20211025</Set> <!--TEST -->
|
||||
<!--Set>begin_date=20210825</Set--> <!--TEST -->
|
||||
<!--Set>end_date=20211025</Set--> <!--TEST -->
|
||||
|
||||
|
||||
<Exec func="PUB:CallThirdComm" error="IGNORE">
|
||||
|
||||
Reference in New Issue
Block a user