Files
2021-01-12 22:04:24 +08:00

50 lines
1.5 KiB
XML

<?xml version="1.0" encoding='UTF-8'?>
<Root>
<Transaction code="ImportFile" log_switch="1">
<Function name="_before">
<Process>
</Process>
</Function>
<Function name="_after">
<Process>
</Process>
</Function>
<DynSentence name="DELETE_REPORTINDEX">
<Sentence>
DELETE FROM T_REPORTINDEX_TMP
</Sentence>
</DynSentence>
<FlowCtrl>
<Set>FILE_NM=/app/home/paycpu/birt/rptdat/t_reportindex_info.txt</Set>
<Set>TBL_NM=T_REPORTINDEX_TMP</Set>
<Set>FMT_NM=REPORTINDEX</Set>
<Exec func="PUB:IsExistFile" error="IGNORE">
<Arg name="FileName" value="$FILE_NM" />
</Exec>
<If condition="~RetCod!=0">
<Set>GWA.MSG_TYP=E</Set>
<Set>GWA.MSG_CD=BAT00999</Set>
</If>
<Exec func="PUB:ExecSql">
<Arg name="SqlCmd" value="DELETE_REPORTINDEX"/>
</Exec>
<Exec func="PUB:ImportToDB">
<Arg name="FormatName" value="$FMT_NM" /> <!-- 文件格式 -->
<Arg name="TableName" value="$TBL_NM" /> <!-- 目标表 -->
<Arg name="FileName" value="$FILE_NM" /> <!-- 对账文件 -->
</Exec>
<If condition="~RetCod!=0">
<Set>GWA.MSG_TYP=E</Set>
<Set>GWA.MSG_CD=BAT00099</Set>
<Return/>
</If>
<Set>GWA.MSG_TYP=N</Set>
<Set>GWA.MSG_CD=BAT00000</Set>
</FlowCtrl>
</Transaction>
</Root>