Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
5c67131a
Commit
5c67131a
authored
Sep 14, 2024
by
YG8429
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人工审核退款增加删除返佣和删除权益金日志记录
parent
ee38c84c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
RedisTask.java
share-quartz/src/main/java/share/quartz/task/RedisTask.java
+1
-1
CallbackServiceImpl.java
...n/java/share/system/service/impl/CallbackServiceImpl.java
+1
-1
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+27
-0
No files found.
share-quartz/src/main/java/share/quartz/task/RedisTask.java
View file @
5c67131a
...
@@ -431,7 +431,7 @@ public class RedisTask {
...
@@ -431,7 +431,7 @@ public class RedisTask {
EquityFundLog
equityFundLog
=
new
EquityFundLog
();
EquityFundLog
equityFundLog
=
new
EquityFundLog
();
equityFundLog
.
setEquityFund
(
addEquityFund
);
equityFundLog
.
setEquityFund
(
addEquityFund
);
equityFundLog
.
setEquityFundType
(
"1"
);
equityFundLog
.
setEquityFundType
(
"1"
);
equityFundLog
.
setOutTradeNo
(
sOrder
.
getO
utTrade
No
());
equityFundLog
.
setOutTradeNo
(
sOrder
.
getO
rder
No
());
equityFundLog
.
setTerminalTrace
(
sOrder
.
getOutTradeNo
());
equityFundLog
.
setTerminalTrace
(
sOrder
.
getOutTradeNo
());
equityFundLog
.
setUid
(
sharingActivities
.
getUid
());
equityFundLog
.
setUid
(
sharingActivities
.
getUid
());
equityFundLog
.
setNewUid
(
sharingActivities
.
getNewUid
());
equityFundLog
.
setNewUid
(
sharingActivities
.
getNewUid
());
...
...
share-system/src/main/java/share/system/service/impl/CallbackServiceImpl.java
View file @
5c67131a
...
@@ -471,7 +471,7 @@ public class CallbackServiceImpl implements CallbackService {
...
@@ -471,7 +471,7 @@ public class CallbackServiceImpl implements CallbackService {
wechatPayInfoService
.
updateById
(
wechatInfo
);
wechatPayInfoService
.
updateById
(
wechatInfo
);
//新增权益金日志
//新增权益金日志
addEquityFundLog
(
recharge
.
getConsumerId
(),
addEquityFundLog
(
recharge
.
getConsumerId
(),
recharge
.
getRechargeAmount
(),
recharge
.
get
OutTrad
eNo
(),
recharge
.
getTerminalTrace
(),
"0"
);
recharge
.
getRechargeAmount
(),
recharge
.
get
Recharg
eNo
(),
recharge
.
getTerminalTrace
(),
"0"
);
aFalse
=
Boolean
.
TRUE
;
aFalse
=
Boolean
.
TRUE
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"微信支付回调出错"
);
logger
.
error
(
"微信支付回调出错"
);
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
5c67131a
...
@@ -173,6 +173,13 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -173,6 +173,13 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
@Autowired
@Autowired
private
RechargeService
rechargeService
;
private
RechargeService
rechargeService
;
@Autowired
private
SharingActivitiesService
sharingActivitiesService
;
@Autowired
private
EquityFundLogService
equityFundLogService
;
private
final
static
Long
FIVE
=
5L
;
private
final
static
Long
FIVE
=
5L
;
...
@@ -478,6 +485,26 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -478,6 +485,26 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
}
}
}
}
if
(
request
.
getAmount
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
if
(
request
.
getAmount
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
if
(
sOrder
.
getStatus
().
equals
(
OrderStatusEnum
.
USED
.
getCode
()))
{
//查询次订单用户有没有上级用户
SharingActivities
sharingActivities
=
sharingActivitiesService
.
getOne
(
new
LambdaQueryWrapper
<
SharingActivities
>()
.
eq
(
SharingActivities:
:
getNewUid
,
sOrder
.
getConsumerId
()));
if
(
ObjectUtil
.
isNotEmpty
(
sharingActivities
))
{
//查询权益金日志记录
EquityFundLog
equityFundLog
=
equityFundLogService
.
getOne
(
new
LambdaQueryWrapper
<
EquityFundLog
>()
.
eq
(
EquityFundLog:
:
getNewUid
,
sOrder
.
getConsumerId
())
.
eq
(
EquityFundLog:
:
getOutTradeNo
,
sOrder
.
getOrderNo
())
.
eq
(
EquityFundLog:
:
getTerminalTrace
,
sOrder
.
getOutTradeNo
()));
if
(
ObjectUtil
.
isNotEmpty
(
equityFundLog
)){
ConsumerWallet
aConsumerWallet
=
consumerWalletService
.
getOne
(
new
LambdaQueryWrapper
<
ConsumerWallet
>()
.
eq
(
ConsumerWallet:
:
getConsumerId
,
sharingActivities
.
getUid
()));
equityFundLog
.
setEquityFund
(
equityFundLog
.
getEquityFund
().
negate
());
equityFundLogService
.
insertEquityFundLog
(
equityFundLog
);
aConsumerWallet
.
setEquityFund
(
aConsumerWallet
.
getEquityFund
().
subtract
(
equityFundLog
.
getEquityFund
()));
consumerWalletService
.
updateConsumerWallet
(
aConsumerWallet
);
}
}
}
// 退款金额大于0, 微信退款
// 退款金额大于0, 微信退款
//退款
//退款
if
(
sOrder
.
getPayType
().
equals
(
PayTypeEnum
.
WECHAT
.
getCode
()))
{
if
(
sOrder
.
getPayType
().
equals
(
PayTypeEnum
.
WECHAT
.
getCode
()))
{
...
...
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