Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
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
周健威
rs-cloud-platform
Commits
2a4df805
Commit
2a4df805
authored
Dec 17, 2020
by
xiaosl
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://113.105.137.151:22280/zhoujw/rs-cloud-platform
into dev
parents
3d6bb76d
98fd3953
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
ItemInfoVo.java
...in/java/com/upyuns/platform/rs/website/vo/ItemInfoVo.java
+2
-0
OrderInfoBiz.java
...java/com/upyuns/platform/rs/website/biz/OrderInfoBiz.java
+3
-0
ConfirmOrderService.java
...yuns/platform/rs/website/service/ConfirmOrderService.java
+3
-0
No files found.
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/vo/ItemInfoVo.java
View file @
2a4df805
...
...
@@ -18,4 +18,6 @@ public class ItemInfoVo {
private
BigDecimal
price
;
private
Integer
type
;
private
String
img
;
private
String
name
;
}
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/OrderInfoBiz.java
View file @
2a4df805
...
...
@@ -243,6 +243,9 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
number
.
updateAndGet
(
v
->
v
+
itemInfoDto
.
getNumber
());
BigDecimal
totalAmount
=
shoppingCartInfo
.
getTotalAmount
();
amount
.
updateAndGet
(
v
->
new
Double
((
double
)
(
v
+
totalAmount
.
doubleValue
())));
//下单后删除购物车
shoppingCartInfo
.
setIsDel
(
1
);
shoppingCartInfoBiz
.
updateSelectiveByIdRe
(
shoppingCartInfo
);
}
break
;
default
:
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/service/ConfirmOrderService.java
View file @
2a4df805
...
...
@@ -79,6 +79,7 @@ public class ConfirmOrderService {
itemInfoVo
.
setNumber
(
itemInfoDto
.
getNumber
());
itemInfoVo
.
setType
(
itemInfoDto
.
getType
());
itemInfoVo
.
setPrice
(
industryApplicationInfo
.
getPrice
());
itemInfoVo
.
setName
(
industryApplicationInfo
.
getTitle
());
itemInfoVoList
.
add
(
itemInfoVo
);
//总数量
number
.
updateAndGet
(
v
->
v
+
itemInfoDto
.
getNumber
());
...
...
@@ -102,6 +103,7 @@ public class ConfirmOrderService {
itemInfoVo
.
setNumber
(
itemInfoDto
.
getNumber
());
itemInfoVo
.
setImg
(
imageImgStorage
.
getCoverImg
());
itemInfoVo
.
setDetailJson
(
JSONObject
.
toJSONString
(
imageImgStorage
));
itemInfoVo
.
setName
(
imageImgStorage
.
getName
());
itemInfoVoList
.
add
(
itemInfoVo
);
//总数量
number
.
updateAndGet
(
v
->
v
+
itemInfoDto
.
getNumber
());
...
...
@@ -121,6 +123,7 @@ public class ConfirmOrderService {
itemInfoVo
.
setNumber
(
itemInfoDto
.
getNumber
());
itemInfoVo
.
setImg
(
shoppingCartInfo
.
getItemPic
());
itemInfoVo
.
setDetailJson
(
shoppingCartInfo
.
getDetailJson
());
itemInfoVo
.
setName
(
shoppingCartInfo
.
getName
());
itemInfoVoList
.
add
(
itemInfoVo
);
number
.
updateAndGet
(
v
->
v
+
itemInfoDto
.
getNumber
());
BigDecimal
totalAmount
=
shoppingCartInfo
.
getTotalAmount
();
...
...
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