Compare commits
7 Commits
00bb91a508
...
dc01f2c11e
Author | SHA1 | Date |
---|---|---|
|
dc01f2c11e | 2 years ago |
|
08bb66d6c2 | 2 years ago |
|
60699a7abf | 2 years ago |
|
b9adbbfc66 | 2 years ago |
|
5995ee0c77 | 2 years ago |
|
5d0b1aeb00 | 2 years ago |
|
79c17ce7a9 | 2 years ago |
@ -0,0 +1,26 @@
|
||||
package UnitTest;
|
||||
// 引入需要的类
|
||||
import cn.hutool.core.img.ImgUtil;
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import com.aspose.words.*;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class UpdateImage {
|
||||
public static void main(String[] args) throws Exception {
|
||||
String MyDir="C:\\Users\\Administrator\\Desktop\\";
|
||||
Document doc = new Document(MyDir + "看图写话分类别.docx");
|
||||
NodeCollection shapes = doc.getChildNodes(NodeType.SHAPE, true);
|
||||
for (Shape shape : (Iterable<Shape>) shapes) {
|
||||
if (shape.hasImage()) {
|
||||
// Resize the shape to the desired dimensions
|
||||
shape.setWidth(180);
|
||||
shape.setHeight(120);
|
||||
// Set the layout of the image to "in-line with text" (i.e. "inline")
|
||||
shape.setWrapType(WrapType.INLINE);
|
||||
shape.setHorizontalAlignment(HorizontalAlignment.CENTER);
|
||||
}
|
||||
}
|
||||
doc.save("c:\\2.docx");
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package com.dsideal.FengHuang.DingTalk;
|
||||
|
||||
import com.dsideal.FengHuang.DingTalk.Util.*;
|
||||
import com.dsideal.FengHuang.Util.CommonUtil;
|
||||
import com.jfinal.kit.PropKit;
|
||||
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
|
||||
import com.jfinal.plugin.activerecord.Record;
|
||||
import com.jfinal.plugin.activerecord.dialect.MysqlDialect;
|
||||
import com.jfinal.plugin.druid.DruidPlugin;
|
||||
import com.jfinal.plugin.redis.RedisPlugin;
|
||||
|
||||
public class Full {
|
||||
|
||||
public static void main(String[] args_) throws Exception {
|
||||
//启动数据库链接
|
||||
DingTalkCommon.Start();
|
||||
|
||||
//accessToken
|
||||
final String appKey = PropKit.get("appKey");
|
||||
String appSecret = PropKit.get("appSecret");
|
||||
String accessToken = DingTalkCommon.getAccessToken(appKey, appSecret);
|
||||
|
||||
//同步钉钉与云平台中部门信息
|
||||
String orgName = "103中学";
|
||||
Record rOrg = Model.getOrgByOrgName(orgName);
|
||||
|
||||
//开发测试时专用,批量删除人员与组织机构
|
||||
//Model.fillDeptListByDataBase(rOrg);//从数据库中获取最新的部门列表(已与钉钉匹配完毕)
|
||||
//OrgPerson.delBureauPerson(accessToken,rOrg);
|
||||
//OrgPerson.delAllDept(accessToken);
|
||||
|
||||
//初始化组织机构【需提前手动删除此学校及下属部门】
|
||||
//OrgPerson.InitOrg(accessToken, rOrg);
|
||||
|
||||
//同步人员
|
||||
//Model.fillDeptListByDataBase(rOrg);//从数据库中获取最新的部门列表(已与钉钉匹配完毕)
|
||||
//OrgPerson.initPerson(accessToken, rOrg,10);//这里限定了上限人数为10
|
||||
|
||||
//初始化角色组
|
||||
//long groupId = RolePerson.createRoleGroup(accessToken, "义务教育阶段角色组");
|
||||
//初始化角色
|
||||
//RolePerson.initRole(accessToken, groupId);
|
||||
|
||||
//同步人员角色信息
|
||||
//RolePerson.initPersonRole(accessToken, rOrg);
|
||||
|
||||
CommonUtil.Print("恭喜,所有操作成功完成!");
|
||||
|
||||
// 记录全量同步完成时间
|
||||
Progress.finishInit();
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.dsideal.FengHuang.DingTalk;
|
||||
|
||||
import com.dsideal.FengHuang.DingTalk.Util.DingTalkCommon;
|
||||
import com.dsideal.FengHuang.DingTalk.Util.Model;
|
||||
import com.dsideal.FengHuang.DingTalk.Util.Progress;
|
||||
import com.dsideal.FengHuang.Util.CommonUtil;
|
||||
import com.jfinal.kit.PropKit;
|
||||
import com.jfinal.plugin.activerecord.Record;
|
||||
|
||||
public class Increment {
|
||||
|
||||
public static void main(String[] args_) throws Exception {
|
||||
//启动数据库链接
|
||||
DingTalkCommon.Start();
|
||||
|
||||
//accessToken
|
||||
final String appKey = PropKit.get("appKey");
|
||||
String appSecret = PropKit.get("appSecret");
|
||||
String accessToken = DingTalkCommon.getAccessToken(appKey, appSecret);
|
||||
|
||||
//同步钉钉与云平台中部门信息
|
||||
String orgName = "103中学";
|
||||
Record rOrg = Model.getOrgByOrgName(orgName);
|
||||
|
||||
//1、组织机构
|
||||
Progress.syncOrg(accessToken, rOrg);
|
||||
|
||||
//2、人员
|
||||
Progress.syncPerson(accessToken, rOrg);
|
||||
|
||||
//3、人员角色关系
|
||||
Progress.syncRolePerson(accessToken, rOrg);
|
||||
|
||||
CommonUtil.Print("恭喜,所有操作成功完成!");
|
||||
}
|
||||
}
|
@ -1,71 +0,0 @@
|
||||
package com.dsideal.FengHuang.DingTalk;
|
||||
|
||||
import com.jfinal.kit.Kv;
|
||||
import com.jfinal.plugin.activerecord.Db;
|
||||
import com.jfinal.plugin.activerecord.Record;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Model {
|
||||
public static List<Record> getOrgList(int orgId) {
|
||||
// 学校及学校下的部门
|
||||
String sql = "select org_id,org_name,parent_id,sort_id,dingtalk_dept_id from t_base_organization where bureau_id=? and org_id<>bureau_id order by org_id";
|
||||
List<Record> list = Db.find(sql, orgId);
|
||||
return list;
|
||||
}
|
||||
|
||||
public static void fillDeptListByDataBase(Record rOrg) {
|
||||
OrgPerson.deptList.clear();
|
||||
int bureau_id = rOrg.getInt("org_id");
|
||||
String sql = "select org_id,org_name,dingtalk_dept_id from t_base_organization where bureau_id=? and b_use=1 order by org_id desc";
|
||||
List<Record> list = Db.find(sql, bureau_id);
|
||||
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
Kv kv = Kv.create();
|
||||
kv.set("dept_id", list.get(i).getLong("dingtalk_dept_id"));
|
||||
kv.set("name", list.get(i).getStr("org_name"));
|
||||
OrgPerson.deptList.add(kv);
|
||||
}
|
||||
}
|
||||
|
||||
public static List<Record> getDeptPerson(int bureau_id) {
|
||||
String sql = "select t1.person_id,t1.person_name,t2.dingtalk_dept_id,t1.tel from t_base_person as t1 " +
|
||||
"inner join t_base_organization as t2 on t1.org_id=t2.org_id " +
|
||||
" where t1.bureau_id=? and t1.b_use=1";
|
||||
return Db.find(sql, bureau_id);
|
||||
}
|
||||
|
||||
public static void writeDtDeptId(int orgId, String value) {
|
||||
String sql = "update t_base_organization set dingtalk_dept_id=? where org_id=?";
|
||||
Db.update(sql, value, orgId);
|
||||
}
|
||||
|
||||
public static long getDtDeptId(int org_id) {
|
||||
String sql = "select dingtalk_dept_id from t_base_organization where org_id=?";
|
||||
Record r = Db.findFirst(sql, org_id);
|
||||
if (r.get("dingtalk_dept_id") == null) return 1;
|
||||
return r.get("dingtalk_dept_id");
|
||||
}
|
||||
|
||||
public static Record getOrgByOrgName(String org_name) {
|
||||
String sql = "select org_id,org_name,sort_id,dingtalk_dept_id from t_base_organization where org_name = ?";
|
||||
return Db.findFirst(sql, org_name);
|
||||
}
|
||||
|
||||
public static List<Record> getRoleList() {
|
||||
String sql = "select * from t_im_role";
|
||||
return Db.find(sql);
|
||||
}
|
||||
|
||||
public static void writeDingTalkRoleId(int role_id, long dt_role_id) {
|
||||
String sql = "update t_im_role set dingtalk_role_id=? where role_id=?";
|
||||
Db.update(sql, dt_role_id, role_id);
|
||||
}
|
||||
|
||||
// 需要同步哪些人员角色信息
|
||||
public static List<Record> getRolePersonReleation() {
|
||||
String sql = "select t1.person_id,t1.role_id,t2.dingtalk_role_id from t_sys_person_role as t1 inner join t_im_role as t2 on t1.role_id=t2.role_id where t1.bureau_id=?";
|
||||
List<Record> list=Db.find(sql);
|
||||
return list;
|
||||
}
|
||||
}
|
@ -0,0 +1,407 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : 10.10.14.199
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 100123 (10.1.23-MariaDB)
|
||||
Source Host : 10.10.14.199:22066
|
||||
Source Schema : dsideal_db
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 100123 (10.1.23-MariaDB)
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 15/06/2023 08:30:25
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for t_dingtalk_actioncount
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `t_dingtalk_actioncount`;
|
||||
CREATE TABLE `t_dingtalk_actioncount` (
|
||||
`year` int NOT NULL COMMENT '年份',
|
||||
`month` int NOT NULL COMMENT '月份',
|
||||
`remain_count` int NULL DEFAULT NULL COMMENT '剩余次数',
|
||||
PRIMARY KEY (`year`, `month`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of t_dingtalk_actioncount
|
||||
-- ----------------------------
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2023, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2024, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2025, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2026, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2027, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2028, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2029, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2030, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2031, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2032, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2033, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2034, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2035, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2036, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2037, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2038, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2039, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2040, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2041, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2042, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2043, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2044, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2045, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2046, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2047, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2048, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2049, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2050, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2051, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2052, 12, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 1, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 2, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 3, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 4, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 5, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 6, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 7, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 8, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 9, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 10, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 11, 500000);
|
||||
INSERT INTO `t_dingtalk_actioncount` VALUES (2053, 12, 500000);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
@ -0,0 +1,37 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : 10.10.14.199
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 100123 (10.1.23-MariaDB)
|
||||
Source Host : 10.10.14.199:22066
|
||||
Source Schema : dsideal_db
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 100123 (10.1.23-MariaDB)
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 15/06/2023 11:38:49
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for t_dingtalk_progress
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `t_dingtalk_progress`;
|
||||
CREATE TABLE `t_dingtalk_progress` (
|
||||
`table_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '表名',
|
||||
`sync_last_update_time` timestamp NULL DEFAULT NULL COMMENT '最后同步时间戳',
|
||||
PRIMARY KEY (`table_name`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of t_dingtalk_progress
|
||||
-- ----------------------------
|
||||
INSERT INTO `t_dingtalk_progress` VALUES ('t_base_organization', '2023-06-15 11:38:16');
|
||||
INSERT INTO `t_dingtalk_progress` VALUES ('t_base_person', '2023-06-15 11:38:24');
|
||||
INSERT INTO `t_dingtalk_progress` VALUES ('t_sys_person_role', '2023-06-15 11:38:34');
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
@ -0,0 +1,38 @@
|
||||
/*
|
||||
Navicat Premium Data Transfer
|
||||
|
||||
Source Server : 10.10.14.199
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 100123 (10.1.23-MariaDB)
|
||||
Source Host : 10.10.14.199:22066
|
||||
Source Schema : dsideal_db
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 100123 (10.1.23-MariaDB)
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 15/06/2023 08:53:56
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for t_dingtalk_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `t_dingtalk_role`;
|
||||
CREATE TABLE `t_dingtalk_role` (
|
||||
`role_id` int NOT NULL COMMENT '角色ID',
|
||||
`role_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色名称',
|
||||
`dingtalk_role_id` bigint NULL DEFAULT NULL COMMENT '在钉钉系统中的角色ID',
|
||||
PRIMARY KEY (`role_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of t_dingtalk_role
|
||||
-- ----------------------------
|
||||
INSERT INTO `t_dingtalk_role` VALUES (4, '普通教师', 3786531788);
|
||||
INSERT INTO `t_dingtalk_role` VALUES (174, '班主任', 3786792098);
|
||||
INSERT INTO `t_dingtalk_role` VALUES (323, '学校校长', 3780952031);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
@ -0,0 +1,5 @@
|
||||
ALTER TABLE `dsideal_db`.`t_base_organization`
|
||||
ADD COLUMN `dingtalk_dept_id` BIGINT NULL COMMENT '钉钉架构中机构的代码' AFTER `zydz`;
|
||||
|
||||
ALTER TABLE `dsideal_db`.`t_base_person`
|
||||
ADD COLUMN `dingtalk_person_id` varchar(255) NULL COMMENT '钉钉架构中人员ID' AFTER `pay_rate`;
|
@ -0,0 +1,33 @@
|
||||
package com.dsideal.FengHuang.DingTalk.Util;
|
||||
|
||||
import com.dsideal.FengHuang.Util.CommonUtil;
|
||||
import com.jfinal.kit.PropKit;
|
||||
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
|
||||
import com.jfinal.plugin.activerecord.Db;
|
||||
import com.jfinal.plugin.activerecord.Record;
|
||||
import com.jfinal.plugin.activerecord.dialect.MysqlDialect;
|
||||
import com.jfinal.plugin.druid.DruidPlugin;
|
||||
|
||||
public class FillRemainCount {
|
||||
public static void main(String[] args) {
|
||||
PropKit.use("dingtalk_dalian.properties");
|
||||
DruidPlugin druid = DingTalkCommon.createDruidPlugin(PropKit.get("jdbcUrl"), PropKit.get("user"), PropKit.get("password").trim(), PropKit.get("driverClassName"));
|
||||
druid.start();
|
||||
|
||||
ActiveRecordPlugin arp = new ActiveRecordPlugin(druid);
|
||||
arp.setDevMode(false);
|
||||
arp.setDialect(new MysqlDialect());
|
||||
arp.start();
|
||||
|
||||
for(int year=2023;year<=2053;year++){
|
||||
for(int month=1;month<=12;month++){
|
||||
Record record =new Record();
|
||||
record.set("year",year);
|
||||
record.set("month",month);
|
||||
record.set("remain_count",500000);//初始操作次数为50W
|
||||
Db.save("t_dingtalk_actioncount","year,month",record);
|
||||
}
|
||||
}
|
||||
CommonUtil.Print("恭喜,数据填充成功!");
|
||||
}
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
package com.dsideal.FengHuang.DingTalk.Util;
|
||||
|
||||
import com.jfinal.kit.Kv;
|
||||
import com.jfinal.plugin.activerecord.Db;
|
||||
import com.jfinal.plugin.activerecord.Record;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class Model {
|
||||
public static List<Record> getOrgList(int orgId) {
|
||||
// 学校及学校下的部门
|
||||
String sql = "select org_id,org_name,parent_id,sort_id,dingtalk_dept_id from t_base_organization where bureau_id=? order by org_id";
|
||||
List<Record> list = Db.find(sql, orgId);
|
||||
return list;
|
||||
}
|
||||
|
||||
public static void fillDeptListByDataBase(Record rOrg) {
|
||||
OrgPerson.deptList.clear();
|
||||
int bureau_id = rOrg.getInt("org_id");
|
||||
String sql = "select org_id,org_name,dingtalk_dept_id from t_base_organization where bureau_id=? and b_use=1 order by org_id desc";
|
||||
List<Record> list = Db.find(sql, bureau_id);
|
||||
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
Kv kv = Kv.create();
|
||||
kv.set("dept_id", list.get(i).getLong("dingtalk_dept_id"));
|
||||
kv.set("name", list.get(i).getStr("org_name"));
|
||||
OrgPerson.deptList.add(kv);
|
||||
}
|
||||
}
|
||||
|
||||
public static List<Record> getDeptPerson(int bureau_id) {
|
||||
String sql = "select t1.person_id,t1.person_name,t2.dingtalk_dept_id,t1.tel from t_base_person as t1 " +
|
||||
"inner join t_base_organization as t2 on t1.org_id=t2.org_id " +
|
||||
" where t1.bureau_id=? and t1.b_use=1";
|
||||
return Db.find(sql, bureau_id);
|
||||
}
|
||||
|
||||
public static void writeDtDeptId(int orgId, String value) {
|
||||
String sql = "update t_base_organization set dingtalk_dept_id=? where org_id=?";
|
||||
Db.update(sql, value, orgId);
|
||||
}
|
||||
|
||||
public static void writePersonDingTalkId(int person_id) {
|
||||
String sql = "update t_base_person set dingtalk_person_id=? where person_id=?";
|
||||
Db.update(sql, person_id, person_id);
|
||||
}
|
||||
|
||||
public static long getDtDeptId(int org_id) {
|
||||
String sql = "select dingtalk_dept_id from t_base_organization where org_id=?";
|
||||
Record r = Db.findFirst(sql, org_id);
|
||||
if (r.get("dingtalk_dept_id") == null) return 1;
|
||||
return r.get("dingtalk_dept_id");
|
||||
}
|
||||
|
||||
public static Record getOrgByOrgName(String org_name) {
|
||||
String sql = "select org_id,org_name,sort_id,dingtalk_dept_id from t_base_organization where org_name = ?";
|
||||
return Db.findFirst(sql, org_name);
|
||||
}
|
||||
|
||||
public static List<Record> getRoleList() {
|
||||
String sql = "select * from t_dingtalk_role";
|
||||
return Db.find(sql);
|
||||
}
|
||||
|
||||
public static void writeDingTalkRoleId(int role_id, long dt_role_id) {
|
||||
String sql = "update t_dingtalk_role set dingtalk_role_id=? where role_id=?";
|
||||
Db.update(sql, dt_role_id, role_id);
|
||||
}
|
||||
|
||||
// 需要同步哪些人员角色信息
|
||||
public static List<Record> getRolePersonReleation(Record rOrg) {
|
||||
String sql = "select t1.person_id,t2.dingtalk_role_id,t3.bureau_id from t_sys_person_role as t1 inner join t_dingtalk_role as t2 on t1.role_id=t2.role_id " +
|
||||
"inner join t_base_person as t3 on t1.person_id=t3.person_id " +
|
||||
" where t3.bureau_id=? and t3.b_use=1";
|
||||
List<Record> list = Db.find(sql, rOrg.getInt("org_id"));
|
||||
return list;
|
||||
}
|
||||
|
||||
public static Date getLastSyncTime(String table_name) {
|
||||
String sql = "select sync_last_update_time from t_dingtalk_progress where table_name=?";
|
||||
return Db.findFirst(sql, table_name).getDate("getLastSyncTime");
|
||||
}
|
||||
|
||||
public static void saveLastSyncTime(String table_name) {
|
||||
String sql = "update t_dingtalk_progress set sync_last_update_time=now() where table_name=?";
|
||||
Db.update(sql, table_name);
|
||||
}
|
||||
|
||||
public static List<Record> getIncrementOrg(int org_id, Date dt) {
|
||||
String sql = "select org_id,org_name,parent_id,b_use,dingtalk_dept_id,sort_id from t_base_organization where bureau_id=? and last_update_time>?";
|
||||
return Db.find(sql, org_id, dt);
|
||||
}
|
||||
|
||||
public static List<Record> getIncrementPerson(int org_id, Date dt) {
|
||||
String sql = "select person_id,person_name,org_id,b_use,dingtalk_person_id from t_base_person where bureau_id=? and last_update_time>?";
|
||||
return Db.find(sql, org_id, dt);
|
||||
}
|
||||
|
||||
public static List<Record> getIncrementRolePerson(int org_id, Date dt) {
|
||||
String sql = "select t1.person_id,t1.role_id,t1.b_use,t2.dingtalk_role_id from t_sys_person_role as t1 inner join t_dingtalk_role as t2 on t1.role_id=t2.role_id where t1.bureau_id=? and t1.last_update_time>?";
|
||||
return Db.find(sql, org_id, dt);
|
||||
}
|
||||
|
||||
public static long getDingTalkOrgId(int org_id) {
|
||||
String sql = "select dingtalk_dept_id from t_base_organization where org_id=?";
|
||||
return Db.findFirst(sql, org_id).getLong("dingtalk_dept_id");
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
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;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class Progress {
|
||||
|
||||
public static void finishInit() {
|
||||
List<Record> list = Db.findAll("t_dingtalk_progress");
|
||||
for (Record record : list) {
|
||||
Model.saveLastSyncTime(record.getStr("table_name"));
|
||||
}
|
||||
}
|
||||
|
||||
public static void syncOrg(String accessToken, Record rOrg) throws ApiException {
|
||||
Date dt = Model.getLastSyncTime("t_base_organization");
|
||||
//找出变更信息
|
||||
List<Record> list = Model.getIncrementOrg(rOrg.getInt("org_id"), dt);
|
||||
for (Record record : list) {
|
||||
String org_name = record.getStr("org_name");
|
||||
int sort_id = record.getInt("sort_id");
|
||||
int b_use = record.getInt("b_use");
|
||||
|
||||
if (record.get("dingtalk_dept_id") == null) {
|
||||
//新增
|
||||
int parent_id = record.getInt("parent_id");
|
||||
//查询一下它的父亲的dingtalk_dept_id
|
||||
long parent_dingtalk_dept_id = Model.getDingTalkOrgId(parent_id);
|
||||
OrgPerson.createDept(accessToken, org_name, parent_dingtalk_dept_id, sort_id, false);
|
||||
CommonUtil.Print("新增部门:" + org_name);
|
||||
} else {
|
||||
int dingtalk_dept_id = record.getInt("dingtalk_dept_id");
|
||||
if (b_use == 1) {
|
||||
//修改
|
||||
OrgPerson.updateDept(accessToken, dingtalk_dept_id, org_name, sort_id);
|
||||
CommonUtil.Print("修改部门:" + org_name);
|
||||
} else {
|
||||
//删除
|
||||
OrgPerson.delDept(accessToken, dingtalk_dept_id);
|
||||
CommonUtil.Print("删除部门:" + org_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void syncPerson(String accessToken, Record rOrg) throws ApiException {
|
||||
Date dt = Model.getLastSyncTime("t_base_person");
|
||||
//找出变更信息
|
||||
List<Record> list = Model.getIncrementPerson(rOrg.getInt("org_id"), dt);
|
||||
for (Record record : list) {
|
||||
String person_name = record.getStr("person_name");
|
||||
int b_use = record.getInt("b_use");
|
||||
int org_id = record.getInt("org_id");
|
||||
int person_id = record.getInt("person_id");
|
||||
String tel = record.getStr("tel");
|
||||
if (record.get("dingtalk_person_id") == null) {
|
||||
//新增
|
||||
long dingtalk_dept_id = Model.getDingTalkOrgId(org_id);
|
||||
tel = DingTalkCommon.getLawfulTel(tel);
|
||||
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);
|
||||
CommonUtil.Print("修改人员:" + person_name);
|
||||
} else {
|
||||
//删除
|
||||
OrgPerson.delPerson(accessToken, person_id);
|
||||
CommonUtil.Print("删除人员:" + person_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void syncRolePerson(String accessToken, Record rOrg) throws ApiException {
|
||||
Date dt = Model.getLastSyncTime("t_sys_person_role");
|
||||
//找出变更信息
|
||||
List<Record> list = Model.getIncrementRolePerson(rOrg.getInt("org_id"), dt);
|
||||
for (Record record : list) {
|
||||
long dingtalk_role_id = record.getLong("dingtalk_role_id");
|
||||
int b_use = record.getInt("b_use");
|
||||
int person_id = record.getInt("person_id");
|
||||
|
||||
if (b_use == 1) {
|
||||
//新增
|
||||
RolePerson.addRolePerson(accessToken, String.valueOf(dingtalk_role_id), String.valueOf(person_id));
|
||||
} else {
|
||||
//删除
|
||||
RolePerson.delRolePerson(accessToken, String.valueOf(dingtalk_role_id), String.valueOf(person_id));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue