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
3b9a3a68
Commit
3b9a3a68
authored
May 31, 2024
by
panhong18943
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
汇丰银企直连优化
parent
2a52cf52
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
28 deletions
+35
-28
hsbc_batch_temp.lwm
...n/webapp/WEB-INF/classes/hsbc/HSBC110/hsbc_batch_temp.lwm
+1
-0
hsbc_paying_batch_send_job.lsc
...ebapp/modules/hsbc/HSBC110/hsbc_paying_batch_send_job.lsc
+34
-28
No files found.
src/main/webapp/WEB-INF/classes/hsbc/HSBC110/hsbc_batch_temp.lwm
View file @
3b9a3a68
...
...
@@ -34,6 +34,7 @@
select t2.reqsn
from hl_hsbc_paying_batch t2
where t2.status = 'SEND_MID'
and t2.errcode is null
order by 1
]]>
</bm:query-sql>
</bm:operation>
...
...
src/main/webapp/modules/hsbc/HSBC110/hsbc_paying_batch_send_job.lsc
View file @
3b9a3a68
...
...
@@ -26,6 +26,8 @@
tranfer_dir.mkdirs();//创建文件夹
}
var send_flag;
function batch_send(reqsn) {
var fileName = reqsn;
...
...
@@ -81,17 +83,20 @@
var AUTH_CODE = AuthTypeMode.getProperties("AUTH_CODE");
var DOWN_FILEDIR = AuthTypeMode.getProperties("DOWN_FILEDIR");
send_flag = 'N';
try {
var sftpTool = new SftpTool(URL,USER_NAME,PORT);
var send_code = sftpTool.upload(ROOT_PATH, FilePath, new AuthTypeMode(AUTH_CODE,KEY_PATH));
send_flag = 'Y';
} catch (e) {
var error_bm = new ModelService('hsbc.HSBC110.hsbc_get_log_id');
error_bm.update({
reqsn: reqsn
});
raise_app_error(e.message);
var logger = $logger("server-script");
logger.severe('上传失败' + e);
}
if (send_flag == 'Y' && send_code=='UPLOAD_SUCCESS') {
//插入日志表
//生成log_id
var log_bm = new ModelService('hsbc.HSBC110.hsbc_get_log_id');
...
...
@@ -122,6 +127,7 @@
});
}
}
}
function main() {
println('main');
var bm = new ModelService('hsbc.HSBC110.hsbc_batch_temp');
...
...
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