Commit d8dfd535 by zhanghou

增加了mtType表示报文类型

parent 7beda872
......@@ -22,12 +22,14 @@ public class Camt053001Parse20Field extends AbstractMt2MxParseFields {
Field20 field20 = mt940.getField20();
if(field20!=null){
bankToCustomerStatement.setMessageId(field20.getValue());
bankToCustomerStatement.setMtType("940");
}
}else {
MT950 mt950 = (MT950) context.get(AbstractMT.class);
Field20 field20 = mt950.getField20();
if(field20!=null){
bankToCustomerStatement.setMessageId(field20.getValue());
bankToCustomerStatement.setMtType("950");
}
}
}catch (Exception e) {
......
......@@ -22,12 +22,14 @@ public class Camt054001Parse20Field extends AbstractMt2MxParseFields {
Field20 field20 = mt900.getField20();
if(field20!=null){
bankToCustomerDebitCreditNotification.setMessageId(field20.getValue());
bankToCustomerDebitCreditNotification.setMtType("900");
}
}else {
MT910 mt910 = (MT910) context.get(AbstractMT.class);
Field20 field20 = mt910.getField20();
if(field20!=null){
bankToCustomerDebitCreditNotification.setMessageId(field20.getValue());
bankToCustomerDebitCreditNotification.setMtType("910");
}
}
}catch (Exception e) {
......
......@@ -22,13 +22,23 @@ public class Camt054001Parse72Field extends AbstractMt2MxParseFields {
MT900 mt900 = (MT900) context.get(AbstractMT.class);
Field72 field72 = mt900.getField72();
if(field72!=null){
bankToCustomerDebitCreditNotification.setAddtlTxInf(field72.getValue());
StringBuilder sb = new StringBuilder();
String[] split = field72.getValue().split("\\r\\n");
for (String s : split) {
sb.append(s);
}
bankToCustomerDebitCreditNotification.setAddtlTxInf(sb.toString());
}
}else {
MT910 mt910 = (MT910) context.get(AbstractMT.class);
Field72 field72 = mt910.getField72();
if(field72!=null){
bankToCustomerDebitCreditNotification.setAddtlTxInf(field72.getValue());
StringBuilder sb = new StringBuilder();
String[] split = field72.getValue().split("\\r\\n");
for (String s : split) {
sb.append(s);
}
bankToCustomerDebitCreditNotification.setAddtlTxInf(sb.toString());
}
}
}catch (Exception e) {
......
......@@ -11,6 +11,8 @@ import java.util.Date;
*/
public class BankToCustomerDebitCreditNotification extends SwiftDto{
protected String mtType;
protected String endToEndId;
protected String ibanId;
......@@ -27,6 +29,14 @@ public class BankToCustomerDebitCreditNotification extends SwiftDto{
protected String addtlTxInf;
public String getMtType() {
return mtType;
}
public void setMtType(String mtType) {
this.mtType = mtType;
}
public String getEndToEndId() {
return endToEndId;
}
......
......@@ -12,6 +12,8 @@ import java.util.List;
*/
public class BankToCustomerStatement extends SwiftDto{
protected String mtType;
protected String ibanId;
protected String pgNb;
......@@ -30,6 +32,14 @@ public class BankToCustomerStatement extends SwiftDto{
protected List<String> addtlStmtInf;
public String getMtType() {
return mtType;
}
public void setMtType(String mtType) {
this.mtType = mtType;
}
public String getIbanId() {
return ibanId;
}
......
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