记得上下班打卡 | 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
03fb3270
Commit
03fb3270
authored
Sep 19, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opt;
parent
f85a555b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
7 deletions
+43
-7
FeignPlatformCandyTaskClient.java
...ice/feign/platform/task/FeignPlatformCandyTaskClient.java
+4
-4
PlatformTaskHandler.java
...et/service/executor/main/handler/PlatformTaskHandler.java
+39
-3
No files found.
liquidnet-bus-feign/liquidnet-api-feign-platform/src/main/java/com/liquidnet/service/feign/platform/task/FeignPlatformCandyTaskClient.java
View file @
03fb3270
...
@@ -17,14 +17,14 @@ import org.springframework.web.bind.annotation.PutMapping;
...
@@ -17,14 +17,14 @@ import org.springframework.web.bind.annotation.PutMapping;
public
interface
FeignPlatformCandyTaskClient
{
public
interface
FeignPlatformCandyTaskClient
{
@PutMapping
(
"ccoupon/task/mgt/issue/coupons"
)
@PutMapping
(
"ccoupon/task/mgt/issue/coupons"
)
ResponseDto
<
String
>
i
ssueCoupons
();
ResponseDto
<
String
>
mgtI
ssueCoupons
();
@PutMapping
(
"ccoupon/task/due/redeem"
)
@PutMapping
(
"ccoupon/task/due/redeem"
)
ResponseDto
<
String
>
p
rocessForRedeem
();
ResponseDto
<
String
>
dueP
rocessForRedeem
();
@PutMapping
(
"ccoupon/task/due/common"
)
@PutMapping
(
"ccoupon/task/due/common"
)
ResponseDto
<
String
>
p
rocessForCommon
();
ResponseDto
<
String
>
dueP
rocessForCommon
();
@PutMapping
(
"ccoupon/task/due/user"
)
@PutMapping
(
"ccoupon/task/due/user"
)
ResponseDto
<
String
>
p
rocessForUser
();
ResponseDto
<
String
>
dueP
rocessForUser
();
}
}
liquidnet-bus-service/liquidnet-service-executor-all/liquidnet-service-executor-main/src/main/java/com/liquidnet/service/executor/main/handler/PlatformTaskHandler.java
View file @
03fb3270
...
@@ -33,12 +33,48 @@ public class PlatformTaskHandler {
...
@@ -33,12 +33,48 @@ public class PlatformTaskHandler {
}
}
}
}
@XxlJob
(
value
=
"sev-platform:candyCouponMgtIssueCoupons"
)
public
ReturnT
<
String
>
candyCouponMgtIssueCoupons
()
{
try
{
ResponseDto
<
String
>
dto
=
feignPlatformCandyTaskClient
.
mgtIssueCoupons
();
log
.
info
(
"result of handler:{}"
,
dto
.
toJson
());
return
new
ReturnT
<>(
dto
.
toJson
());
}
catch
(
Exception
e
)
{
log
.
error
(
"exception of handler:{}"
,
e
.
getMessage
(),
e
);
return
ReturnT
.
FAIL
;
}
}
@XxlJob
(
value
=
"sev-platform:candyCouponIssuanceHandler"
)
@XxlJob
(
value
=
"sev-platform:candyCouponIssuanceHandler"
)
public
ReturnT
<
String
>
candyCoupon
IssuanceHandler
()
{
public
ReturnT
<
String
>
candyCoupon
DueProcessForRedeem
()
{
try
{
try
{
ResponseDto
<
String
>
dto
=
feignPlatformCandyTaskClient
.
issueCoupons
();
ResponseDto
<
String
>
dto
=
feignPlatformCandyTaskClient
.
dueProcessForRedeem
();
log
.
info
(
"result of handler:{}"
,
dto
.
toJson
());
log
.
info
(
"result of handler:{}"
,
dto
.
toJson
());
return
ReturnT
.
SUCCESS
;
return
new
ReturnT
<>(
dto
.
toJson
());
}
catch
(
Exception
e
)
{
log
.
error
(
"exception of handler:{}"
,
e
.
getMessage
(),
e
);
return
ReturnT
.
FAIL
;
}
}
@XxlJob
(
value
=
"sev-platform:candyCouponDueProcessForCommon"
)
public
ReturnT
<
String
>
candyCouponDueProcessForCommon
()
{
try
{
ResponseDto
<
String
>
dto
=
feignPlatformCandyTaskClient
.
dueProcessForCommon
();
log
.
info
(
"result of handler:{}"
,
dto
.
toJson
());
return
new
ReturnT
<>(
dto
.
toJson
());
}
catch
(
Exception
e
)
{
log
.
error
(
"exception of handler:{}"
,
e
.
getMessage
(),
e
);
return
ReturnT
.
FAIL
;
}
}
@XxlJob
(
value
=
"sev-platform:candyCouponDueProcessForUser"
)
public
ReturnT
<
String
>
candyCouponDueProcessForUser
()
{
try
{
ResponseDto
<
String
>
dto
=
feignPlatformCandyTaskClient
.
dueProcessForUser
();
log
.
info
(
"result of handler:{}"
,
dto
.
toJson
());
return
new
ReturnT
<>(
dto
.
toJson
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"exception of handler:{}"
,
e
.
getMessage
(),
e
);
log
.
error
(
"exception of handler:{}"
,
e
.
getMessage
(),
e
);
return
ReturnT
.
FAIL
;
return
ReturnT
.
FAIL
;
...
...
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