Merge pull request '查询大批回盘' (#74) from dev into sit

Reviewed-on: #74
This commit was merged in pull request #74.
This commit is contained in:
wang_lei1
2021-08-09 08:53:25 +00:00
+12 -21
View File
@@ -17,7 +17,7 @@
where c.unfinished_num = 0 and c.finish_num > 0)
AND A.Customer_Id = B.Customer_Id
order by rank )
where ROWNUM <= '5')
where ROWNUM <= '1')
FOR UPDATE skip locked
</Sentence>
<Fields>DT_BEFER|</Fields>
@@ -100,15 +100,18 @@
<FlowCtrl>
<Quote name="Init_CAP01"/> <!--交易初始化-->
<Set>DT_BEFER=CALCDATE(GETDATE(),-,d,7)</Set>
<Exec func="PUB:OpenCursor" error="IGNORE">
<Exec func="PUB:ReadRecord" error="IGNORE">
<Arg name="SqlCmd" value="QryBatLst"/>
</Exec>
<If condition="~RetCod != 0">
<Set>Rsp_Cd=80</Set>
<Set>Rsp_Msg=打开游标失败</Set>
<Exec func="PUB:RollbackWork"/>
<Return/>
<If condition="~RetCod=2">
<Return/>
</If>
<ElseIf condition="~RetCod&lt;0">
<Set>Rsp_Cd=80</Set>
<Set>Rsp_Msg=查询数据库错误</Set>
<Return/>
</ElseIf>
<!--获取TOKEN-->
<Exec func="PUB:PARAM_GRP_GET" error="IGNORE">
<Arg name="ParamNam" value="CAPPARAMTER"/>
@@ -123,19 +126,7 @@
<Arg name="GrpNam" value="URL"/>
</Exec>
<Set>FIL_TOKEN_URL=$URL.P_VALUES</Set>
<While>
<Exec func="PUB:FetchCursor" error="IGNORE"/>
<If condition="~RetCod=2">
<Exec func="PUB:CloseCursor"/>
<Break/>
</If>
<ElseIf condition="~RetCod!=0">
<Set>Rsp_Cd=80</Set>
<Set>Rsp_Msg=循环游标失败</Set>
<Exec func="PUB:RollbackWork"/>
<Return/>
</ElseIf>
<Exec func="PUB:ReadRecord" error="IGNORE">
<Arg name="SqlCmd" value="QRY_CAPDSKINF_DSK_NAM"/>
</Exec>
@@ -291,7 +282,7 @@
<Delete>END_TM</Delete>
<Delete>END_DT</Delete>
<Delete>OUT_DAT</Delete>
</While>
<Set>Rsp_Cd=00</Set>
<Set>Rsp_Msg=交易成功</Set>