Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-wx-store-sharer
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wx
yanxuan-wx-store-sharer
Commits
423b93ce
Commit
423b93ce
authored
Mar 14, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调问题处理
parent
62111a20
Pipeline
#71605
passed with stages
in 1 minute 1 second
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ProductServiceImpl.java
.../wx/store/sharer/biz/service/impl/ProductServiceImpl.java
+2
-3
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/ProductServiceImpl.java
View file @
423b93ce
...
@@ -110,10 +110,9 @@ public class ProductServiceImpl implements IProductService {
...
@@ -110,10 +110,9 @@ public class ProductServiceImpl implements IProductService {
// 佣金=商品价格*服务费率*推客分佣比例,四舍五入保留小数点后两位
// 佣金=商品价格*服务费率*推客分佣比例,四舍五入保留小数点后两位
BigDecimal
commission
=
BigDecimal
.
ZERO
;
BigDecimal
commission
=
BigDecimal
.
ZERO
;
if
(
null
!=
price
&&
null
!=
commissionRatio
&&
null
!=
serviceRatio
)
{
if
(
null
!=
price
&&
null
!=
commissionRatio
&&
null
!=
serviceRatio
)
{
log
.
info
(
"计算佣金,价格:{},服务费率:{},推客分佣比例:{}"
,
price
,
serviceRatio
,
commissionRatio
);
commission
=
price
.
multiply
(
serviceRatio
).
multiply
(
commissionRatio
)
commission
=
price
.
multiply
(
serviceRatio
)
.
multiply
(
commissionRatio
)
.
setScale
(
2
,
RoundingMode
.
HALF_UP
);
.
setScale
(
2
,
RoundingMode
.
HALF_UP
);
log
.
info
(
"计算佣金,价格:{},服务费率:{},推客分佣比例:{},佣金:{}"
,
price
,
serviceRatio
,
commissionRatio
,
commission
);
}
}
listVO
.
setCommission
(
commission
);
listVO
.
setCommission
(
commission
);
listVO
.
setShopAppid
(
item
.
getShop_appid
());
listVO
.
setShopAppid
(
item
.
getShop_appid
());
...
...
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