记得上下班打卡 | 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
7e4a1278
Commit
7e4a1278
authored
Dec 28, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minusMinutes
parent
c59e76e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
TaskController.java
...net/service/platform/controller/sweet/TaskController.java
+7
-3
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/sweet/TaskController.java
View file @
7e4a1278
...
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -47,7 +48,7 @@ public class TaskController {
...
@@ -47,7 +48,7 @@ public class TaskController {
int
size
=
1000
;
int
size
=
1000
;
LocalDateTime
localDateTime
=
LocalDateTime
.
now
();
LocalDateTime
localDateTime
=
LocalDateTime
.
now
();
LocalDateTime
newTime
=
localDateTime
.
minus
Hour
s
(
10
);
LocalDateTime
newTime
=
localDateTime
.
minus
Minute
s
(
10
);
// String timeStr = "2021-12-28 00:00:00";
// String timeStr = "2021-12-28 00:00:00";
// DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
// DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
// LocalDateTime dateTime = LocalDateTime.parse(timeStr, df);
// LocalDateTime dateTime = LocalDateTime.parse(timeStr, df);
...
@@ -62,7 +63,9 @@ public class TaskController {
...
@@ -62,7 +63,9 @@ public class TaskController {
countPage
=
countPage
+
1
;
countPage
=
countPage
+
1
;
for
(
int
page
=
0
;
page
<
countPage
;
page
++)
{
for
(
int
page
=
0
;
page
<
countPage
;
page
++)
{
List
<
SweetWechatUsers
>
sweetWechatUsers
=
usersMapper
.
selectList
(
List
<
SweetWechatUsers
>
sweetWechatUsers
=
usersMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
SweetWechatUsers
.
class
).
last
(
"limit "
+
(
page
*
size
)
+
","
+
((
page
+
1
)
*
size
))
Wrappers
.
lambdaQuery
(
SweetWechatUsers
.
class
)
.
gt
(
SweetWechatUsers:
:
getCreatedAt
,
newTime
)
.
last
(
"limit "
+
(
page
*
size
)
+
","
+
((
page
+
1
)
*
size
))
);
);
for
(
SweetWechatUsers
info
:
sweetWechatUsers
)
{
for
(
SweetWechatUsers
info
:
sweetWechatUsers
)
{
try
{
try
{
...
@@ -70,7 +73,8 @@ public class TaskController {
...
@@ -70,7 +73,8 @@ public class TaskController {
if
(
sweetAppletUsers
!=
null
)
{
if
(
sweetAppletUsers
!=
null
)
{
if
(
sweetAppletUsers
.
getUserId
()
!=
null
&&
!
sweetAppletUsers
.
getUserId
().
isEmpty
())
{
if
(
sweetAppletUsers
.
getUserId
()
!=
null
&&
!
sweetAppletUsers
.
getUserId
().
isEmpty
())
{
log
.
info
(
"followDoTask userId:{}"
,
sweetAppletUsers
.
getUserId
());
log
.
info
(
"followDoTask userId:{}"
,
sweetAppletUsers
.
getUserId
());
feignStoneIntegralClient
.
doTask
(
4
,
sweetAppletUsers
.
getUserId
());
ResponseDto
<
HashMap
<
String
,
Object
>>
hashMapResponseDto
=
feignStoneIntegralClient
.
doTask
(
4
,
sweetAppletUsers
.
getUserId
());
//log.info("followDoTask res:{}", hashMapResponseDto);
}
}
}
}
}
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