Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
e84e40b6
Commit
e84e40b6
authored
May 28, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口初始化
parent
a218fffb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
3 deletions
+38
-3
StaffClerkRelationService.java
...ban/manage/service/service/StaffClerkRelationService.java
+21
-0
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+14
-0
KafkaMessageServiceImpl.java
...c/haoban/manage/service/task/KafkaMessageServiceImpl.java
+3
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StaffClerkRelationService.java
View file @
e84e40b6
...
@@ -11,4 +11,25 @@ public interface StaffClerkRelationService {
...
@@ -11,4 +11,25 @@ public interface StaffClerkRelationService {
List
<
StaffClerkRelationDTO
>
listBindCodeByStaffId
(
List
<
String
>
enterpriseIdList
,
String
staffId
);
List
<
StaffClerkRelationDTO
>
listBindCodeByStaffId
(
List
<
String
>
enterpriseIdList
,
String
staffId
);
/**
* 删除绑定
* @param clerkId
* @return
*/
public
boolean
delBind
(
String
clerkId
);
/**
* 绑定
* @param dto
* @return
*/
public
boolean
bind
(
StaffClerkRelationDTO
dto
);
/**
* 根据clerkId 更新数据
* @param dto
* @return
*/
public
boolean
updateByClerkId
(
StaffClerkRelationDTO
dto
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
e84e40b6
...
@@ -25,4 +25,18 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -25,4 +25,18 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
return
EntityUtil
.
changeEntityListByJSON
(
StaffClerkRelationDTO
.
class
,
mapper
.
listBindCodeByStaffId
(
enterpriseIdList
,
staffId
));
return
EntityUtil
.
changeEntityListByJSON
(
StaffClerkRelationDTO
.
class
,
mapper
.
listBindCodeByStaffId
(
enterpriseIdList
,
staffId
));
}
}
@Override
public
boolean
delBind
(
String
clerkId
)
{
return
false
;
}
@Override
public
boolean
bind
(
StaffClerkRelationDTO
dto
)
{
return
false
;
}
@Override
public
boolean
updateByClerkId
(
StaffClerkRelationDTO
dto
)
{
return
false
;
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/KafkaMessageServiceImpl.java
View file @
e84e40b6
...
@@ -37,12 +37,12 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
...
@@ -37,12 +37,12 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
@Override
@Override
public
void
onMessage
(
ConsumerRecord
<
String
,
GicRecord
>
record
)
{
public
void
onMessage
(
ConsumerRecord
<
String
,
GicRecord
>
record
)
{
logger
.
info
(
"message:{}"
,
JSONObject
.
toJSONString
(
record
.
value
()));
logger
.
info
(
"message:{}"
,
JSONObject
.
toJSONString
(
record
.
value
()));
String
message
=
JSONObject
.
toJSONString
(
record
.
value
());
if
(
record
.
value
()==
null
){
if
(
StringUtils
.
isBlank
(
message
)){
logger
.
info
(
"数据为空"
);
return
;
return
;
}
}
BinlogBasePojo
pojo
=
binlogChange
(
record
.
value
());
BinlogBasePojo
pojo
=
binlogChange
(
record
.
value
());
logger
.
info
(
"
pojo
:{}"
,
JSONObject
.
toJSONString
(
pojo
));
logger
.
info
(
"
binlog数据
:{}"
,
JSONObject
.
toJSONString
(
pojo
));
}
}
...
...
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