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
dae22a2a
Commit
dae22a2a
authored
Dec 28, 2020
by
刘鹏飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature/coco_three' into qa
parents
ece7959f
f57ae071
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
order-application-service/src/main/java/cn/freemud/service/order/impl/CocoOrderRelationServiceImpl.java
+4
-3
No files found.
order-application-service/src/main/java/cn/freemud/service/order/impl/CocoOrderRelationServiceImpl.java
View file @
dae22a2a
...
@@ -136,7 +136,7 @@ public class CocoOrderRelationServiceImpl implements OrderRelationService {
...
@@ -136,7 +136,7 @@ public class CocoOrderRelationServiceImpl implements OrderRelationService {
giftMap
.
put
(
giftProduct
.
getOcid
(),
giftProduct
.
getQty
());
giftMap
.
put
(
giftProduct
.
getOcid
(),
giftProduct
.
getQty
());
});
});
}
}
Long
itemAmount
=
0L
;
// 赠品原总价
// 赠品原总价
Long
giftOriTotalAmount
=
0L
;
Long
giftOriTotalAmount
=
0L
;
List
<
ProductVo
>
productVos
=
new
ArrayList
<>();
List
<
ProductVo
>
productVos
=
new
ArrayList
<>();
...
@@ -156,6 +156,7 @@ public class CocoOrderRelationServiceImpl implements OrderRelationService {
...
@@ -156,6 +156,7 @@ public class CocoOrderRelationServiceImpl implements OrderRelationService {
// 商品现单价 = 商品现单价+小料现单价
// 商品现单价 = 商品现单价+小料现单价
smallMaterialOriTotal
=
smallMaterialOriTotal
==
null
?
0
:
smallMaterialOriTotal
;
smallMaterialOriTotal
=
smallMaterialOriTotal
==
null
?
0
:
smallMaterialOriTotal
;
product
.
setOriginalPrice
(
smallMaterialOriTotal
+
(
product
.
getOriginalPrice
()
==
null
?
0L
:
product
.
getOriginalPrice
()));
product
.
setOriginalPrice
(
smallMaterialOriTotal
+
(
product
.
getOriginalPrice
()
==
null
?
0L
:
product
.
getOriginalPrice
()));
itemAmount
=
itemAmount
+
product
.
getOriginalPrice
()
*
product
.
getQty
();
giftOriTotalAmount
=
giftOriTotalAmount
+
product
.
getOriginalPrice
()
*
giftQty
;
giftOriTotalAmount
=
giftOriTotalAmount
+
product
.
getOriginalPrice
()
*
giftQty
;
...
@@ -191,8 +192,8 @@ public class CocoOrderRelationServiceImpl implements OrderRelationService {
...
@@ -191,8 +192,8 @@ public class CocoOrderRelationServiceImpl implements OrderRelationService {
masterProducts
.
addAll
(
productVos
);
masterProducts
.
addAll
(
productVos
);
queryOrderResponseVo
.
setProducts
(
masterProducts
);
queryOrderResponseVo
.
setProducts
(
masterProducts
);
// 商品总价
需要包含赠品的价格
// 商品总价
queryOrderResponseVo
.
setItemAmount
(
queryOrderResponseVo
.
getItemAmount
()
+
giftOriTotalAmount
);
queryOrderResponseVo
.
setItemAmount
(
itemAmount
+
giftOriTotalAmount
);
}
}
...
...
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