|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package com.dsideal.FengHuang.DingTalk.Util;
|
|
|
|
|
|
|
|
|
|
import com.dsideal.FengHuang.Util.CommonUtil;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Db;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
import com.taobao.api.ApiException;
|
|
|
|
|
|
|
|
|
@ -9,9 +8,6 @@ import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
public class Progress {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void syncOrg(String accessToken, Record rOrg) throws ApiException {
|
|
|
|
|
Date dt = Model.getLastSyncTime("t_base_organization");
|
|
|
|
|
//找出变更信息
|
|
|
|
@ -60,7 +56,6 @@ public class Progress {
|
|
|
|
|
OrgPerson.createPerson(accessToken, dingtalk_dept_id, person_id, person_name, tel, "教师");
|
|
|
|
|
CommonUtil.Print("新增人员:" + person_name);
|
|
|
|
|
} else {
|
|
|
|
|
int dingtalk_dept_id = record.getInt("dingtalk_dept_id");
|
|
|
|
|
if (b_use == 1) {
|
|
|
|
|
//修改
|
|
|
|
|
OrgPerson.updatePerson(accessToken, person_id, person_name);
|
|
|
|
|