|
@@ -22,10 +22,11 @@ public class TeacherUtils {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 处理教职工信息
|
|
* 处理教职工信息
|
|
|
|
|
+ *
|
|
|
* @param data 教职工
|
|
* @param data 教职工
|
|
|
* @return 结果
|
|
* @return 结果
|
|
|
*/
|
|
*/
|
|
|
- public static List<ResourcePerson> getSyncTeacher(JSONObject data){
|
|
|
|
|
|
|
+ public static List<ResourcePerson> getSyncTeacher(JSONObject data) {
|
|
|
List<ResourcePerson> resourcePersonList = new ArrayList<>();
|
|
List<ResourcePerson> resourcePersonList = new ArrayList<>();
|
|
|
ResourcePerson person = new ResourcePerson();
|
|
ResourcePerson person = new ResourcePerson();
|
|
|
person.setUserId(data.get("employee_id").toString());
|
|
person.setUserId(data.get("employee_id").toString());
|
|
@@ -36,7 +37,8 @@ public class TeacherUtils {
|
|
|
person.setPhone(data.get("mobile_phone").toString());
|
|
person.setPhone(data.get("mobile_phone").toString());
|
|
|
person.setCategory("1");
|
|
person.setCategory("1");
|
|
|
person.setUserState(data.get("status").toString());
|
|
person.setUserState(data.get("status").toString());
|
|
|
-
|
|
|
|
|
|
|
+ person.setTenantId(DefaultConstants.TENANT_ID);
|
|
|
|
|
+ person.setOperatorId(DefaultConstants.KAFKA_SYNC_ADMIN);
|
|
|
resourcePersonList.add(person);
|
|
resourcePersonList.add(person);
|
|
|
|
|
|
|
|
return resourcePersonList;
|
|
return resourcePersonList;
|
|
@@ -44,17 +46,19 @@ public class TeacherUtils {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 处理部门数据
|
|
* 处理部门数据
|
|
|
|
|
+ *
|
|
|
* @param data 部门
|
|
* @param data 部门
|
|
|
* @return 处理结果
|
|
* @return 处理结果
|
|
|
*/
|
|
*/
|
|
|
- public static List<ResourceDept> getSyncDept(JSONObject data){
|
|
|
|
|
|
|
+ public static List<ResourceDept> getSyncDept(JSONObject data) {
|
|
|
List<ResourceDept> resourceDeptlist = new ArrayList<>();
|
|
List<ResourceDept> resourceDeptlist = new ArrayList<>();
|
|
|
ResourceDept dept = new ResourceDept();
|
|
ResourceDept dept = new ResourceDept();
|
|
|
dept.setParent_id(data.get("parent_id").toString());
|
|
dept.setParent_id(data.get("parent_id").toString());
|
|
|
dept.setDept_id(data.get("dept_id").toString());
|
|
dept.setDept_id(data.get("dept_id").toString());
|
|
|
dept.setDept_name(data.get("dept_name").toString());
|
|
dept.setDept_name(data.get("dept_name").toString());
|
|
|
dept.setDept_num(data.get("dept_num").toString());
|
|
dept.setDept_num(data.get("dept_num").toString());
|
|
|
-
|
|
|
|
|
|
|
+ dept.setTenantId(DefaultConstants.TENANT_ID);
|
|
|
|
|
+ dept.setOperatorId(DefaultConstants.KAFKA_SYNC_ADMIN);
|
|
|
resourceDeptlist.add(dept);
|
|
resourceDeptlist.add(dept);
|
|
|
|
|
|
|
|
return resourceDeptlist;
|
|
return resourceDeptlist;
|