Commit 02948f7d authored by Quxl's avatar Quxl

x

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