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
05b3c679
Commit
05b3c679
authored
Mar 18, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改为定向计划
parent
1c1f2977
Pipeline
#71802
passed with stages
in 58 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
ProductServiceImpl.java
.../wx/store/sharer/biz/service/impl/ProductServiceImpl.java
+0
-8
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/ProductServiceImpl.java
View file @
05b3c679
...
...
@@ -54,10 +54,8 @@ public class ProductServiceImpl implements IProductService {
@Override
public
PageVO
<
ProductListVO
>
getProductPageList
(
PageQuery
pageQuery
,
String
keyword
)
{
PageVO
<
ProductListVO
>
pageVO
=
new
PageVO
<>();
log
.
info
(
"商品列表查询开始:{}"
,
System
.
currentTimeMillis
());
WeChatPromoteProductListVO
productListVO
=
weChatShopPromoteProductListRequest
.
handle
(
keyword
,
pageQuery
.
getNextKey
(),
pageQuery
.
getPageSize
());
log
.
info
(
"商品列表查询结束:{}"
,
System
.
currentTimeMillis
());
pageVO
.
setHasMore
(
false
);
List
<
ProductListVO
>
productList
=
new
ArrayList
<>(
0
);
// 商品列表
...
...
@@ -107,8 +105,6 @@ public class ProductServiceImpl implements IProductService {
if
(
null
!=
price
&&
null
!=
commissionRatio
&&
null
!=
serviceRatio
)
{
commission
=
price
.
multiply
(
serviceRatio
).
multiply
(
commissionRatio
)
.
setScale
(
2
,
RoundingMode
.
HALF_UP
);
log
.
info
(
"商品:{},计算佣金,价格:{},服务费率:{},推客分佣比例:{},佣金:{}"
,
item
.
getProduct_id
(),
price
,
serviceRatio
,
commissionRatio
,
commission
);
}
listVO
.
setCommission
(
commission
);
listVO
.
setShopAppid
(
item
.
getShop_appid
());
...
...
@@ -127,7 +123,6 @@ public class ProductServiceImpl implements IProductService {
pageVO
.
setHasMore
(
StringUtils
.
isNotBlank
(
productListVO
.
getNext_key
())
&&
!
isEmpty
&&
productList
.
size
()
>=
pageQuery
.
getPageSize
());
pageVO
.
setNextKey
(
productListVO
.
getNext_key
());
log
.
info
(
"商品列表查询返回:{}"
,
System
.
currentTimeMillis
());
return
pageVO
;
}
...
...
@@ -185,7 +180,6 @@ public class ProductServiceImpl implements IProductService {
private
BigDecimal
getSharerCommissionRatio
(
LoginUserInfo
loginUserInfo
,
String
productId
)
{
// 默认佣金比例
BigDecimal
commissionRatio
=
drmSharerConfig
.
getDefaultCommissionRatio
();
log
.
info
(
"商品:{},默认佣金比例:{}"
,
productId
,
commissionRatio
);
if
(
null
!=
loginUserInfo
)
{
// 微信配置分佣比例
BigDecimal
weChatCommissionRatio
=
null
;
...
...
@@ -198,7 +192,6 @@ public class ProductServiceImpl implements IProductService {
Long
.
valueOf
(
productId
));
if
(
sharerProductCommissionVO
.
getIs_set
())
{
weChatCommissionRatio
=
new
BigDecimal
(
sharerProductCommissionVO
.
getCommission_ratio
());
log
.
info
(
"商品:{},微信商品纬度佣金比例:{}"
,
productId
,
weChatCommissionRatio
);
}
}
// 获取推客纬度分佣比例
...
...
@@ -208,7 +201,6 @@ public class ProductServiceImpl implements IProductService {
WeChatSharerInfoVO
sharerInfoVO
=
sharerListVO
.
getSharer_info_list
().
get
(
0
);
if
(
null
!=
sharerInfoVO
&&
null
!=
sharerInfoVO
.
getCommission_ratio
())
{
weChatCommissionRatio
=
sharerInfoVO
.
getCommission_ratio
();
log
.
info
(
"商品:{},微信推客纬度佣金比例:{}"
,
productId
,
weChatCommissionRatio
);
}
}
}
...
...
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