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
8504a285
Commit
8504a285
authored
Mar 14, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调问题处理
parent
63ba0c61
Pipeline
#71614
passed with stages
in 58 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
18 deletions
+16
-18
DrmSharerConfig.java
...e/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
+9
-12
UserServiceImpl.java
...uan/wx/store/sharer/biz/service/impl/UserServiceImpl.java
+1
-1
SharerInfo.java
...yanxuan/wx/store/sharer/dal/meta/model/po/SharerInfo.java
+1
-1
CommissionTypeEnum.java
...ore/sharer/integration/meta/enums/CommissionTypeEnum.java
+4
-3
WeChatSetSharerCommissionBO.java
...ntegration/meta/model/bo/WeChatSetSharerCommissionBO.java
+1
-1
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
View file @
8504a285
...
...
@@ -341,7 +341,7 @@ public class DrmSharerConfig {
.
filter
(
item
->
item
.
getOpenId
().
equals
(
openId
))
.
filter
(
item
->
null
==
productId
||
item
.
getProductId
().
equals
(
String
.
valueOf
(
productId
)))
.
findFirst
();
if
(
sharerProductCommissionOpt
.
isPresent
())
{
if
(
sharerProductCommissionOpt
.
isPresent
())
{
// 返回推客商品分佣
return
sharerProductCommissionOpt
.
get
().
getCommissionRatio
();
}
...
...
@@ -350,7 +350,7 @@ public class DrmSharerConfig {
.
stream
()
.
filter
(
item
->
item
.
getOpenId
().
equals
(
openId
))
.
findFirst
();
if
(
sharerCommissionOpt
.
isPresent
())
{
if
(
sharerCommissionOpt
.
isPresent
())
{
// 返回推客分佣
return
sharerCommissionOpt
.
get
().
getCommissionRatio
();
}
...
...
@@ -464,20 +464,17 @@ public class DrmSharerConfig {
if
(
null
==
sharerProductCommission
)
{
sharerProductCommission
=
new
SharerProductCommission
();
sharerProductCommission
.
setOpenId
(
openId
);
sharerProductCommission
.
setSharerAppid
(
sharerAppid
);
sharerProductCommission
.
setProductId
(
productId
);
sharerProductCommission
.
setCommissionRatio
(
commissionRatio
);
sharerProductCommission
.
setCommissionType
(
CommissionTypeEnum
.
PLATFORM
.
getCode
());
sharerProductCommission
.
setUnset
(
unsetEnum
.
getCode
());
sharerProductCommission
.
setCreateTime
(
now
);
sharerProductCommission
.
setUpdateTime
(
now
);
}
sharerProductCommission
.
setSharerAppid
(
sharerAppid
);
sharerProductCommission
.
setCommissionRatio
(
commissionRatio
);
sharerProductCommission
.
setCommissionType
(
CommissionTypeEnum
.
PLATFORM
.
getCode
().
toString
());
sharerProductCommission
.
setUnset
(
unsetEnum
.
getCode
());
sharerProductCommission
.
setUpdateTime
(
now
);
if
(
null
==
sharerProductCommission
.
getId
())
{
sharerProductCommissionMapper
.
insert
(
sharerProductCommission
);
}
else
{
sharerProductCommission
.
setSharerAppid
(
sharerAppid
);
sharerProductCommission
.
setCommissionRatio
(
commissionRatio
);
sharerProductCommission
.
setCommissionType
(
CommissionTypeEnum
.
PLATFORM
.
getCode
());
sharerProductCommission
.
setUnset
(
unsetEnum
.
getCode
());
sharerProductCommission
.
setUpdateTime
(
now
);
sharerProductCommissionMapper
.
updateById
(
sharerProductCommission
);
}
}
...
...
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/UserServiceImpl.java
View file @
8504a285
...
...
@@ -112,7 +112,7 @@ public class UserServiceImpl implements IUserService {
.
divide
(
wechatMultiplier
)
.
setScale
(
2
,
RoundingMode
.
HALF_UP
);
sharerInfo
.
setCommissionRatio
(
commissionRatio
);
String
commissionType
=
null
!=
sharerInfoVO
.
getCommission_type
()
?
sharerInfoVO
.
getCommission_type
().
toString
()
:
CommissionTypeEnum
.
PLATFORM
.
getCode
();
Integer
commissionType
=
null
!=
sharerInfoVO
.
getCommission_type
()
?
sharerInfoVO
.
getCommission_type
()
:
CommissionTypeEnum
.
PLATFORM
.
getCode
();
sharerInfo
.
setCommissionType
(
commissionType
);
// 刷新缓存
loginUserHelper
.
setLoginUserInfo
(
loginUserInfo
.
getAccessToken
(),
sharerInfoVO
.
getSharer_appid
());
...
...
yanxuan-wx-store-sharer-dal/src/main/java/com/netease/yanxuan/wx/store/sharer/dal/meta/model/po/SharerInfo.java
View file @
8504a285
...
...
@@ -44,7 +44,7 @@ public class SharerInfo implements Serializable {
/**
* 分佣类型【0:平台分佣 1:机构分佣】
*/
private
String
commissionType
;
private
Integer
commissionType
;
/**
* 创建时间
*/
...
...
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/meta/enums/CommissionTypeEnum.java
View file @
8504a285
...
...
@@ -11,9 +11,9 @@ import lombok.RequiredArgsConstructor;
@Getter
@RequiredArgsConstructor
public
enum
CommissionTypeEnum
{
PLATFORM
(
"0"
,
"平台分佣"
),
AGENCY
(
"1"
,
"机构分佣"
);
PLATFORM
(
0
,
"平台分佣"
),
AGENCY
(
1
,
"机构分佣"
);
private
final
String
code
;
private
final
Integer
code
;
private
final
String
desc
;
}
\ No newline at end of file
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/meta/model/bo/WeChatSetSharerCommissionBO.java
View file @
8504a285
...
...
@@ -22,7 +22,7 @@ public class WeChatSetSharerCommissionBO implements Serializable {
/**
* 分佣类型【 0:平台分佣, 1:机构自己分佣】
*/
private
String
commission_type
;
private
Integer
commission_type
;
/**
* 平台分佣时的分佣比例,范围为【100000 - 900000】,代表【10%-90%】
*/
...
...
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