记得上下班打卡 | 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
90c30e0e
Commit
90c30e0e
authored
Jul 03, 2025
by
wangyifan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doudou二期需求-添加活动名称
parent
55e30f76
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
SweetDouDouVo.java
...in/java/com/liquidnet/service/sweet/vo/SweetDouDouVo.java
+3
-0
SweetDoudouServiceImpl.java
...et/service/sweet/service/impl/SweetDoudouServiceImpl.java
+14
-0
No files found.
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/vo/SweetDouDouVo.java
View file @
90c30e0e
...
...
@@ -33,6 +33,9 @@ public class SweetDouDouVo implements Serializable, Cloneable {
@ApiModelProperty
(
"状态 1已登记 2未中签 3已中签 4已核销"
)
private
Integer
status
;
@ApiModelProperty
(
"活动名称"
)
private
String
activeTitle
;
private
static
final
SweetDouDouVo
obj
=
new
SweetDouDouVo
();
public
static
SweetDouDouVo
getNew
()
{
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetDoudouServiceImpl.java
View file @
90c30e0e
...
...
@@ -146,6 +146,20 @@ public class SweetDoudouServiceImpl extends ServiceImpl<SweetDoudouMapper, Sweet
if
(!
vo
.
getDoudouId
().
equals
(
param
.
getDoudouId
()))
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"90095"
));
}
List
<
SweetDoudouActive
>
sweetDoudouActiveList
=
redisDataUtils
.
getSweetDouDouActive
();
if
(
sweetDoudouActiveList
.
isEmpty
()){
log
.
info
(
"暂无活动"
);
return
ResponseDto
.
success
(
vo
);
}
List
<
SweetDoudouActive
>
sweetDoudouActives
=
sweetDoudouActiveList
.
stream
()
.
filter
(
s
->
s
.
getActiveId
().
equals
(
param
.
getActiveId
()))
.
collect
(
Collectors
.
toList
());
if
(!
sweetDoudouActives
.
isEmpty
())
{
vo
.
setActiveTitle
(
sweetDoudouActives
.
get
(
0
).
getTitle
());
}
return
ResponseDto
.
success
(
vo
);
}
...
...
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