Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ips_oracle
Overview
Overview
Details
Activity
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
chenhui
ips_oracle
Commits
79ee487e
Commit
79ee487e
authored
Apr 18, 2024
by
chenhuihui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加103拦截回复191方法
parent
a2a6072e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
1 deletions
+49
-1
dtrmod.mt
module/dtrmod.mt
+2
-1
dtrmod.0059.script
script/dtrmod.0059.script
+47
-0
No files found.
module/dtrmod.mt
View file @
79ee487e
<?xml version="1.0" encoding="UTF-8"?>
<eibs:Module
xmi:version=
"2.0"
xmlns:xmi=
"http://www.omg.org/XMI"
xmlns:eibs=
"http://eibs.brilliance.com"
name=
"dtrmod"
table=
"dtrmod"
title=
"Distribute Rule Module"
i18nSequence=
"2"
ruleSequence=
"
59
"
>
ruleSequence=
"
60
"
>
<datafields
name=
"is"
column=
"is"
description=
"保存报文文件流"
datatype=
"stream"
viewtype=
"Block"
/>
<modules
name=
"dtrlst"
type=
"dtr"
list=
"true"
/>
<modules
name=
"mps"
type=
"mps"
/>
...
...
@@ -95,4 +95,5 @@
<localMethods
name=
"do_cpsQuitBy807"
type=
"local"
codeText=
"@0056"
moduleName=
"dtrmod"
/>
<localMethods
name=
"do_cips901"
type=
"local"
codeText=
"@0057"
moduleName=
"dtrmod"
/>
<localMethods
name=
"do_cips803"
type=
"local"
codeText=
"@0058"
moduleName=
"dtrmod"
/>
<localMethods
name=
"do_reply191"
type=
"local"
codeText=
"@0059"
moduleName=
"dtrmod"
/>
</eibs:Module>
script/dtrmod.0059.script
0 → 100644
View file @
79ee487e
String do_reply191(String reference)
{
//接受从国结发起全额到账103报文返回191报文挡板
log.info("mps record:" + $mps\dir.getValue() + " " + $mps\srcchncod.getValue());
if("<".equals($mps\dir.getValue()))
{
log.info("接收一笔从国结来的103报文.");
}
String fileName = Platform.catPath(Platform.getRootPath(), "cfg");
fileName = Platform.catPath(fileName,"rcvsndmsg.properties");
String rootpath = Platform.getPropertyValue(fileName,"rootpath");
String tmp191Path = rootpath + "data/rcvmsg/template/toiss191.sf2";
String targetfilepath = rootpath + "data/rcvmsg/template/";
String targetfilename = "iss191.sf2";
String targetfile = targetfilepath + targetfilename;
log.debug("报文模板路径:" + tmp191Path);
log.debug("报文目标路径:" + targetfile);
String content = Platform.loadContent(tmp191Path, "UTF-8");
String ownref = "BW" + Platform.format(Platform.dbCounter("MT191OriginRef"),"00000000");
content = content.replace("MT191OriginRef",ownref);
content = content.replace("MT103OriginRef",reference);
log.info("发送国结191报文20场: " + ownref );
log.info("接收国结103报文20场: " + reference );
Platform.saveContent(content, targetfile, "UTF-8");
Map data = new HashMap();
data.put("path",targetfilepath);
data.put("filenam",targetfilename);
data.put("interface","replyiss");
data.put("transaction","send");
log.debug("send data:" + data);
Map result = Platform.commonSendDEA(data);
if(!"ISS0000000".equals(result.get("retcode")))
{
log.info("自动回复191失败! " + reference );
}
else
{
log.info("自动回复191失败! " + reference );
}
return "";
}
\ No newline at end of file
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