Commit 1fd7a8b5 by lixinyi

cips手工拟报发送调整,将要素map随报文一起发送给接口平台

parent 8b1c110d
......@@ -3,6 +3,7 @@ package com.brilliance.mxeditor.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.brilliance.cips.utils.MsgUtil;
import com.brilliance.mxeditor.MxTransfer;
import com.brilliance.mxeditor.config.EditorEnvConfig;
import com.brilliance.mxeditor.exception.SwiftException;
......@@ -65,10 +66,12 @@ public class CipsEditorController {
identifier = identifier.replace(".", "");
try {
String xml = transfer(cipsVo.getJson());
Map<String, Object> xmlMaps = MsgUtil.cips2Map(xml);
Map<String, Object> map = new HashMap();
map.put("interface", "cipsEdit");
map.put("transaction", "save");
map.put("xmlmsg", xml);
map.put("xmlMaps", xmlMaps);
map.put("user", loginUser);
// 1-新增报文 2-更新报文
map.put("opeType", StringUtil.isNotEmpty(opeType) ? opeType : "1");
......@@ -77,7 +80,7 @@ public class CipsEditorController {
if (retcod != null && retcod.endsWith("0000000")) {
return "1" + identifier + ".xml is saved successfully";
} else {
return "savsf2 return:" + retcod;
return "save return:" + retcod;
}
} catch (Exception e) {
logger.error(e.getMessage(), e);
......
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="favicon.ico"/><title>ISO手工拟报</title><script defer="defer" src="js/chunk-vendors.e88189ab.js"></script><script defer="defer" src="js/app.ea8b16b9.js"></script><link href="css/chunk-vendors.7c88cb4c.css" rel="stylesheet"><link href="css/app.fba01116.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but swiftiso-editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="favicon.ico"/><title>ISO手工拟报</title><script defer="defer" src="js/chunk-vendors.e88189ab.js"></script><script defer="defer" src="js/app.4f0b7632.js"></script><link href="css/chunk-vendors.7c88cb4c.css" rel="stylesheet"><link href="css/app.24dcf439.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but swiftiso-editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ 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