Commit e1d836ff by zhoupeng

提交导入组织架构openapi接口

parent 1be452c4
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);
}
}
......@@ -27,4 +27,12 @@ public interface OrganizationRedisService {
* @return
*/
List<OrgDTO> getAllOrgRedis();
/**
* 删除组织架构缓存信息
* @return
*/
Boolean delOrgRedis();
}
......@@ -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;
}
}
/**
* 远程-获取到所有组织架构信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment