记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
e5d4659b
Commit
e5d4659b
authored
Jun 30, 2026
by
wangyifan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-wyf-sqb-bug' into 'master'
收钱吧商品退款bug修复 See merge request
!431
parents
0146c258
9f3a5c4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
GoblinSqbServiceImpl.java
...net/service/goblin/service/impl/GoblinSqbServiceImpl.java
+5
-3
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinSqbServiceImpl.java
View file @
e5d4659b
...
@@ -6,6 +6,7 @@ import com.liquidnet.common.third.sqb.param.response.data.CouponQueryData;
...
@@ -6,6 +6,7 @@ import com.liquidnet.common.third.sqb.param.response.data.CouponQueryData;
import
com.liquidnet.common.third.sqb.param.response.data.CouponRefundData
;
import
com.liquidnet.common.third.sqb.param.response.data.CouponRefundData
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.goblin.constant.GoblinStatusConst
;
import
com.liquidnet.service.goblin.constant.GoblinStatusConst
;
import
com.liquidnet.service.goblin.dto.vo.*
;
import
com.liquidnet.service.goblin.dto.vo.*
;
...
@@ -116,7 +117,7 @@ public class GoblinSqbServiceImpl implements IGoblinSqbService {
...
@@ -116,7 +117,7 @@ public class GoblinSqbServiceImpl implements IGoblinSqbService {
@Override
@Override
public
ResponseDto
<
Boolean
>
refund
(
String
userId
,
String
orderId
,
String
reason
)
{
public
ResponseDto
<
Boolean
>
refund
(
String
userId
,
String
orderId
,
String
reason
)
{
log
.
info
(
"[收钱吧退款] 开始 userId={}, orderId={}"
,
userId
,
orderId
);
log
.
info
(
"[收钱吧
-
退款] 开始 userId={}, orderId={}"
,
userId
,
orderId
);
// 与详情接口一致:先主单 store + 商品,再收钱吧扩展;避免扩展单缺失却提示「订单不存在」
// 与详情接口一致:先主单 store + 商品,再收钱吧扩展;避免扩展单缺失却提示「订单不存在」
GoblinStoreOrderVo
storeOrderVo
=
goblinRedisUtils
.
getGoblinOrder
(
orderId
);
GoblinStoreOrderVo
storeOrderVo
=
goblinRedisUtils
.
getGoblinOrder
(
orderId
);
...
@@ -182,6 +183,7 @@ public class GoblinSqbServiceImpl implements IGoblinSqbService {
...
@@ -182,6 +183,7 @@ public class GoblinSqbServiceImpl implements IGoblinSqbService {
reason
,
reason
,
buildRequestId
(
IDGenerator
.
nextSnowId
())
buildRequestId
(
IDGenerator
.
nextSnowId
())
);
);
log
.
info
(
"[收钱吧-退款] 收钱吧退款响应: {}, orderId: {}."
,
JsonUtils
.
toJson
(
refundData
),
orderId
);
if
(
refundData
==
null
)
{
if
(
refundData
==
null
)
{
// 退款失败,回滚状态
// 退款失败,回滚状态
orderVo
.
setUpdatedAt
(
LocalDateTime
.
now
().
format
(
DTF
));
orderVo
.
setUpdatedAt
(
LocalDateTime
.
now
().
format
(
DTF
));
...
@@ -198,8 +200,8 @@ public class GoblinSqbServiceImpl implements IGoblinSqbService {
...
@@ -198,8 +200,8 @@ public class GoblinSqbServiceImpl implements IGoblinSqbService {
goblinSqbRedisUtils
.
setSqbOrder
(
orderId
,
orderVo
);
goblinSqbRedisUtils
.
setSqbOrder
(
orderId
,
orderVo
);
goblinRedisUtils
.
incrSkuStock
(
null
,
orderVo
.
getSkuId
(),
orderVo
.
getQuantity
());
goblinRedisUtils
.
incrSkuStock
(
null
,
orderVo
.
getSkuId
(),
orderVo
.
getQuantity
());
syncOrderStatus
(
orderId
,
3
);
//
syncOrderStatus(orderId, 3);
log
.
info
(
"[收钱吧
退款]
退款成功,orderId={}"
,
orderId
);
log
.
info
(
"[收钱吧
-退款] 调用收钱吧
退款成功,orderId={}"
,
orderId
);
return
ResponseDto
.
success
(
Boolean
.
TRUE
);
return
ResponseDto
.
success
(
Boolean
.
TRUE
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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