Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
d0adfad2
Commit
d0adfad2
authored
Feb 24, 2023
by
panhong18943
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
银企直连接口失联监控
parent
2c7d3f6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
30 deletions
+50
-30
hsbc_get_log_id.lwm
...n/webapp/WEB-INF/classes/hsbc/HSBC110/hsbc_get_log_id.lwm
+11
-0
hsbc_paying_batch_send_job.lsc
...ebapp/modules/hsbc/HSBC110/hsbc_paying_batch_send_job.lsc
+39
-30
No files found.
src/main/webapp/WEB-INF/classes/hsbc/HSBC110/hsbc_get_log_id.lwm
View file @
d0adfad2
...
@@ -24,5 +24,16 @@
...
@@ -24,5 +24,16 @@
END;
END;
]]>
</bm:query-sql>
]]>
</bm:query-sql>
</bm:operation>
</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:operations>
</bm:model>
</bm:model>
src/main/webapp/modules/hsbc/HSBC110/hsbc_paying_batch_send_job.lsc
View file @
d0adfad2
...
@@ -80,38 +80,47 @@
...
@@ -80,38 +80,47 @@
var KEY_PATH = AuthTypeMode.getProperties("KEY_PATH");
var KEY_PATH = AuthTypeMode.getProperties("KEY_PATH");
var AUTH_CODE = AuthTypeMode.getProperties("AUTH_CODE");
var AUTH_CODE = AuthTypeMode.getProperties("AUTH_CODE");
var DOWN_FILEDIR = AuthTypeMode.getProperties("DOWN_FILEDIR");
var DOWN_FILEDIR = AuthTypeMode.getProperties("DOWN_FILEDIR");
var sftpTool = new SftpTool(URL,USER_NAME,PORT);
var send_code = sftpTool.upload(ROOT_PATH, FilePath, new AuthTypeMode(AUTH_CODE,KEY_PATH));
//插入日志表
//生成log_id
var log_bm = new ModelService('hsbc.HSBC110.hsbc_get_log_id');
var res = log_bm.queryAsMap();
var arr = res.getChildren();
var log_id = arr[0].log_id;
log_bm.insert({
log_id: log_id,
interface_code:'HSBC_SEND',
reqsn:reqsn,
request:xml_content,
send_return_code:send_code
});
var send_bm = $bm('hsbc.HSBC110.upload_interface_process');
try {
if (send_code=='UPLOAD_SUCCESS'){
var sftpTool = new SftpTool(URL,USER_NAME,PORT);
//解析XML文件2个,先修改下载状态。 建议还是解析XML和修改下载状态独立吧
var send_code = sftpTool.upload(ROOT_PATH, FilePath, new AuthTypeMode(AUTH_CODE,KEY_PATH));
send_bm.update({
} catch (e) {
reqsn: reqsn,
var error_bm = new ModelService('hsbc.HSBC110.hsbc_get_log_id');
errMsg:''
error_bm.update({
});
reqsn: reqsn
}else{
});
//上传失败
raise_app_error(e.message);
send_bm.update({
reqsn: reqsn,
errMsg:send_code
});
}
}
//插入日志表
//生成log_id
var log_bm = new ModelService('hsbc.HSBC110.hsbc_get_log_id');
var res = log_bm.queryAsMap();
var arr = res.getChildren();
var log_id = arr[0].log_id;
log_bm.insert({
log_id: log_id,
interface_code:'HSBC_SEND',
reqsn:reqsn,
request:xml_content,
send_return_code:send_code
});
var send_bm = $bm('hsbc.HSBC110.upload_interface_process');
if (send_code=='UPLOAD_SUCCESS'){
//解析XML文件2个,先修改下载状态。 建议还是解析XML和修改下载状态独立吧
send_bm.update({
reqsn: reqsn,
errMsg:''
});
}else{
//上传失败
send_bm.update({
reqsn: reqsn,
errMsg:send_code
});
}
}
}
function main() {
function main() {
println('main');
println('main');
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment