记得上下班打卡 | 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
2f4dbd87
Commit
2f4dbd87
authored
Dec 10, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setDrawAllList
parent
c7be1e63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
SweetIntegralActivityServiceImpl.java
.../sweet/service/impl/SweetIntegralActivityServiceImpl.java
+27
-0
No files found.
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetIntegralActivityServiceImpl.java
View file @
2f4dbd87
...
@@ -20,6 +20,7 @@ import java.time.LocalDateTime;
...
@@ -20,6 +20,7 @@ import java.time.LocalDateTime;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Random
;
/**
/**
* <p>
* <p>
...
@@ -87,6 +88,32 @@ public class SweetIntegralActivityServiceImpl extends ServiceImpl<SweetIntegralA
...
@@ -87,6 +88,32 @@ public class SweetIntegralActivityServiceImpl extends ServiceImpl<SweetIntegralA
Wrappers
.
lambdaQuery
(
SweetIntegralActivityDraw
.
class
).
eq
(
SweetIntegralActivityDraw:
:
getIntegralActivityId
,
integralActivityId
)
Wrappers
.
lambdaQuery
(
SweetIntegralActivityDraw
.
class
).
eq
(
SweetIntegralActivityDraw:
:
getIntegralActivityId
,
integralActivityId
)
.
last
(
"limit 0,35"
)
.
last
(
"limit 0,35"
)
);
);
List
<
String
>
asList
=
Arrays
.
asList
(
"冯"
,
"陈"
,
"褚"
,
"卫"
,
"蒋"
,
"沈"
,
"韩"
,
"杨"
,
"朱"
,
"秦"
,
"尤"
,
"许"
,
"何"
,
"吕"
,
"施"
,
"张"
,
"孔"
,
"曹"
,
"严"
,
"华"
,
"金"
,
"魏"
,
"陶"
,
"姜"
,
"戚"
,
"谢"
,
"邹"
,
"喻"
,
"柏"
,
"水"
,
"窦"
,
"章"
,
"云"
,
"苏"
,
"潘"
,
"葛"
,
"奚"
,
"范"
,
"彭"
,
"郎"
,
"鲁"
,
"韦"
,
"昌"
,
"马"
,
"苗"
,
"凤"
,
"花"
,
"方"
,
"俞"
,
"任"
,
"袁"
,
"柳"
,
"酆"
,
"鲍"
,
"史"
,
"唐"
,
"费"
,
"廉"
,
"岑"
,
"薛"
,
"雷"
,
"贺"
,
"倪"
,
"汤"
);
ArrayList
<
String
>
asListArr
=
new
ArrayList
(
asList
);
Random
random
=
new
Random
();
for
(
int
i
=
0
;
i
<
5
;
i
++)
{
asListArr
.
get
(
random
.
nextInt
(
asListArr
.
size
()));
SweetIntegralActivityDraw
activityDraw
=
SweetIntegralActivityDraw
.
getNew
();
}
redisDataUtils
.
setIntegralActivityDrawAll
(
integralActivityId
,
sweetIntegralActivityDraws
);
redisDataUtils
.
setIntegralActivityDrawAll
(
integralActivityId
,
sweetIntegralActivityDraws
);
return
ResponseDto
.
success
();
return
ResponseDto
.
success
();
...
...
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