记得上下班打卡 | 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
6df0b4e5
Commit
6df0b4e5
authored
May 20, 2025
by
wangyifan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
福袋补充需求-验码权限、核销接口
parent
bae54a48
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
KylinLuckyBagCodeDetailVo.java
...idnet/service/kylin/dto/vo/KylinLuckyBagCodeDetailVo.java
+1
-1
liquidnet-service-kylin.yml
...t-bus-config/liquidnet-config/liquidnet-service-kylin.yml
+3
-0
KylinLuckyBagServiceImpl.java
.../service/kylin/service/impl/KylinLuckyBagServiceImpl.java
+7
-6
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/KylinLuckyBagCodeDetailVo.java
View file @
6df0b4e5
...
@@ -25,7 +25,7 @@ public class KylinLuckyBagCodeDetailVo {
...
@@ -25,7 +25,7 @@ public class KylinLuckyBagCodeDetailVo {
private
String
code
;
private
String
code
;
@ApiModelProperty
(
value
=
"状态 0:不可用 1:可用 2:已领取"
)
@ApiModelProperty
(
value
=
"状态 0:不可用 1:可用 2:已领取"
)
private
int
state
;
private
int
useStatus
;
@ApiModelProperty
(
value
=
"发放时间"
)
@ApiModelProperty
(
value
=
"发放时间"
)
@JsonDeserialize
(
using
=
LocalDateTimeDeserializer
.
class
)
@JsonDeserialize
(
using
=
LocalDateTimeDeserializer
.
class
)
...
...
liquidnet-bus-config/liquidnet-config/liquidnet-service-kylin.yml
View file @
6df0b4e5
...
@@ -154,6 +154,9 @@ global-auth:
...
@@ -154,6 +154,9 @@ global-auth:
# 场地摄像头列表
# 场地摄像头列表
-
${liquidnet.info.context}/camera/list
-
${liquidnet.info.context}/camera/list
-
${liquidnet.info.context}/inner/**
-
${liquidnet.info.context}/inner/**
# 福袋
-
${liquidnet.info.context}/luckyBag/scope
-
${liquidnet.info.context}/luckyBag/code/**
oncheck-url-pattern
:
oncheck-url-pattern
:
-
${liquidnet.info.context}/order/details
-
${liquidnet.info.context}/order/details
-
${liquidnet.info.context}/order/transfer*
-
${liquidnet.info.context}/order/transfer*
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinLuckyBagServiceImpl.java
View file @
6df0b4e5
...
@@ -108,8 +108,9 @@ public class KylinLuckyBagServiceImpl implements IKylinLuckyBagService {
...
@@ -108,8 +108,9 @@ public class KylinLuckyBagServiceImpl implements IKylinLuckyBagService {
.
eq
(
KylinLuckyBagScope:
:
getState
,
LuckyBagStatusEnum
.
AVAILABLE_STATUS_AVAILABLE
.
getValue
());
.
eq
(
KylinLuckyBagScope:
:
getState
,
LuckyBagStatusEnum
.
AVAILABLE_STATUS_AVAILABLE
.
getValue
());
List
<
KylinLuckyBagScope
>
kylinLuckyBagScopes
=
kylinLuckyBagScopeMapper
.
selectList
(
queryWrapper
);
List
<
KylinLuckyBagScope
>
kylinLuckyBagScopes
=
kylinLuckyBagScopeMapper
.
selectList
(
queryWrapper
);
if
(
kylinLuckyBagScopes
.
isEmpty
())
{
if
(
kylinLuckyBagScopes
.
isEmpty
())
{
log
.
info
(
"[getLuckyBagListScope] 验码福袋列表为空, mobile: {}."
,
mobile
);
log
.
info
(
"[getLuckyBagListScope] 暂无验码权限, mobile: {}."
,
mobile
);
return
Collections
.
emptyList
();
ErrorMapping
.
ErrorMessage
errorMessage
=
ErrorMapping
.
get
(
"20003"
);
throw
new
LiquidnetServiceException
(
errorMessage
.
getCode
(),
errorMessage
.
getMessage
());
}
}
// 查询福袋列表
// 查询福袋列表
...
@@ -154,13 +155,13 @@ public class KylinLuckyBagServiceImpl implements IKylinLuckyBagService {
...
@@ -154,13 +155,13 @@ public class KylinLuckyBagServiceImpl implements IKylinLuckyBagService {
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20800"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20800"
));
}
}
OrderDetailsVo
vo
=
orderTicketsService
.
orderDetails
(
rewardUser
.
getOrderId
());
KylinOrderTicketVo
orderTicketVo
=
dataUtils
.
getOrderTicketVo
(
rewardUser
.
getOrderId
());
if
(
v
o
==
null
)
{
if
(
orderTicketV
o
==
null
)
{
log
.
error
(
"订单详情为空, orderId: {}."
,
rewardUser
.
getOrderId
());
log
.
error
(
"订单详情为空, orderId: {}."
,
rewardUser
.
getOrderId
());
iFeishuBotService
.
sendTextMessage
(
"订单不存在, orderId: "
+
rewardUser
.
getOrderId
());
iFeishuBotService
.
sendTextMessage
(
"订单不存在, orderId: "
+
rewardUser
.
getOrderId
());
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20801"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"20801"
));
}
}
return
ResponseDto
.
success
(
buildCodeDetailVo
(
rewardUser
,
vo
.
getOrderTicketVo
()
));
return
ResponseDto
.
success
(
buildCodeDetailVo
(
rewardUser
,
orderTicketVo
));
}
}
@Override
@Override
...
@@ -199,7 +200,7 @@ public class KylinLuckyBagServiceImpl implements IKylinLuckyBagService {
...
@@ -199,7 +200,7 @@ public class KylinLuckyBagServiceImpl implements IKylinLuckyBagService {
detailVo
.
setLuckyBagName
(
luckyBag
.
getName
());
detailVo
.
setLuckyBagName
(
luckyBag
.
getName
());
}
}
detailVo
.
setCode
(
rewardUser
.
getCode
());
detailVo
.
setCode
(
rewardUser
.
getCode
());
detailVo
.
set
State
(
rewardUser
.
getState
());
detailVo
.
set
UseStatus
(
rewardUser
.
getState
());
detailVo
.
setCreatedAt
(
rewardUser
.
getCreatedAt
());
detailVo
.
setCreatedAt
(
rewardUser
.
getCreatedAt
());
detailVo
.
setUpdatedAt
(
rewardUser
.
getUpdatedAt
());
detailVo
.
setUpdatedAt
(
rewardUser
.
getUpdatedAt
());
detailVo
.
setUserInfo
(
getUserInfo
(
orderTicketVo
));
detailVo
.
setUserInfo
(
getUserInfo
(
orderTicketVo
));
...
...
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