Commit a563c93e authored by panhong18943's avatar panhong18943

银企直连接口失联监控

parent 9709d057
......@@ -24,5 +24,16 @@
END;
]]></bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:query-sql><![CDATA[
BEGIN
hl_hsbc_interface_pkg.hl_hsbc_error(
p_reqsn => ${@reqsn},
p_user_id => '-1'
);
END;
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -80,8 +80,17 @@
var KEY_PATH = AuthTypeMode.getProperties("KEY_PATH");
var AUTH_CODE = AuthTypeMode.getProperties("AUTH_CODE");
var DOWN_FILEDIR = AuthTypeMode.getProperties("DOWN_FILEDIR");
try {
var sftpTool = new SftpTool(URL,USER_NAME,PORT);
var send_code = sftpTool.upload(ROOT_PATH, FilePath, new AuthTypeMode(AUTH_CODE,KEY_PATH));
} catch (e) {
var error_bm = new ModelService('hsbc.HSBC110.hsbc_get_log_id');
error_bm.update({
reqsn: reqsn
});
raise_app_error(e.message);
}
//插入日志表
//生成log_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment