提交 c5ac3abc authored 作者: 000516's avatar 000516 提交者: Coding

拉取飞书组织列表时,人员信息取消账号是否停用修改

拉取飞书组织列表时,人员信息取消账号是否停用修改
...@@ -118,6 +118,12 @@ ...@@ -118,6 +118,12 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
package com.sfa.job.domain.system.dao; package com.sfa.job.domain.system.dao;
import com.alibaba.fastjson2.JSONObject; import com.alibaba.fastjson2.JSONObject;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.sfa.common.core.enums.StatusType; import com.sfa.common.core.enums.StatusType;
import com.sfa.job.domain.system.entity.SysDept; import com.sfa.job.domain.system.entity.SysDept;
...@@ -18,6 +19,7 @@ import java.util.Map; ...@@ -18,6 +19,7 @@ import java.util.Map;
* @describe : * @describe :
*/ */
@Service @Service
@DS("master")
public class SysDeptDaoImpl implements ISysDeptDao{ public class SysDeptDaoImpl implements ISysDeptDao{
@Autowired @Autowired
SysDeptMapper sysDeptMapper; SysDeptMapper sysDeptMapper;
......
...@@ -13,6 +13,7 @@ import com.lark.oapi.service.contact.v3.model.ChildrenDepartmentResp; ...@@ -13,6 +13,7 @@ import com.lark.oapi.service.contact.v3.model.ChildrenDepartmentResp;
import com.lark.oapi.service.contact.v3.model.FindByDepartmentUserReq; import com.lark.oapi.service.contact.v3.model.FindByDepartmentUserReq;
import com.lark.oapi.service.contact.v3.model.FindByDepartmentUserResp; import com.lark.oapi.service.contact.v3.model.FindByDepartmentUserResp;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
...@@ -24,6 +25,11 @@ import org.springframework.stereotype.Component; ...@@ -24,6 +25,11 @@ import org.springframework.stereotype.Component;
@Component @Component
public class FeiShuUtil { public class FeiShuUtil {
@Value("${feishu.luzx.app_id}")
private String appId;
@Value("${feishu.luzx.app_secret}")
private String appSecret;
/** /**
* 根据部门父编码获取子部门 * 根据部门父编码获取子部门
* 公司编码:"0" * 公司编码:"0"
...@@ -74,6 +80,6 @@ public class FeiShuUtil { ...@@ -74,6 +80,6 @@ public class FeiShuUtil {
} }
private Client getClient() { private Client getClient() {
return Client.newBuilder("cli_a7dbe3ec7d9e5013", "WxiT7uIJNDbDpEGfVCXEwNNfN1A3RgUo").build(); return Client.newBuilder(appId, appSecret).build();
} }
} }
\ No newline at end of file
package com.sfa.job.xxljob; package com.sfa.job.xxljob.system;
import com.sfa.job.service.system.IDeptAndUserService; import com.sfa.job.service.system.IDeptAndUserService;
import com.xxl.job.core.handler.annotation.XxlJob; import com.xxl.job.core.handler.annotation.XxlJob;
......
...@@ -80,7 +80,6 @@ ...@@ -80,7 +80,6 @@
email = VALUES(email), email = VALUES(email),
phonenumber = VALUES(phonenumber), phonenumber = VALUES(phonenumber),
work_city_name = VALUES(work_city_name), work_city_name = VALUES(work_city_name),
status = VALUES(status),
update_by = VALUES(update_by), update_by = VALUES(update_by),
fs_open_id = VALUES(fs_open_id), fs_open_id = VALUES(fs_open_id),
update_user_id = VALUES(update_user_id); update_user_id = VALUES(update_user_id);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论