Commit 79ee487e by chenhuihui

添加103拦截回复191方法

parent a2a6072e
<?xml version="1.0" encoding="UTF-8"?> <?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" <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" name="dtrmod" table="dtrmod" title="Distribute Rule Module" i18nSequence="2"
ruleSequence="59"> ruleSequence="60">
<datafields name="is" column="is" description="保存报文文件流" datatype="stream" viewtype="Block"/> <datafields name="is" column="is" description="保存报文文件流" datatype="stream" viewtype="Block"/>
<modules name="dtrlst" type="dtr" list="true"/> <modules name="dtrlst" type="dtr" list="true"/>
<modules name="mps" type="mps"/> <modules name="mps" type="mps"/>
...@@ -95,4 +95,5 @@ ...@@ -95,4 +95,5 @@
<localMethods name="do_cpsQuitBy807" type="local" codeText="@0056" moduleName="dtrmod"/> <localMethods name="do_cpsQuitBy807" type="local" codeText="@0056" moduleName="dtrmod"/>
<localMethods name="do_cips901" type="local" codeText="@0057" 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_cips803" type="local" codeText="@0058" moduleName="dtrmod"/>
<localMethods name="do_reply191" type="local" codeText="@0059" moduleName="dtrmod"/>
</eibs:Module> </eibs:Module>
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
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