Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
Overview
Overview
Details
Activity
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
黄营
datax-cloud
Commits
90b6917d
Commit
90b6917d
authored
Sep 23, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
068e37b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
DataApiServiceImpl.java
.../service/data/market/service/impl/DataApiServiceImpl.java
+8
-2
No files found.
datax-modules/data-market-service-parent/data-market-service/src/main/java/cn/datax/service/data/market/service/impl/DataApiServiceImpl.java
View file @
90b6917d
...
...
@@ -363,7 +363,10 @@ public class DataApiServiceImpl extends BaseServiceImpl<DataApiDao, DataApiEntit
@Override
public
void
releaseDataApi
(
String
id
)
{
String
obj
=
(
String
)
Optional
.
ofNullable
(
rabbitTemplate
.
convertSendAndReceive
(
RabbitMqConstant
.
FANOUT_API_QUEUE
,
""
,
id
)).
orElse
(
""
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"id"
,
id
);
map
.
put
(
"type"
,
"1"
);
String
obj
=
(
String
)
Optional
.
ofNullable
(
rabbitTemplate
.
convertSendAndReceive
(
RabbitMqConstant
.
FANOUT_API_QUEUE
,
""
,
map
)).
orElse
(
""
);
if
(
StrUtil
.
isNotBlank
(
obj
))
{
DataApiEntity
dataApiEntity
=
new
DataApiEntity
();
dataApiEntity
.
setId
(
id
);
...
...
@@ -374,7 +377,10 @@ public class DataApiServiceImpl extends BaseServiceImpl<DataApiDao, DataApiEntit
@Override
public
void
cancelDataApi
(
String
id
)
{
String
obj
=
(
String
)
Optional
.
ofNullable
(
rabbitTemplate
.
convertSendAndReceive
(
RabbitMqConstant
.
FANOUT_API_QUEUE
,
""
,
id
)).
orElse
(
""
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"id"
,
id
);
map
.
put
(
"type"
,
"2"
);
String
obj
=
(
String
)
Optional
.
ofNullable
(
rabbitTemplate
.
convertSendAndReceive
(
RabbitMqConstant
.
FANOUT_API_QUEUE
,
""
,
map
)).
orElse
(
""
);
if
(
StrUtil
.
isNotBlank
(
obj
))
{
DataApiEntity
dataApiEntity
=
new
DataApiEntity
();
dataApiEntity
.
setId
(
id
);
...
...
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