Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lyf-beidou-cdp-api
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
zhoupeng
lyf-beidou-cdp-api
Commits
e1d836ff
Commit
e1d836ff
authored
Sep 20, 2023
by
zhoupeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交导入组织架构openapi接口
parent
1be452c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
SyncEmployeCdpController.java
...m/rome/order/api/controller/SyncEmployeCdpController.java
+11
-0
OrganizationRedisService.java
...m/rome/order/domain/service/OrganizationRedisService.java
+8
-0
OrganizationRedisServiceImpl.java
...der/domain/service/impl/OrganizationRedisServiceImpl.java
+11
-0
No files found.
src/main/java/com/rome/order/api/controller/SyncEmployeCdpController.java
View file @
e1d836ff
package
com
.
rome
.
order
.
api
.
controller
;
import
com.rome.arch.core.clientobject.Response
;
import
com.rome.order.domain.service.OrganizationRedisService
;
import
com.rome.order.domain.service.SyncEmployeCdpService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -24,6 +25,9 @@ public class SyncEmployeCdpController {
@Autowired
private
SyncEmployeCdpService
syncEmployeCdpService
;
@Autowired
private
OrganizationRedisService
organizationRedisService
;
@PostMapping
(
"/synAllEmpCdpBase"
)
@ApiOperation
(
value
=
"新Cdp同步查询员工(基础信息)"
)
public
Response
<
Boolean
>
synAllEmpCdpBase
(
Integer
pageNum
)
{
...
...
@@ -47,6 +51,13 @@ public class SyncEmployeCdpController {
}
@DeleteMapping
(
"/delOrgRedis"
)
@ApiOperation
(
value
=
"删除组织架构缓存信息"
)
public
Response
<
Boolean
>
delOrgRedis
(){
Boolean
flag
=
organizationRedisService
.
delOrgRedis
();
return
Response
.
builderSuccess
(
flag
);
}
}
src/main/java/com/rome/order/domain/service/OrganizationRedisService.java
View file @
e1d836ff
...
...
@@ -27,4 +27,12 @@ public interface OrganizationRedisService {
* @return
*/
List
<
OrgDTO
>
getAllOrgRedis
();
/**
* 删除组织架构缓存信息
* @return
*/
Boolean
delOrgRedis
();
}
src/main/java/com/rome/order/domain/service/impl/OrganizationRedisServiceImpl.java
View file @
e1d836ff
...
...
@@ -72,6 +72,17 @@ public class OrganizationRedisServiceImpl implements OrganizationRedisService {
return
organizationRedisDTOS
;
}
@Override
public
Boolean
delOrgRedis
()
{
try
{
redisService
.
delete
(
RedisConstant
.
DEPARTMENT_ORGANIZATION
);
return
true
;
}
catch
(
Exception
e
)
{
log
.
info
(
"---delOrgRedis出现异常--:{}"
,
JSON
.
toJSONString
(
e
.
getMessage
()));
return
false
;
}
}
/**
* 远程-获取到所有组织架构信息
...
...
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