Commit aa90388e by lixinyi

退回编辑修改,js文件位置修改

parent ac6fc97f
......@@ -336,6 +336,24 @@ export default [
},
],
},
{
path: "0.1.11.1",
name: "39. BranchIdentification",
label: "BranchIdentification",
tag: "BrnchId",
status: "O",
children: [
{
path: "0.1.11.1.0",
name: "40. Identification",
label: "Identification",
tag: "Id",
type: "TextInput",
status: "O",
maxLength: "35",
},
],
},
],
},
{
......
export default [
{
path: "0",
name: "Message root",
name: "1. Message root",
label: "Message root",
tag: "FICdtTrf",
status: "M",
children: [
{
path: "0.0",
name: "GroupHeader",
name: "2. GroupHeader",
label: "GroupHeader",
tag: "GrpHdr",
status: "M",
children: [
{
path: "0.0.0",
name: "MessageIdentification",
name: "3. MessageIdentification",
label: "MessageIdentification",
tag: "MsgId",
type: "TextInput",
......@@ -26,7 +26,7 @@ export default [
},
{
path: "0.0.1",
name: "CreationDateTime",
name: "4. CreationDateTime",
label: "CreationDateTime",
tag: "CreDtTm",
type: "DateTime",
......@@ -34,7 +34,7 @@ export default [
},
{
path: "0.0.2",
name: "NumberOfTransactions",
name: "5. NumberOfTransactions",
label: "NumberOfTransactions",
tag: "NbOfTxs",
type: "TextInput",
......@@ -44,14 +44,14 @@ export default [
},
{
path: "0.0.3",
name: "SettlementInformation",
name: "6. SettlementInformation",
label: "SettlementInformation",
tag: "SttlmInf",
status: "M",
children: [
{
path: "0.0.3.0",
name: "SettlementMethod",
name: "7. SettlementMethod",
label: "SettlementMethod",
tag: "SttlmMtd",
type: "TextInput",
......@@ -65,21 +65,21 @@ export default [
},
{
path: "0.1",
name: "CreditTransferTransactionInformation",
name: "8. CreditTransferTransactionInformation",
label: "CreditTransferTransactionInformation",
tag: "CdtTrfTxInf",
status: "M",
children: [
{
path: "0.1.0",
name: "PaymentIdentification",
name: "9. PaymentIdentification",
label: "PaymentIdentification",
tag: "PmtId",
status: "O",
children: [
{
path: "0.1.0.0",
name: "InstructionIdentification",
name: "10. InstructionIdentification",
label: "InstructionIdentification",
tag: "InstrId",
type: "TextInput",
......@@ -88,7 +88,7 @@ export default [
},
{
path: "0.1.0.1",
name: "EndToEndIdentification",
name: "11. EndToEndIdentification",
label: "EndToEndIdentification",
tag: "EndToEndId",
type: "TextInput",
......@@ -98,7 +98,7 @@ export default [
},
{
path: "0.1.0.2",
name: "TransactionIdentification",
name: "12. TransactionIdentification",
label: "TransactionIdentification",
tag: "TxId",
type: "TextInput",
......@@ -110,21 +110,21 @@ export default [
},
{
path: "0.1.1",
name: "PaymentTypeInformation",
name: "13. PaymentTypeInformation",
label: "PaymentTypeInformation",
tag: "PmtTpInf",
status: "M",
children: [
{
path: "0.1.1.0",
name: "CategoryPurpose",
name: "14. CategoryPurpose",
label: "CategoryPurpose",
tag: "CtgyPurp",
status: "M",
children: [
{
path: "0.1.1.0.0",
name: "Proprietary",
name: "15. Proprietary",
label: "Proprietary",
tag: "Prtry",
type: "Select#proprietary112",
......@@ -137,7 +137,7 @@ export default [
},
{
path: "0.1.2",
name: "InterbankSettlementAmount",
name: "16. InterbankSettlementAmount",
label: "InterbankSettlementAmount",
tag: "IntrBkSttlmAmt",
type: "AmountCIPS#18,5",
......@@ -145,7 +145,7 @@ export default [
},
{
path: "0.1.3",
name: "InterbankSettlementDate",
name: "17. InterbankSettlementDate",
label: "InterbankSettlementDate",
tag: "IntrBkSttlmDt",
type: "Date",
......@@ -153,7 +153,7 @@ export default [
},
{
path: "0.1.4",
name: "SettlementPriority",
name: "18. SettlementPriority",
label: "SettlementPriority",
tag: "SttlmPrty",
type: "Select#priority3Code",
......@@ -161,14 +161,14 @@ export default [
},
{
path: "0.1.5",
name: "SettlementTimeIndication",
name: "19. SettlementTimeIndication",
label: "SettlementTimeIndication",
tag: "SttlmTmIndctn",
status: "O",
children: [
{
path: "0.1.5.0",
name: "DebitDateTime",
name: "20. DebitDateTime",
label: "DebitDateTime",
tag: "DbtDtTm",
type: "DateTime",
......@@ -178,28 +178,28 @@ export default [
},
{
path: "0.1.6",
name: "InstructingAgent",
name: "21. InstructingAgent",
label: "InstructingAgent",
tag: "InstgAgt",
status: "M",
children: [
{
path: "0.1.6.0",
name: "FinancialInstitutionIdentification",
name: "22. FinancialInstitutionIdentification",
label: "FinancialInstitutionIdentification",
tag: "FinInstnId",
status: "M",
children: [
{
path: "0.1.6.0.0",
name: "ClearingSystemMemberIdentification",
name: "23. ClearingSystemMemberIdentification",
label: "ClearingSystemMemberIdentification",
tag: "ClrSysMmbId",
status: "M",
children: [
{
path: "0.1.6.0.0.0",
name: "MemberIdentification",
name: "24. MemberIdentification",
label: "MemberIdentification",
tag: "MmbId",
type: "TextInput",
......@@ -214,14 +214,14 @@ export default [
},
{
path: "0.1.6.1",
name: "BranchIdentification",
name: "25. BranchIdentification",
label: "BranchIdentification",
tag: "BrnchId",
status: "O",
children: [
{
path: "0.1.6.1.0",
name: "Identification",
name: "26. Identification",
label: "Identification",
tag: "Id",
type: "TextInput",
......@@ -234,28 +234,28 @@ export default [
},
{
path: "0.1.7",
name: "InstructedAgent",
name: "27. InstructedAgent",
label: "InstructedAgent",
tag: "InstdAgt",
status: "M",
children: [
{
path: "0.1.7.0",
name: "FinancialInstitutionIdentification",
name: "28. FinancialInstitutionIdentification",
label: "FinancialInstitutionIdentification",
tag: "FinInstnId",
status: "M",
children: [
{
path: "0.1.7.0.0",
name: "ClearingSystemMemberIdentification",
name: "29. ClearingSystemMemberIdentification",
label: "ClearingSystemMemberIdentification",
tag: "ClrSysMmbId",
status: "M",
children: [
{
path: "0.1.7.0.0.0",
name: "MemberIdentification",
name: "30. MemberIdentification",
label: "MemberIdentification",
tag: "MmbId",
type: "TextInput",
......@@ -268,14 +268,14 @@ export default [
},
{
path: "0.1.7.1",
name: "BranchIdentification",
name: "31. BranchIdentification",
label: "BranchIdentification",
tag: "BrnchId",
status: "O",
children: [
{
path: "0.1.7.1.0",
name: "Identification",
name: "32. Identification",
label: "Identification",
tag: "Id",
type: "TextInput",
......@@ -288,28 +288,28 @@ export default [
},
{
path: "0.1.8",
name: "IntermediaryAgent1",
name: "33. IntermediaryAgent1",
label: "IntermediaryAgent1",
tag: "IntrmyAgt1",
status: "O",
children: [
{
path: "0.1.8.0",
name: "FinancialInstitutionIdentification",
name: "34. FinancialInstitutionIdentification",
label: "FinancialInstitutionIdentification",
tag: "FinInstnId",
status: "M",
children: [
{
path: "0.1.8.0.0",
name: "ClearingSystemMemberIdentification",
name: "35. ClearingSystemMemberIdentification",
label: "ClearingSystemMemberIdentification",
tag: "ClrSysMmbId",
status: "M",
children: [
{
path: "0.1.8.0.0.0",
name: "MemberIdentification",
name: "36. MemberIdentification",
label: "MemberIdentification",
tag: "MmbId",
type: "TextInput",
......@@ -320,7 +320,7 @@ export default [
},
{
path: "0.1.8.0.1",
name: "Name",
name: "37. Name",
label: "Name",
tag: "Nm",
type: "TextInput",
......@@ -333,28 +333,28 @@ export default [
},
{
path: "0.1.9",
name: "IntermediaryAgent2",
name: "38. IntermediaryAgent2",
label: "IntermediaryAgent2",
tag: "IntrmyAgt2",
status: "O",
children: [
{
path: "0.1.9.0",
name: "FinancialInstitutionIdentification",
name: "39. FinancialInstitutionIdentification",
label: "FinancialInstitutionIdentification",
tag: "FinInstnId",
status: "M",
children: [
{
path: "0.1.9.0.0",
name: "ClearingSystemMemberIdentification",
name: "40. ClearingSystemMemberIdentification",
label: "ClearingSystemMemberIdentification",
tag: "ClrSysMmbId",
status: "M",
children: [
{
path: "0.1.9.0.0.0",
name: "MemberIdentification",
name: "41. MemberIdentification",
label: "MemberIdentification",
tag: "MmbId",
type: "TextInput",
......@@ -365,7 +365,7 @@ export default [
},
{
path: "0.1.9.0.1",
name: "Name",
name: "42. Name",
label: "Name",
tag: "Nm",
type: "TextInput",
......@@ -378,28 +378,28 @@ export default [
},
{
path: "0.1.10",
name: "Debtor",
name: "43. Debtor",
label: "Debtor",
tag: "Dbtr",
status: "M",
children: [
{
path: "0.1.10.0",
name: "FinancialInstitutionIdentification",
name: "44. FinancialInstitutionIdentification",
label: "FinancialInstitutionIdentification",
tag: "FinInstnId",
status: "M",
children: [
{
path: "0.1.10.0.0",
name: "ClearingSystemMemberIdentification",
name: "45. ClearingSystemMemberIdentification",
label: "ClearingSystemMemberIdentification",
tag: "ClrSysMmbId",
status: "O",
children: [
{
path: "0.1.10.0.0.0",
name: "MemberIdentification",
name: "46. MemberIdentification",
label: "MemberIdentification",
tag: "MmbId",
type: "TextInput",
......@@ -410,7 +410,7 @@ export default [
},
{
path: "0.1.10.0.1",
name: "Name",
name: "47. Name",
label: "Name",
tag: "Nm",
type: "TextInput",
......@@ -419,14 +419,14 @@ export default [
},
{
path: "0.1.10.0.2",
name: "PostalAddress",
name: "48. PostalAddress",
label: "PostalAddress",
tag: "PstlAdr",
status: "O",
children: [
{
path: "0.1.10.0.2.0",
name: "AddressLine",
name: "49. AddressLine",
label: "AddressLine",
tag: "AdrLine",
type: "TextInput",
......@@ -442,28 +442,28 @@ export default [
},
{
path: "0.1.11",
name: "DebtorAccount",
name: "50. DebtorAccount",
label: "DebtorAccount",
tag: "DbtrAcct",
status: "O",
children: [
{
path: "0.1.11.0",
name: "Identification",
name: "51. Identification",
label: "Identification",
tag: "Id",
status: "M",
children: [
{
path: "0.1.11.0.0",
name: "Other",
name: "52. Other",
label: "Other",
tag: "Othr",
status: "M",
children: [
{
path: "0.1.11.0.0.0",
name: "Identification",
name: "53. Identification",
label: "Identification",
tag: "Id",
type: "TextInput",
......@@ -478,28 +478,28 @@ export default [
},
{
path: "0.1.12",
name: "DebtorAgent",
name: "54. DebtorAgent",
label: "DebtorAgent",
tag: "DbtrAgt",
status: "M",
children: [
{
path: "0.1.12.0",
name: "FinancialInstitutionIdentification",
name: "55. FinancialInstitutionIdentification",
label: "FinancialInstitutionIdentification",
tag: "FinInstnId",
status: "M",
children: [
{
path: "0.1.12.0.0",
name: "ClearingSystemMemberIdentification",
name: "56. ClearingSystemMemberIdentification",
label: "ClearingSystemMemberIdentification",
tag: "ClrSysMmbId",
status: "O",
children: [
{
path: "0.1.12.0.0.0",
name: "MemberIdentification",
name: "57. MemberIdentification",
label: "MemberIdentification",
tag: "MmbId",
type: "TextInput",
......@@ -510,7 +510,7 @@ export default [
},
{
path: "0.1.12.0.1",
name: "Name",
name: "58. Name",
label: "Name",
tag: "Nm",
type: "TextInput",
......@@ -523,28 +523,28 @@ export default [
},
{
path: "0.1.13",
name: "CreditorAgent",
name: "59. CreditorAgent",
label: "CreditorAgent",
tag: "CdtrAgt",
status: "M",
children: [
{
path: "0.1.13.0",
name: "FinancialInstitutionIdentification",
name: "60. FinancialInstitutionIdentification",
label: "FinancialInstitutionIdentification",
tag: "FinInstnId",
status: "M",
children: [
{
path: "0.1.13.0.0",
name: "ClearingSystemMemberIdentification",
name: "61. ClearingSystemMemberIdentification",
label: "ClearingSystemMemberIdentification",
tag: "ClrSysMmbId",
status: "O",
children: [
{
path: "0.1.13.0.0.0",
name: "MemberIdentification",
name: "62. MemberIdentification",
label: "MemberIdentification",
tag: "MmbId",
type: "TextInput",
......@@ -555,7 +555,7 @@ export default [
},
{
path: "0.1.13.0.1",
name: "Name",
name: "63. Name",
label: "Name",
tag: "Nm",
type: "TextInput",
......@@ -568,28 +568,28 @@ export default [
},
{
path: "0.1.14",
name: "Creditor",
name: "64. Creditor",
label: "Creditor",
tag: "Cdtr",
status: "M",
children: [
{
path: "0.1.14.0",
name: "FinancialInstitutionIdentification",
name: "65. FinancialInstitutionIdentification",
label: "FinancialInstitutionIdentification",
tag: "FinInstnId",
status: "M",
children: [
{
path: "0.1.14.0.0",
name: "ClearingSystemMemberIdentification",
name: "66. ClearingSystemMemberIdentification",
label: "ClearingSystemMemberIdentification",
tag: "ClrSysMmbId",
status: "O",
children: [
{
path: "0.1.14.0.0.0",
name: "MemberIdentification",
name: "67. MemberIdentification",
label: "MemberIdentification",
tag: "MmbId",
type: "TextInput",
......@@ -600,7 +600,7 @@ export default [
},
{
path: "0.1.14.0.1",
name: "Name",
name: "68. Name",
label: "Name",
tag: "Nm",
type: "TextInput",
......@@ -609,14 +609,14 @@ export default [
},
{
path: "0.1.14.0.2",
name: "PostalAddress",
name: "69. PostalAddress",
label: "PostalAddress",
tag: "PstlAdr",
status: "O",
children: [
{
path: "0.1.14.0.2.0",
name: "AddressLine",
name: "70. AddressLine",
label: "AddressLine",
tag: "AdrLine",
type: "TextInput",
......@@ -632,28 +632,28 @@ export default [
},
{
path: "0.1.15",
name: "CreditorAccount",
name: "71. CreditorAccount",
label: "CreditorAccount",
tag: "CdtrAcct",
status: "O",
children: [
{
path: "0.1.15.0",
name: "Identification",
name: "72. Identification",
label: "Identification",
tag: "Id",
status: "M",
children: [
{
path: "0.1.15.0.0",
name: "Other",
name: "73. Other",
label: "Other",
tag: "Othr",
status: "M",
children: [
{
path: "0.1.15.0.0.0",
name: "Identification",
name: "74. Identification",
label: "Identification",
tag: "Id",
type: "TextInput",
......@@ -668,7 +668,7 @@ export default [
},
{
path: "0.1.16",
name: "InstructionForCreditorAgent",
name: "75. InstructionForCreditorAgent",
label: "InstructionForCreditorAgent",
tag: "InstrForCdtrAgt",
status: "O",
......@@ -676,7 +676,7 @@ export default [
children: [
{
path: "0.1.16.0",
name: "InstructionInformation",
name: "76. InstructionInformation",
label: "InstructionInformation",
tag: "InstrInf",
type: "TextInput",
......@@ -687,14 +687,14 @@ export default [
},
{
path: "0.1.17",
name: "RemittanceInformation",
name: "77. RemittanceInformation",
label: "RemittanceInformation",
tag: "RmtInf",
status: "O",
children: [
{
path: "0.1.17.0",
name: "Unstructured",
name: "78. Unstructured",
label: "Unstructured",
tag: "Ustrd",
type: "TextInput",
......@@ -706,14 +706,14 @@ export default [
},
{
path: "0.1.18",
name: "SupplementaryData",
name: "79. SupplementaryData",
label: "SupplementaryData",
tag: "SplmtryData",
status: "M",
children: [
{
path: "0.1.18.0",
name: "PlaceAndName",
name: "80. PlaceAndName",
label: "PlaceAndName",
tag: "PlcAndNm",
type: "TextInput",
......@@ -723,21 +723,21 @@ export default [
},
{
path: "0.1.18.1",
name: "Envelope",
name: "81. Envelope",
label: "Envelope",
tag: "Envlp",
status: "M",
children: [
{
path: "0.1.18.1.0",
name: "Contents",
name: "82. Contents",
label: "Contents",
tag: "Cnts",
status: "M",
children: [
{
path: "0.1.18.1.0.0",
name: "ExpectedSettlementDate",
name: "83. ExpectedSettlementDate",
label: "ExpectedSettlementDate",
tag: "XpctdSttlmDt",
type: "Date",
......@@ -745,7 +745,7 @@ export default [
},
{
path: "0.1.18.1.0.1",
name: "OrderNumber",
name: "84. OrderNumber",
label: "OrderNumber",
tag: "OrdNum",
type: "TextInput",
......@@ -754,7 +754,7 @@ export default [
},
{
path: "0.1.18.1.0.2",
name: "OrderInformation",
name: "85. OrderInformation",
label: "OrderInformation",
tag: "OrdInf",
type: "TextInput",
......@@ -763,7 +763,7 @@ export default [
},
{
path: "0.1.18.1.0.3",
name: "BusinessPhase",
name: "86. BusinessPhase",
label: "BusinessPhase",
tag: "BizPhs",
type: "Select#BizPhaseTypeCode",
......@@ -781,7 +781,7 @@ export default [
},
{
path: "1",
name: "MesgType",
name: "87. MesgType",
tag: "MesgType",
type: "HiddenInput",
status: "O",
......@@ -789,7 +789,7 @@ export default [
},
{
path: "2",
name: "MesgPriority",
name: "88. MesgPriority",
tag: "MesgPriority",
type: "HiddenInput",
status: "O",
......@@ -797,21 +797,21 @@ export default [
},
{
path: "3",
name: "OrigReceiver",
name: "89. OrigReceiver",
tag: "OrigReceiver",
type: "HiddenInput",
status: "O",
},
{
path: "4",
name: "OrigSendDate",
name: "90. OrigSendDate",
tag: "OrigSendDate",
type: "HiddenInput",
status: "O",
},
{
path: "5",
name: "MesgDirection",
name: "91. MesgDirection",
tag: "MesgDirection",
type: "HiddenInput",
status: "O",
......@@ -819,28 +819,28 @@ export default [
},
{
path: "6",
name: "MesgRefID",
name: "92. MesgRefID",
tag: "MesgRefID",
type: "HiddenInput",
status: "O",
},
{
path: "7",
name: "MesgID",
name: "93. MesgID",
tag: "MesgID",
type: "HiddenInput",
status: "O",
},
{
path: "8",
name: "cipsMsgId",
name: "94. cipsMsgId",
tag: "cipsMsgId",
type: "HiddenInput",
status: "O",
},
{
path: "9",
name: "OrigSendTime",
name: "95. OrigSendTime",
tag: "OrigSendTime",
type: "HiddenInput",
status: "O",
......
......@@ -203,18 +203,17 @@ public class CipsEditorController {
// }
if (cipsVo.getType() != null) {
try {
String xml = transfer(cipsVo.getJson());
Map<String, Object> transmap = new HashMap();
transmap.put("interface", "cips2map");
transmap.put("transaction", "cips2map");
transmap.put("cipsStr", xml);
transmap.put("cipsStr", xmlStr);
Map transres = (Map) CommonSend.send(transmap);
String transretcod = (String) transres.get("retcode");
String transretmsg = (String) transres.get("retmsg");
logger.info("cips2map结果:"+transres.toString());
Map<String, Object> xmlMaps = new HashMap<>();
if (transretcod != null && transretcod.endsWith("0000000")) {
xmlMaps = res;
xmlMaps = transres;
} else{
return null;
}
......
......@@ -92,7 +92,7 @@ public class SwiftTransferUtil {
* @param sheetName
*/
public static void generateJsTemplateFile(String sheetName) {
InputStream resourceAsStream = SwiftTransferUtil.class.getResourceAsStream("/js/CIPS.xlsx");
InputStream resourceAsStream = SwiftTransferUtil.class.getClassLoader().getResourceAsStream("cipsjs/CIPS.xlsx");
ExcelReader reader = ExcelUtil.getReader(resourceAsStream, sheetName);
List<Map<String, Object>> content = reader.readAll();
if (content.size() > 0) {
......@@ -145,7 +145,7 @@ public class SwiftTransferUtil {
message = "export default [\r\n" + message + "\r\n]";
try {
// File msgFolder = new File(System.getProperty("user.dir") + "/swift-service/src/main/resources/js");
File msgFolder = new File(System.getProperty("user.dir") + "/src/main/resources/js");
File msgFolder = new File(System.getProperty("user.dir") + "/src/main/resources/cipsjs");
File msgFile = new File(msgFolder, sheetName.replace(".", "_") + ".js");
FileWriter fileWriter = new FileWriter(msgFile);
IOUtils.write(message, fileWriter);
......@@ -260,7 +260,7 @@ public class SwiftTransferUtil {
}
public static void main(String[] args) throws Exception {
generateJsTemplateFile("cips.112.001.02");
generateJsTemplateFile("cips.111.001.02");
// generateBTCFile();
}
}
<!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.dbe64cdc.js"></script><script defer="defer" src="js/app.9f47b6c5.js"></script><script defer="defer" src="js/main.59945214.js"></script><link href="css/chunk-vendors.77489a8d.css" rel="stylesheet"><link href="css/app.ca356171.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.dbe64cdc.js"></script><script defer="defer" src="js/app.2a5cae72.js"></script><script defer="defer" src="js/main.59945214.js"></script><link href="css/chunk-vendors.77489a8d.css" rel="stylesheet"><link href="css/app.ca356171.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