Commit 02948f7d authored by Quxl's avatar Quxl

x

parent 1db861ba
...@@ -64,6 +64,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService { ...@@ -64,6 +64,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
header.put("MSGTYPE", MESSAGE.getMSGTYPE()); header.put("MSGTYPE", MESSAGE.getMSGTYPE());
header.put("MSGTXT", MESSAGE.getMSGTXT()); header.put("MSGTXT", MESSAGE.getMSGTXT());
} }
if(h != null) {
header.put("BSTKD_E", h.getBSTKD_E()); header.put("BSTKD_E", h.getBSTKD_E());
header.put("VBELN", h.getVBELN()); header.put("VBELN", h.getVBELN());
header.put("VKORG", h.getVKORG()); header.put("VKORG", h.getVKORG());
...@@ -95,11 +96,10 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService { ...@@ -95,11 +96,10 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
Long hID = Long.valueOf(time+idIndex); Long hID = Long.valueOf(time+idIndex);
header.put("ID", hID); header.put("ID", hID);
header.put("TRACE_NO", "sapsoconfirmquotation"+DateUtil.formatDate(now, DateUtil.FMT_DATETIME)); header.put("TRACE_NO", "sapsoconfirmquotation"+DateUtil.formatDate(now, DateUtil.FMT_DATETIME));
insertTo(header, "t_so_confirmation_header"); insertTo(header, "t_so_confirmation_header");
List<ITEM_DATA> ids = res.getITEM_DATA(); List<ITEM_DATA> ids = res.getITEM_DATA();
Map<String, Map<String, Object>> itemDatas = new HashMap<>(); Map<String, Map<String, Object>> itemDatas = new HashMap<>();
if(ids != null) {
for(ITEM_DATA id : ids) { for(ITEM_DATA id : ids) {
Map<String, Object> itemData = new HashMap<>(); Map<String, Object> itemData = new HashMap<>();
itemData.put("BSTKD_E", h.getBSTKD_E()); itemData.put("BSTKD_E", h.getBSTKD_E());
...@@ -132,8 +132,9 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService { ...@@ -132,8 +132,9 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
itemDatas.put(id.getPOSNR(), itemData); itemDatas.put(id.getPOSNR(), itemData);
insertTo(itemData, "t_so_confirmation_item_data"); insertTo(itemData, "t_so_confirmation_item_data");
} }
}
List<ITEM_PRICING> ips = res.getITEM_PRICING(); List<ITEM_PRICING> ips = res.getITEM_PRICING();
if(ips != null) {
for(ITEM_PRICING ip : ips) { for(ITEM_PRICING ip : ips) {
Map<String, Object> itemPricing = new HashMap<>(); Map<String, Object> itemPricing = new HashMap<>();
itemPricing.put("HEADER_ID", hID); itemPricing.put("HEADER_ID", hID);
...@@ -152,6 +153,8 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService { ...@@ -152,6 +153,8 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
itemPricing.put("ID", Long.valueOf(time+itemPricingID)); itemPricing.put("ID", Long.valueOf(time+itemPricingID));
insertTo(itemPricing, "t_so_confirmation_item_pricing"); insertTo(itemPricing, "t_so_confirmation_item_pricing");
} }
}
}
} catch (Exception e) { } catch (Exception e) {
isSuccess = false; isSuccess = false;
throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
......
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