记得上下班打卡 | 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
7be3d282
Commit
7be3d282
authored
May 07, 2026
by
姜秀龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sqb 再次支付
parent
388b2212
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
7 deletions
+52
-7
GoblinSqbOrderServiceImpl.java
...service/order/service/impl/GoblinSqbOrderServiceImpl.java
+26
-5
GoblinMongoUtils.java
...a/com/liquidnet/service/order/utils/GoblinMongoUtils.java
+16
-0
GoblinRedisUtils.java
...a/com/liquidnet/service/order/utils/GoblinRedisUtils.java
+10
-2
No files found.
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/GoblinSqbOrderServiceImpl.java
View file @
7be3d282
...
...
@@ -541,14 +541,35 @@ public class GoblinSqbOrderServiceImpl implements IGoblinSqbOrderService {
public
ResponseDto
<
GoblinSqbOrderCreateVo
>
repay
(
String
userId
,
String
orderId
)
{
log
.
info
(
"[收钱吧再次付款] userId={}, orderId={}"
,
userId
,
orderId
);
GoblinSqbOrderVo
orderVo
=
goblinSqbRedisUtils
.
getSqbOrder
(
orderId
);
if
(
orderVo
==
null
)
return
ResponseDto
.
failure
(
"订单不存在"
);
if
(!
userId
.
equals
(
orderVo
.
getUserId
()))
return
ResponseDto
.
failure
(
"无权限访问该订单"
);
GoblinStoreOrderVo
storeOrderVo
=
goblinRedisUtils
.
getGoblinOrder
(
orderId
);
if
(
storeOrderVo
==
null
||
!
Integer
.
valueOf
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_0
.
getValue
()).
equals
(
storeOrderVo
.
getStatus
()))
{
if
(
storeOrderVo
==
null
)
{
return
ResponseDto
.
failure
(
"订单不存在"
);
}
if
(!
userId
.
equals
(
storeOrderVo
.
getUserId
()))
{
return
ResponseDto
.
failure
(
"无权限访问该订单"
);
}
if
(!
Integer
.
valueOf
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_0
.
getValue
()).
equals
(
storeOrderVo
.
getStatus
()))
{
return
ResponseDto
.
failure
(
"订单状态不支持再次付款(仅待支付状态可重新拉起)"
);
}
List
<
String
>
orderSkuVoIds
=
storeOrderVo
.
getOrderSkuVoIds
();
if
(
CollectionUtils
.
isEmpty
(
orderSkuVoIds
))
{
return
ResponseDto
.
failure
(
"订单数据异常"
);
}
GoblinOrderSkuVo
firstSkuVo
=
goblinRedisUtils
.
getGoblinOrderSkuVo
(
orderSkuVoIds
.
get
(
0
));
if
(
firstSkuVo
==
null
)
{
return
ResponseDto
.
failure
(
"订单数据异常"
);
}
if
(!
Integer
.
valueOf
(
33
).
equals
(
firstSkuVo
.
getSkuType
()))
{
return
ResponseDto
.
failure
(
"该订单非收钱吧订单"
);
}
GoblinSqbOrderVo
orderVo
=
goblinSqbRedisUtils
.
getSqbOrder
(
orderId
);
if
(
orderVo
==
null
)
{
return
ResponseDto
.
failure
(
"收钱吧支付信息已失效,请取消订单后重新下单"
);
}
if
(!
userId
.
equals
(
orderVo
.
getUserId
()))
{
return
ResponseDto
.
failure
(
"无权限访问该订单"
);
}
if
(
orderVo
.
getSqbAcquiringSn
()
==
null
)
{
return
ResponseDto
.
failure
(
"订单数据异常,缺少收单号"
);
}
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/GoblinMongoUtils.java
View file @
7be3d282
...
...
@@ -56,6 +56,22 @@ public class GoblinMongoUtils {
object
);
}
public
GoblinStoreOrderVo
getGoblinStoreOrderVoByOrderId
(
String
orderId
)
{
if
(
orderId
==
null
||
orderId
.
trim
().
isEmpty
())
{
return
null
;
}
return
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"orderId"
).
is
(
orderId
)),
GoblinStoreOrderVo
.
class
,
GoblinStoreOrderVo
.
class
.
getSimpleName
());
}
public
GoblinOrderSkuVo
getGoblinOrderSkuVoByOrderSkuId
(
String
orderSkuId
)
{
if
(
orderSkuId
==
null
||
orderSkuId
.
trim
().
isEmpty
())
{
return
null
;
}
return
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"orderSkuId"
).
is
(
orderSkuId
)),
GoblinOrderSkuVo
.
class
,
GoblinOrderSkuVo
.
class
.
getSimpleName
());
}
//添加 订单SkuVo全量
public
GoblinOrderSkuVo
insertGoblinOrderSkuVo
(
GoblinOrderSkuVo
vo
)
{
return
mongoTemplate
.
insert
(
vo
,
GoblinOrderSkuVo
.
class
.
getSimpleName
());
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/GoblinRedisUtils.java
View file @
7be3d282
...
...
@@ -396,7 +396,11 @@ public class GoblinRedisUtils {
String
redisKey
=
GoblinRedisConst
.
REDIS_GOBLIN_ORDER
.
concat
(
orderId
);
Object
obj
=
redisUtil
.
get
(
redisKey
);
if
(
obj
==
null
)
{
return
null
;
GoblinStoreOrderVo
fromMongo
=
goblinMongoUtils
.
getGoblinStoreOrderVoByOrderId
(
orderId
);
if
(
fromMongo
!=
null
)
{
redisUtil
.
set
(
redisKey
,
fromMongo
);
}
return
fromMongo
;
}
else
{
return
(
GoblinStoreOrderVo
)
obj
;
}
...
...
@@ -407,7 +411,11 @@ public class GoblinRedisUtils {
String
redisKey
=
GoblinRedisConst
.
REDIS_GOBLIN_ORDER_SKU
.
concat
(
orderSkuId
);
Object
obj
=
redisUtil
.
get
(
redisKey
);
if
(
obj
==
null
)
{
return
null
;
GoblinOrderSkuVo
fromMongo
=
goblinMongoUtils
.
getGoblinOrderSkuVoByOrderSkuId
(
orderSkuId
);
if
(
fromMongo
!=
null
)
{
redisUtil
.
set
(
redisKey
,
fromMongo
);
}
return
fromMongo
;
}
else
{
return
(
GoblinOrderSkuVo
)
obj
;
}
...
...
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