Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
ade0042a
Commit
ade0042a
authored
Sep 16, 2021
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问题修复
parent
b49f543d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
+6
-2
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
View file @
ade0042a
...
...
@@ -2774,8 +2774,12 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
orderItem
.
setReal_quantity
(
orderItemResp
.
getProductQuantity
().
toString
());
orderItem
.
setOriginal_price
(
String
.
valueOf
(
orderItemResp
.
getSalePrice
().
intValue
()+
materialPrice
));
orderItem
.
setPrice
(
String
.
valueOf
(
orderItemResp
.
getProductPrice
().
intValue
()+
materialPrice
));
orderItem
.
setSubtotal
(
new
BigDecimal
(
orderItem
.
getOriginal_price
()).
multiply
(
new
BigDecimal
(
orderItemResp
.
getProductQuantity
())).
intValue
()+
""
);
orderItem
.
setDiscountAmount
((
orderItemResp
.
getProductPrice
().
subtract
(
orderItemResp
.
getSalePrice
())).
multiply
(
new
BigDecimal
(
orderItemResp
.
getProductQuantity
())).
intValue
()+
""
);
orderItem
.
setSubtotal
(
new
BigDecimal
(
orderItem
.
getPrice
()).
multiply
(
new
BigDecimal
(
orderItemResp
.
getProductQuantity
())).
intValue
()+
""
);
if
(
orderItemResp
.
getProductPrice
().
intValue
()
>
orderItemResp
.
getSalePrice
().
intValue
())
{
orderItem
.
setDiscountAmount
((
orderItemResp
.
getProductPrice
().
subtract
(
orderItemResp
.
getSalePrice
())).
multiply
(
new
BigDecimal
(
orderItemResp
.
getProductQuantity
())).
intValue
()+
""
);
}
else
{
orderItem
.
setDiscountAmount
(
0
+
""
);
}
orderItem
.
setRealAmount
(
new
BigDecimal
(
orderItem
.
getOriginal_price
()).
multiply
(
new
BigDecimal
(
orderItemResp
.
getProductQuantity
())).
intValue
()+
""
);
String
taxId
=
"10"
;
orderItem
.
setTaxId
(
taxId
);
...
...
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