Commit aec1a08c authored by Quxl's avatar Quxl

x

parent e9bb927c
...@@ -142,14 +142,24 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ ...@@ -142,14 +142,24 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
for(int i=0; i<ITEM_REFERENCE_PO_TYPEs.size(); i++) { for(int i=0; i<ITEM_REFERENCE_PO_TYPEs.size(); i++) {
ITEM_REFERENCE_PO_TYPE ITEM_REFERENCE_PO_TYPE = ITEM_REFERENCE_PO_TYPEs.get(i); ITEM_REFERENCE_PO_TYPE ITEM_REFERENCE_PO_TYPE = ITEM_REFERENCE_PO_TYPEs.get(i);
if(ITEM_REFERENCE_PO_TYPE != null) { if(ITEM_REFERENCE_PO_TYPE != null) {
item.put("REFERENCE_PO_TYPE_TDID"+(i+1), ITEM_REFERENCE_PO_TYPE.getTDID()); String TDLINE = null;
List<ITEM_REFERENCE_PO_DATA> ITEM_REFERENCE_PO_DATAs = ITEM_REFERENCE_PO_TYPE.getITEM_REFERENCE_PO_DATA(); List<ITEM_REFERENCE_PO_DATA> ITEM_REFERENCE_PO_DATAs = ITEM_REFERENCE_PO_TYPE.getITEM_REFERENCE_PO_DATA();
if(ITEM_REFERENCE_PO_DATAs!=null&&ITEM_REFERENCE_PO_DATAs.size()>0) { if(ITEM_REFERENCE_PO_DATAs != null && ITEM_REFERENCE_PO_DATAs.size() > 0) {
ITEM_REFERENCE_PO_DATA ITEM_REFERENCE_PO_DATA = ITEM_REFERENCE_PO_DATAs.get(0); ITEM_REFERENCE_PO_DATA ITEM_REFERENCE_PO_DATA = ITEM_REFERENCE_PO_DATAs.get(0);
if(ITEM_REFERENCE_PO_DATA != null) { if(ITEM_REFERENCE_PO_DATA != null) {
item.put("REFERENCE_PO_TYPE_TDLINE"+(i+1), ITEM_REFERENCE_PO_DATA.getTDLINE()); TDLINE = ITEM_REFERENCE_PO_DATA.getTDLINE();
} }
} }
String TDID = ITEM_REFERENCE_PO_TYPE.getTDID();
if("ZXI1".equals(TDID)) {
item.put("REFERENCE_PO_TYPE_TDID1", TDID);
item.put("REFERENCE_PO_TYPE_TDLINE1", TDLINE);
} else if("ZXI2".equals(TDID)) {
item.put("REFERENCE_PO_TYPE_TDID2", TDID);
item.put("REFERENCE_PO_TYPE_TDLINE2", TDLINE);
} else {
throw new XRException("Text type undefined [" + TDID + "] in ITEM_REFERENCE_PO_TYPE");
}
} }
} }
} }
......
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