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
163b0723
Commit
163b0723
authored
Dec 16, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付信息
parent
e81a7a5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
ConfirmOrderService.java
...yuns/platform/rs/website/service/ConfirmOrderService.java
+6
-7
No files found.
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/service/ConfirmOrderService.java
View file @
163b0723
...
...
@@ -66,7 +66,6 @@ public class ConfirmOrderService {
ConfirmOrderInfoVo
confirmOrderInfoVo
=
new
ConfirmOrderInfoVo
();
confirmOrderInfoVo
.
setType
(
confirmOrderDto
.
getType
());
confirmOrderInfoVo
.
setIds
(
confirmOrderDto
.
getIds
());
confirmOrderInfoVo
.
setNumber
(
confirmOrderDto
.
getNumber
());
switch
(
OrderTypeEnum
.
getByCode
(
confirmOrderDto
.
getType
()))
{
//标准数据
case
STANDARD_DATA:
...
...
@@ -78,9 +77,9 @@ public class ConfirmOrderService {
if
(
industryApplicationInfoList
!=
null
&&
industryApplicationInfoList
.
size
()
>
0
)
{
confirmOrderInfoVo
.
setIndustryApplicationInfoList
(
industryApplicationInfoList
);
//总数量
Integer
totalNumber
=
confirmOrderInfoVo
.
getNumber
(
);
BigDecimal
totalAmount
=
industryApplicationInfoList
.
get
(
0
).
getPrice
().
multiply
(
new
BigDecimal
(
totalNumber
));
confirmOrderInfoVo
.
set
TotalAmount
(
totalAmount
);
Double
amount
=
industryApplicationInfoList
.
stream
().
mapToDouble
(
e
->
e
.
getPrice
().
doubleValue
()).
reduce
(
0
,
Double:
:
sum
);
confirmOrderInfoVo
.
setTotalAmount
(
new
BigDecimal
(
amount
));
confirmOrderInfoVo
.
set
Number
(
industryApplicationInfoList
.
size
()
);
}
break
;
//影像图库
...
...
@@ -97,9 +96,9 @@ public class ConfirmOrderService {
});
confirmOrderInfoVo
.
setImageImgStorageList
(
imageImgStorageList
);
//总数量
Integer
totalNumber
=
confirmOrderInfoVo
.
getNumber
(
);
BigDecimal
totalAmount
=
imageInfoRelationList
.
get
(
0
).
getPrice
().
multiply
(
new
BigDecimal
(
totalNumber
)
);
confirmOrderInfoVo
.
setTotalAmount
(
totalAmount
);
confirmOrderInfoVo
.
setNumber
(
imageInfoRelationList
.
size
()
);
Double
amount
=
imageInfoRelationList
.
stream
().
mapToDouble
(
e
->
e
.
getPrice
().
doubleValue
()).
reduce
(
0
,
Double:
:
sum
);
confirmOrderInfoVo
.
setTotalAmount
(
new
BigDecimal
(
amount
)
);
}
}
break
;
...
...
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