Commit 78fa6e3c by zhanghou

修改了mt_To_mxField76的方法的逻辑

parent 3c58b693
......@@ -1425,8 +1425,18 @@ public abstract class AbstractMt2MxParseField implements Mt2MxParseField {
protected void mt_To_mxField76(String mt76, Map<String, Object> maps){
String mt76Value = mt76.replace("\r\n//", "").trim();
String status = mt76Value.substring(1,5);
String reason = mt76Value.substring(6,10);
String status = "";
String reason = "";
if(mt76Value.length()>5){
status = mt76Value.substring(1,5);
}
if(mt76Value.length()>=10){
if(mt76Value.length()==10){
reason = mt76Value.substring(6);
}else {
reason = mt76Value.substring(6,10);
}
}
String additionalInformation = "";
//MXReasonList = {AC04, AGNT, AM04, ARDT, CUST, INDM, LEGL, NOAS, NOOR, PTNA, RQDA}
if("AC04".equals(reason)||"AGNT".equals(reason)||"AM04".equals(reason)
......@@ -1437,7 +1447,9 @@ public abstract class AbstractMt2MxParseField implements Mt2MxParseField {
additionalInformation = mt76Value.substring(11);
}
}else {
if(mt76Value.length()>6){
additionalInformation = mt76Value.substring(6);
}
if ("RJCR".equals(status)){
reason = "NARR";
}else {
......
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