Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sap-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sap-service
Commits
02948f7d
Commit
02948f7d
authored
Jul 26, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
1db861ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
90 additions
and
87 deletions
+90
-87
ConfirmQuotationServiceImpl.java
...rvices/confirm_quotation/ConfirmQuotationServiceImpl.java
+90
-87
No files found.
src/main/java/com/egolm/sso/services/confirm_quotation/ConfirmQuotationServiceImpl.java
View file @
02948f7d
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment