Commit 4a54d03d by lixinyi

009、054、002、029报文检核调整

parent 93e1a0c2
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
import axios from 'axios' import axios from 'axios'
const service = axios.create({ const service = axios.create({
baseURL: '/swift-editor-1.0.0/swift', //代理 // baseURL: '/swift-editor-1.0.0/swift', //代理
// baseURL: '/swift-editor/swift', //本地用这个 baseURL: '/swift-editor/swift', //本地用这个
timeout: 50000 // request timeout timeout: 50000 // request timeout
}) })
......
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
> >
</el-input> </el-input>
<span v-if="showSpan" class="add-btn" @click="generate">+</span> <span v-if="showSpan" class="add-btn" @click="generate">+</span>
<!-- 搜索账户和地址 -->
<span v-if="ifaccount" class="search-btn" @click="getbic">
搜索
</span>
</div> </div>
</template> </template>
...@@ -25,6 +29,7 @@ export default { ...@@ -25,6 +29,7 @@ export default {
active: false, active: false,
showSpan: false, showSpan: false,
bizMsgIdr: "", bizMsgIdr: "",
ifaccount: false,
}; };
}, },
methods: { methods: {
...@@ -87,6 +92,38 @@ export default { ...@@ -87,6 +92,38 @@ export default {
} }
); );
}, },
// 获取弹框表格数据
async getbic() {
// let params = "";
// if("bicfi" === this.dataModel.tag){
// params ={
// biccod: this.dataModel.value,
// bicnam: "",
// };
// }else if("bicfi" === this.dataModel.tag){
// params = {
// biccod: "",
// bicnam: this.dataModel.value,
// };
// }
// let res = await Api.post('/getBic', params);
// if (res.respCode == SUCCESS) {
// //etyDialog为弹窗
// this.root.$refs['etyDialog'].show = true;
// this.root.promptData.data = res.data.ptaInfos;
// this.root.promptData.type = type;
// }
// },
// // 选中弹框表格的行数据
// async selectGridEtyPromptData(row) {
// let params = {
// ...row,
// };
// let res = await Api.post('/service/ptspta/fetch', params);
// if (res.respCode == SUCCESS) {
// this.$set(this.model.bcdgrp, row.role.toLowerCase(), res.data);
// }
},
}, },
mounted() { mounted() {
if ("CHBHHKHHXXX"===this.dataModel.headBic) { if ("CHBHHKHHXXX"===this.dataModel.headBic) {
...@@ -142,7 +179,7 @@ export default { ...@@ -142,7 +179,7 @@ export default {
if (id != null || id != undefined) { if (id != null || id != undefined) {
this.dataModel.defaultValue = this.generateId(id); this.dataModel.defaultValue = this.generateId(id);
} else { } else {
id = this.generateRandomString(21); id = this.generateRandomString(16);//适应后端改为16
this.dataModel.defaultValue = this.generateId(id); this.dataModel.defaultValue = this.generateId(id);
window.sessionStorage.setItem("id", id); window.sessionStorage.setItem("id", id);
} }
...@@ -169,6 +206,9 @@ export default { ...@@ -169,6 +206,9 @@ export default {
this.active = false; this.active = false;
} }
} }
if("bicfi" === this.dataModel.tag){
this.ifaccount = true;
}
this.disabled = this.dataModel.unable || this.dataModel.disabled; this.disabled = this.dataModel.unable || this.dataModel.disabled;
}, },
...@@ -211,4 +251,17 @@ export default { ...@@ -211,4 +251,17 @@ export default {
border-radius: 50%; border-radius: 50%;
cursor: pointer; cursor: pointer;
} }
.search-btn {
display: inline-block;
width: 40px;
height: 30px;
line-height: 30px;
text-align: center;
background-color: #409EFF;
color: #fff;
border-radius: 10%;
cursor: pointer;
}
</style> </style>
\ No newline at end of file
...@@ -213,6 +213,7 @@ function CBPR_Case_Identification_FormalRule(obj) { ...@@ -213,6 +213,7 @@ function CBPR_Case_Identification_FormalRule(obj) {
"<br/>- The string of 16 characters cannot contain “//”"; "<br/>- The string of 16 characters cannot contain “//”";
if (isNotEmpty(obj)) { if (isNotEmpty(obj)) {
let id = obj.id; let id = obj.id;
const position = " Cancellation Identification";
if (isNotEmpty(id)) { if (isNotEmpty(id)) {
if (id.startsWith('/') || id.endsWith('/') || id.length != 16 || id.indexOf('//') >= 0) { if (id.startsWith('/') || id.endsWith('/') || id.length != 16 || id.indexOf('//') >= 0) {
message(position, msg); message(position, msg);
......
...@@ -30,12 +30,16 @@ public class MxTransfer { ...@@ -30,12 +30,16 @@ public class MxTransfer {
} }
} }
gsonMaps.remove("appHdr"); gsonMaps.remove("appHdr");
if (gsonMaps.get("cdtTrfTxInf") != null) { List<String> list = new ArrayList<>(Arrays.asList("cdtTrfTxInf", "txInfAndSts","cxlDtls","txInfAndSts"));
JSONObject jsonObject = (JSONObject) gsonMaps.get("cdtTrfTxInf"); //最大数量大于1的节点需要读其子节点
for(String s: list) {
if (gsonMaps.get(s) != null) {
JSONObject jsonObject = (JSONObject) gsonMaps.get(s);
for (String key : jsonObject.keySet()) { for (String key : jsonObject.keySet()) {
gsonMaps.put(key, jsonObject.get(key)); gsonMaps.put(key, jsonObject.get(key));
} }
// gsonMaps.remove("cdtTrfTxInf"); // gsonMaps.remove(s);
}
} }
String identifier = (String) gsonMaps.get("identifier"); String identifier = (String) gsonMaps.get("identifier");
String bizSvc = (String) gsonMaps.get("bizSvc"); String bizSvc = (String) gsonMaps.get("bizSvc");
......
...@@ -9,6 +9,7 @@ import com.brilliance.mxeditor.interf.CommonSend; ...@@ -9,6 +9,7 @@ import com.brilliance.mxeditor.interf.CommonSend;
import com.brilliance.mxeditor.util.StringUtil; import com.brilliance.mxeditor.util.StringUtil;
import com.brilliance.mxeditor.config.EditorEnvConfig; import com.brilliance.mxeditor.config.EditorEnvConfig;
import com.brilliance.mxeditor.util.SwiftTransferUtil; import com.brilliance.mxeditor.util.SwiftTransferUtil;
import com.brilliance.mxeditor.vo.AccountVo;
import com.brilliance.mxeditor.vo.SwiftVo; import com.brilliance.mxeditor.vo.SwiftVo;
import com.brilliance.swift.SwiftTransfer; import com.brilliance.swift.SwiftTransfer;
import com.brilliance.swift.constants.Mx2MtConstants; import com.brilliance.swift.constants.Mx2MtConstants;
...@@ -352,5 +353,22 @@ public class MxEditorController { ...@@ -352,5 +353,22 @@ public class MxEditorController {
} }
return null; return null;
} }
@RequestMapping(value = "/getBic", method = RequestMethod.POST)
@ResponseBody
public String getBic(@RequestBody AccountVo account) {
logger.info("---->查询信息为:" + account.toString());
Map<String, Object> map = new HashMap();
map.put("interface", "bdTaskFive");
map.put("transaction", "getbic");
map.put("biccod", account.getBiccod());
map.put("bicnam", account.getBicnam());
Map rs = (Map) CommonSend.send(map);
String retcod = (String) rs.get("retcode");
if (retcod != null && retcod.endsWith("0000000")) {
return (String) rs.get("data");
}else
return null;
}
} }
package com.brilliance.mxeditor.vo;
/**
* @author zh
* @create 2022-07-29 16:00
*/
public class AccountVo {
private String biccod;
private String bicnam;
public String getBiccod() {
return biccod;
}
public void setBiccod(String biccod) {
this.biccod = biccod;
}
public String getBicnam() {
return bicnam;
}
public void setBicnam(String bicnam) {
this.bicnam = bicnam;
}
@Override
public String toString() {
return "AccountVo{" +
"biccod='" + biccod + '\'' +
", bicnam='" + bicnam + '\'' +
'}';
}
}
...@@ -12,7 +12,7 @@ appHdr.prty=prty ...@@ -12,7 +12,7 @@ appHdr.prty=prty
appHdr.rltd=rltd appHdr.rltd=rltd
rsltnOfInvstgtn.assgnmt=assgnmt rsltnOfInvstgtn.assgnmt=assgnmt
rsltnOfInvstgtn.sts=sts rsltnOfInvstgtn.sts=sts
rsltnOfInvstgtn.cxlDtls=cxlDtls #rsltnOfInvstgtn.cxlDtls=cxlDtls
#appHdr.fr.fiId.finInstnId.bicfi=senderBic #appHdr.fr.fiId.finInstnId.bicfi=senderBic
#appHdr.fr.fiId.finInstnId.nm=senderNm #appHdr.fr.fiId.finInstnId.nm=senderNm
#appHdr.to.fiId.finInstnId.bicfi=receiverBic #appHdr.to.fiId.finInstnId.bicfi=receiverBic
...@@ -26,16 +26,12 @@ rsltnOfInvstgtn.cxlDtls=cxlDtls ...@@ -26,16 +26,12 @@ rsltnOfInvstgtn.cxlDtls=cxlDtls
#rsltnOfInvstgtn.assgnmt.assgnr.agt=assgnrAgt #rsltnOfInvstgtn.assgnmt.assgnr.agt=assgnrAgt
#rsltnOfInvstgtn.assgnmt.assgne.agt=assgneAgt #rsltnOfInvstgtn.assgnmt.assgne.agt=assgneAgt
#rsltnOfInvstgtn.sts.conf=conf #rsltnOfInvstgtn.sts.conf=conf
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.cxlStsId=cxlStsId rsltnOfInvstgtn.cxlDtls*.txInfAndSts*.cxlStsId=cxlStsId
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.rslvdCase=rslvdCase rsltnOfInvstgtn.cxlDtls*.txInfAndSts*.rslvdCase=rslvdCase
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.orgnlGrpInf.orgnlMsgId=orgnlMsgId rsltnOfInvstgtn.cxlDtls*.txInfAndSts*.orgnlGrpInf=orgnlGrpInf
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.orgnlGrpInf.orgnlMsgNmId=orgnlMsgNmId rsltnOfInvstgtn.cxlDtls*.txInfAndSts*.orgnlInstrId=orgnlInstrId
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.orgnlGrpInf.orgnlCreDtTm=orgnlCreDtTm@ISODATETIME rsltnOfInvstgtn.cxlDtls*.txInfAndSts*.orgnlEndToEndId=orgnlEndToEndId
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.orgnlInstrId=orgnlInstrId rsltnOfInvstgtn.cxlDtls*.txInfAndSts*.orgnlTxId=orgnlTxId
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.orgnlEndToEndId=orgnlEndToEndId rsltnOfInvstgtn.cxlDtls*.txInfAndSts*.orgnlClrSysRef=orgnlClrSysRef
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.orgnlTxId=orgnlTxId rsltnOfInvstgtn.cxlDtls*.txInfAndSts*.orgnlUETR=orgnlUETR
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.orgnlClrSysRef=orgnlClrSysRef rsltnOfInvstgtn.cxlDtls*.txInfAndSts*.cxlStsRsnInf=cxlStsRsnInf
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.orgnlUETR=uetr \ No newline at end of file
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.cxlStsRsnInf.orgtr=orgtr
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.cxlStsRsnInf.rsn.cd=rsnCd
#rsltnOfInvstgtn.cxlDtls.txInfAndSts.cxlStsRsnInf.addtlInf=addtlInf
\ No newline at end of file
...@@ -11,29 +11,15 @@ appHdr.pssblDplct=pssblDplct ...@@ -11,29 +11,15 @@ appHdr.pssblDplct=pssblDplct
appHdr.prty=prty appHdr.prty=prty
appHdr.rltd=rltd appHdr.rltd=rltd
fiToFIPmtStsRpt.grpHdr=grpHdr fiToFIPmtStsRpt.grpHdr=grpHdr
fiToFIPmtStsRpt.txInfAndSts=txInfAndSts fiToFIPmtStsRpt.txInfAndSts*.orgnlGrpInf=orgnlGrpInf
#appHdr.fr.fiId.finInstnId.bicfi=senderBic fiToFIPmtStsRpt.txInfAndSts*.orgnlInstrId=orgnlInstrId
#appHdr.fr.fiId.finInstnId.nm=senderNm fiToFIPmtStsRpt.txInfAndSts*.orgnlEndToEndId=orgnlEndToEndId
#appHdr.to.fiId.finInstnId.bicfi=receiverBic fiToFIPmtStsRpt.txInfAndSts*.orgnlTxId=orgnlTxId
#appHdr.to.fiId.finInstnId.nm=receiverNm fiToFIPmtStsRpt.txInfAndSts*.orgnlUETR=orgnlUETR
#appHdr.bizMsgIdr=bizMsgIdr fiToFIPmtStsRpt.txInfAndSts*.txSts=txSts
#appHdr.msgDefIdr=msgDefIdr fiToFIPmtStsRpt.txInfAndSts*.stsRsnInf*.orgtr=orgtr
#appHdr.bizSvc=bizSvc fiToFIPmtStsRpt.txInfAndSts*.stsRsnInf*.rsn=rsn
#appHdr.creDt=creDt fiToFIPmtStsRpt.txInfAndSts*.stsRsnInf*.addtlInf=addtlInf
#appHdr.prty=prty fiToFIPmtStsRpt.txInfAndSts*.fctvIntrBkSttlmDt=fctvIntrBkSttlmDt
#fiToFIPmtStsRpt.grpHdr.msgId=msgId fiToFIPmtStsRpt.txInfAndSts*.instgAgt=instgAgt
#fiToFIPmtStsRpt.grpHdr.creDtTm=creDtTm fiToFIPmtStsRpt.txInfAndSts*.instdAgt=instdAgt
#fiToFIPmtStsRpt.txInfAndSts.orgnlGrpInf.orgnlMsgId=orgnlMsgId
#fiToFIPmtStsRpt.txInfAndSts.orgnlGrpInf.orgnlMsgNmId=orgnlMsgNmId
#fiToFIPmtStsRpt.txInfAndSts.orgnlGrpInf.orgnlCreDtTm=orgnlCreDtTm
#fiToFIPmtStsRpt.txInfAndSts.orgnlInstrId=orgnlInstrId
#fiToFIPmtStsRpt.txInfAndSts.orgnlEndToEndId=orgnlEndToEndId
#fiToFIPmtStsRpt.txInfAndSts.orgnlTxId=orgnlTxId
#fiToFIPmtStsRpt.txInfAndSts.orgnlUETR=orgnlUETR
#fiToFIPmtStsRpt.txInfAndSts.txSts=txSts
#fiToFIPmtStsRpt.txInfAndSts.stsRsnInf*.orgtr=orgtr
#fiToFIPmtStsRpt.txInfAndSts.stsRsnInf*.rsn=rsn
#fiToFIPmtStsRpt.txInfAndSts.stsRsnInf*.addtlInf=addtlInf
#fiToFIPmtStsRpt.txInfAndSts.fctvIntrBkSttlmDt=fctvIntrBkSttlmDt
#fiToFIPmtStsRpt.txInfAndSts.instgAgt.finInstnId.bicfi=senderBic
#fiToFIPmtStsRpt.txInfAndSts.instdAgt.finInstnId.bicfi=receiverBic
...@@ -11,7 +11,7 @@ appHdr.pssblDplct=pssblDplct ...@@ -11,7 +11,7 @@ appHdr.pssblDplct=pssblDplct
appHdr.prty=prty appHdr.prty=prty
appHdr.rltd=rltd appHdr.rltd=rltd
fiCdtTrf.grpHdr=grpHdr fiCdtTrf.grpHdr=grpHdr
fiCdtTrf.cdtTrfTxInf=cdtTrfTxInf #fiCdtTrf.cdtTrfTxInf=cdtTrfTxInf
#appHdr.fr.fiId.finInstnId.bicfi=senderBic #appHdr.fr.fiId.finInstnId.bicfi=senderBic
#appHdr.fr.fiId.finInstnId.nm=senderNm #appHdr.fr.fiId.finInstnId.nm=senderNm
#appHdr.to.fiId.finInstnId.bicfi=receiverBic #appHdr.to.fiId.finInstnId.bicfi=receiverBic
...@@ -24,39 +24,34 @@ fiCdtTrf.cdtTrfTxInf=cdtTrfTxInf ...@@ -24,39 +24,34 @@ fiCdtTrf.cdtTrfTxInf=cdtTrfTxInf
#fiCdtTrf.grpHdr.msgId=msgId #fiCdtTrf.grpHdr.msgId=msgId
#fiCdtTrf.grpHdr.nbOfTxs=nbOfTxs #fiCdtTrf.grpHdr.nbOfTxs=nbOfTxs
#fiCdtTrf.grpHdr.creDtTm=creDtTm #fiCdtTrf.grpHdr.creDtTm=creDtTm
#fiCdtTrf.cdtTrfTxInf.pmtId.uetr=uetr fiCdtTrf.cdtTrfTxInf*.pmtId=pmtId
#fiCdtTrf.cdtTrfTxInf.pmtId.instrId=instrId fiCdtTrf.cdtTrfTxInf*.pmtTpInf=pmtTpInf
#fiCdtTrf.cdtTrfTxInf.pmtId.endToEndId=endToEndId fiCdtTrf.cdtTrfTxInf*.intrBkSttlmAmt=intrBkSttlmAmt
#fiCdtTrf.cdtTrfTxInf.pmtTpInf.clrChanl=clrChanl fiCdtTrf.cdtTrfTxInf*.intrBkSttlmDt=intrBkSttlmDt
#fiCdtTrf.cdtTrfTxInf.pmtTpInf.svcLvl=svcLvl fiCdtTrf.cdtTrfTxInf*.prvsInstgAgt1=prvsInstgAgt1
#fiCdtTrf.cdtTrfTxInf.pmtTpInf.lclInstrm=lclInstrm fiCdtTrf.cdtTrfTxInf*.prvsInstgAgt1Acct=prvsInstgAgt1Acct
#fiCdtTrf.cdtTrfTxInf.pmtTpInf.ctgyPurp=ctgyPurp fiCdtTrf.cdtTrfTxInf*.prvsInstgAgt2=prvsInstgAgt2
#fiCdtTrf.cdtTrfTxInf.intrBkSttlmAmt=intrBkSttlmAmt fiCdtTrf.cdtTrfTxInf*.prvsInstgAgt2Acct=prvsInstgAgt2Acct
#fiCdtTrf.cdtTrfTxInf.intrBkSttlmDt=intrBkSttlmDt fiCdtTrf.cdtTrfTxInf*.prvsInstgAgt3=prvsInstgAgt3
#fiCdtTrf.cdtTrfTxInf.prvsInstgAgt1=prvsInstgAgt1 fiCdtTrf.cdtTrfTxInf*.prvsInstgAgt3Acct=prvsInstgAgt3Acct
#fiCdtTrf.cdtTrfTxInf.prvsInstgAgt1Acct=prvsInstgAgt1Acct fiCdtTrf.cdtTrfTxInf*.intrmyAgt1=intrmyAgt1
#fiCdtTrf.cdtTrfTxInf.prvsInstgAgt2=prvsInstgAgt2 fiCdtTrf.cdtTrfTxInf*.intrmyAgt1Acct=intrmyAgt1Acct
#fiCdtTrf.cdtTrfTxInf.prvsInstgAgt2Acct=prvsInstgAgt2Acct fiCdtTrf.cdtTrfTxInf*.intrmyAgt2=intrmyAgt2
#fiCdtTrf.cdtTrfTxInf.prvsInstgAgt3=prvsInstgAgt3 fiCdtTrf.cdtTrfTxInf*.intrmyAgt2Acct=intrmyAgt2Acct
#fiCdtTrf.cdtTrfTxInf.prvsInstgAgt3Acct=prvsInstgAgt3Acct fiCdtTrf.cdtTrfTxInf*.intrmyAgt3=intrmyAgt3
#fiCdtTrf.cdtTrfTxInf.intrmyAgt1=intrmyAgt1 fiCdtTrf.cdtTrfTxInf*.intrmyAgt3Acct=intrmyAgt3Acct
#fiCdtTrf.cdtTrfTxInf.intrmyAgt1Acct=intrmyAgt1Acct fiCdtTrf.cdtTrfTxInf*.dbtr=dbtr
#fiCdtTrf.cdtTrfTxInf.intrmyAgt2=intrmyAgt2 fiCdtTrf.cdtTrfTxInf*.dbtrAcct=dbtrAcct
#fiCdtTrf.cdtTrfTxInf.intrmyAgt2Acct=intrmyAgt2Acct fiCdtTrf.cdtTrfTxInf*.dbtrAgt=dbtrAgt
#fiCdtTrf.cdtTrfTxInf.intrmyAgt3=intrmyAgt3 fiCdtTrf.cdtTrfTxInf*.dbtrAgtAcct=dbtrAgtAcct
#fiCdtTrf.cdtTrfTxInf.intrmyAgt3Acct=intrmyAgt3Acct fiCdtTrf.cdtTrfTxInf*.cdtrAgt=cdtrAgt
#fiCdtTrf.cdtTrfTxInf.dbtr=dbtr fiCdtTrf.cdtTrfTxInf*.cdtrAgtAcct=cdtrAgtAcct
#fiCdtTrf.cdtTrfTxInf.dbtrAcct=dbtrAcct fiCdtTrf.cdtTrfTxInf*.cdtr=cdtr
#fiCdtTrf.cdtTrfTxInf.dbtrAgt=dbtrAgt fiCdtTrf.cdtTrfTxInf*.cdtrAcct=cdtrAcct
#fiCdtTrf.cdtTrfTxInf.dbtrAgtAcct=dbtrAgtAcct fiCdtTrf.cdtTrfTxInf*.instrForCdtrAgt=instrForCdtrAgt
#fiCdtTrf.cdtTrfTxInf.cdtrAgt=cdtrAgt fiCdtTrf.cdtTrfTxInf*.instrForNxtAgt=instrForNxtAgt
#fiCdtTrf.cdtTrfTxInf.cdtrAgtAcct=cdtrAgtAcct fiCdtTrf.cdtTrfTxInf*.purp=purp
#fiCdtTrf.cdtTrfTxInf.cdtr=cdtr fiCdtTrf.cdtTrfTxInf*.rmtInf=rmtInf
#fiCdtTrf.cdtTrfTxInf.cdtrAcct=cdtrAcct fiCdtTrf.cdtTrfTxInf*.undrlygCstmrCdtTrf=undrlygCstmrCdtTrf
#fiCdtTrf.cdtTrfTxInf.instrForCdtrAgt=instrForCdtrAgt fiCdtTrf.cdtTrfTxInf*.instgAgt=instgAgt
#fiCdtTrf.cdtTrfTxInf.instrForNxtAgt=instrForNxtAgt fiCdtTrf.cdtTrfTxInf*.instdAgt=instdAgt
#fiCdtTrf.cdtTrfTxInf.purp=purp \ No newline at end of file
#fiCdtTrf.cdtTrfTxInf.rmtInf.ustrd=ustrd
#fiCdtTrf.cdtTrfTxInf.undrlygCstmrCdtTrf=undrlygCstmrCdtTrf
#fiCdtTrf.cdtTrfTxInf.instgAgt.finInstnId.bicfi=senderBic
#fiCdtTrf.cdtTrfTxInf.instdAgt.finInstnId.bicfi=receiverBic
\ 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