记得上下班打卡 | 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
881b9ce1
Commit
881b9ce1
authored
Nov 23, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cityVoteStat xxljob 支持逗号多type参数
parent
1cb4c86f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
SweetCityVoteTaskHandler.java
...rvice/executor/main/handler/SweetCityVoteTaskHandler.java
+11
-4
No files found.
liquidnet-bus-service/liquidnet-service-executor-all/liquidnet-service-executor-main/src/main/java/com/liquidnet/service/executor/main/handler/SweetCityVoteTaskHandler.java
View file @
881b9ce1
...
@@ -23,11 +23,18 @@ public class SweetCityVoteTaskHandler {
...
@@ -23,11 +23,18 @@ public class SweetCityVoteTaskHandler {
public
ReturnT
<
String
>
cityVoteStatHandler
()
{
public
ReturnT
<
String
>
cityVoteStatHandler
()
{
try
{
try
{
String
jobParam
=
XxlJobHelper
.
getJobParam
();
//执行参数
String
jobParam
=
XxlJobHelper
.
getJobParam
();
//执行参数
log
.
info
(
"jobParam = "
+
Integer
.
parseInt
(
jobParam
)
);
log
.
info
(
"jobParam = "
+
jobParam
);
Boolean
data
=
feignSweetTaskActivityClient
.
setStatList
(
Integer
.
parseInt
(
jobParam
)).
getData
(
);
String
[]
paramArray
=
jobParam
.
split
(
","
);
log
.
info
(
"cityVoteStatHandler:结果:{}"
,
data
);
ReturnT
<
String
>
success
=
ReturnT
.
SUCCESS
;
ReturnT
<
String
>
success
=
ReturnT
.
SUCCESS
;
success
.
setMsg
(
String
.
valueOf
(
data
));
for
(
String
type
:
paramArray
)
{
log
.
info
(
"type = "
+
type
);
Boolean
data
=
feignSweetTaskActivityClient
.
setStatList
(
Integer
.
parseInt
(
type
)).
getData
();
log
.
info
(
"cityVoteStatHandler:结果:{}"
,
data
);
success
.
setMsg
(
String
.
valueOf
(
data
));
}
return
success
;
return
success
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"exception of handler:{}"
,
e
.
getMessage
(),
e
);
log
.
error
(
"exception of handler:{}"
,
e
.
getMessage
(),
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