Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
rop-scrm-shopmall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 357702a9
authored
Dec 08, 2025
by
春觉晓
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改商品实付金额计算逻辑
1 parent
ef5317a0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
src/main/java/cn/com/glsx/scrm/shopmall/controller/order/PlatformOrderController.java
src/main/java/cn/com/glsx/scrm/shopmall/controller/order/PlatformOrderController.java
View file @
357702a
...
@@ -21,6 +21,8 @@ import com.rop.annotation.ServiceMethod;
...
@@ -21,6 +21,8 @@ import com.rop.annotation.ServiceMethod;
import
com.rop.annotation.ServiceMethodBean
;
import
com.rop.annotation.ServiceMethodBean
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -151,6 +153,12 @@ public class PlatformOrderController {
...
@@ -151,6 +153,12 @@ public class PlatformOrderController {
exportVO
.
setTotalPrice
(
exportVO
.
setTotalPrice
(
(
redeemPoints
*
exportVO
.
getSellQty
())
+
"积分"
);
(
redeemPoints
*
exportVO
.
getSellQty
())
+
"积分"
);
indexNumber
.
getAndIncrement
();
indexNumber
.
getAndIncrement
();
//计算订单总积分: 运费 + 商品积分
BigDecimal
totalScore
=
new
BigDecimal
(
redeemPoints
.
toString
()).
multiply
(
new
BigDecimal
(
exportVO
.
getSellQty
()));
if
(
index
.
getFreightAmount
()
!=
null
)
{
totalScore
=
totalScore
.
add
(
index
.
getFreightAmount
());
}
exportVO
.
setTotalScore
(
totalScore
);
return
exportVO
;
return
exportVO
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment