Commit 69a6c401 by zhanghou

修改mt2mx的日期和25p域的缺陷

parent 41e17036
......@@ -2025,6 +2025,9 @@ public abstract class AbstractMt2MxParseField implements Mt2MxParseField {
}
protected String mt_to_mxDate(String mtDate) {
if(StringUtil.isEmpty(mtDate)){
return null;
}
SimpleDateFormat mtFormat = new SimpleDateFormat("yyyyMMdd");
mtFormat.setLenient(false);
SimpleDateFormat mxFormat = new SimpleDateFormat("yyyy-MM-dd");
......
......@@ -29,7 +29,7 @@ public class Camt052001Parse25Field extends AbstractMt2MxCamt052001ParseField {
}
if (tag25p != null) {
Field25P field25P = (Field25P) tag25p.asField();
mt_to_mxAccount35(tag25p.getValue(), acctMap, "BkToCstmrAcctRpt/Rpt/Acct/Id/Othr/Id");
mt_to_mxAccount35(field25P.getAccount(), acctMap, "BkToCstmrAcctRpt/Rpt/Acct/Id/Othr/Id");
MapUtil.puts(rptMaps, "acct/ownr/id/orgId/anyBIC", field25P.getBIC());
}
MapUtil.puts(rptMaps, "acct", acctMap);
......
......@@ -29,7 +29,7 @@ public class Camt053001Parse25Field extends AbstractMt2MxCamt053001ParseField {
}
if (tag25p != null) {
Field25P field25P = (Field25P) tag25p.asField();
mt_to_mxAccount35(tag25p.getValue(), acctMap, "BkToCstmrStmt/Stmt/Acct/Id/Othr/Id");
mt_to_mxAccount35(field25P.getAccount(), acctMap, "BkToCstmrStmt/Stmt/Acct/Id/Othr/Id");
MapUtil.puts(stmtMaps, "acct/ownr/id/orgId/anyBIC", field25P.getBIC());
}
MapUtil.puts(stmtMaps, "acct", acctMap);
......
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