From 94157a691891038263b6f91dabf3be248542077b Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Tue, 13 Sep 2022 23:04:46 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=907.2.5=E3=80=91=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E5=AE=A1=E6=89=B9=E4=BA=BA=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...V7.2.5_20220913_2303__add_org_approver.sql | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/main/resources/db/migration/mysql/V7.2.5_20220913_2303__add_org_approver.sql diff --git a/src/main/resources/db/migration/mysql/V7.2.5_20220913_2303__add_org_approver.sql b/src/main/resources/db/migration/mysql/V7.2.5_20220913_2303__add_org_approver.sql new file mode 100644 index 00000000..4290d422 --- /dev/null +++ b/src/main/resources/db/migration/mysql/V7.2.5_20220913_2303__add_org_approver.sql @@ -0,0 +1,24 @@ +INSERT INTO `guns`.`sys_dict_type`(`dict_type_id`, `dict_type_class`, `dict_type_bus_code`, `dict_type_code`, `dict_type_name`, `dict_type_name_pinyin`, `dict_type_desc`, `status_flag`, `dict_type_sort`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1569699391469809666, 1, NULL, 'org_approver_type', '审批人类型', 'sprlx', '组织机构审批人类型', 1, 10.00, 'N', '2022-09-13 22:47:53', 1339550467939639299, NULL, NULL); + +INSERT INTO `guns`.`sys_dict`(`dict_id`, `dict_code`, `dict_name`, `dict_name_pinyin`, `dict_encode`, `dict_type_code`, `dict_short_name`, `dict_short_code`, `dict_parent_id`, `status_flag`, `dict_sort`, `dict_pids`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1569699572911206401, '1', '负责人', 'fzr', NULL, 'org_approver_type', NULL, NULL, -1, 1, 10.00, '[-1],', 'N', '2022-09-13 22:48:36', 1339550467939639299, NULL, NULL); +INSERT INTO `guns`.`sys_dict`(`dict_id`, `dict_code`, `dict_name`, `dict_name_pinyin`, `dict_encode`, `dict_type_code`, `dict_short_name`, `dict_short_code`, `dict_parent_id`, `status_flag`, `dict_sort`, `dict_pids`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1569699624215932930, '2', '部长', 'bz', NULL, 'org_approver_type', NULL, NULL, -1, 1, 20.00, '[-1],', 'N', '2022-09-13 22:48:49', 1339550467939639299, NULL, NULL); +INSERT INTO `guns`.`sys_dict`(`dict_id`, `dict_code`, `dict_name`, `dict_name_pinyin`, `dict_encode`, `dict_type_code`, `dict_short_name`, `dict_short_code`, `dict_parent_id`, `status_flag`, `dict_sort`, `dict_pids`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1569699732391227394, '3', '体系负责人', 'txfzr', NULL, 'org_approver_type', NULL, NULL, -1, 1, 30.00, '[-1],', 'N', '2022-09-13 22:49:14', 1339550467939639299, NULL, NULL); +INSERT INTO `guns`.`sys_dict`(`dict_id`, `dict_code`, `dict_name`, `dict_name_pinyin`, `dict_encode`, `dict_type_code`, `dict_short_name`, `dict_short_code`, `dict_parent_id`, `status_flag`, `dict_sort`, `dict_pids`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1569699780906741762, '4', '部门助理', 'bmzl', NULL, 'org_approver_type', NULL, NULL, -1, 1, 40.00, '[-1],', 'N', '2022-09-13 22:49:26', 1339550467939639299, NULL, NULL); +INSERT INTO `guns`.`sys_dict`(`dict_id`, `dict_code`, `dict_name`, `dict_name_pinyin`, `dict_encode`, `dict_type_code`, `dict_short_name`, `dict_short_code`, `dict_parent_id`, `status_flag`, `dict_sort`, `dict_pids`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1569699833889189889, '5', '资产助理', 'zczl', NULL, 'org_approver_type', NULL, NULL, -1, 1, 50.00, '[-1],', 'N', '2022-09-13 22:49:39', 1339550467939639299, NULL, NULL); +INSERT INTO `guns`.`sys_dict`(`dict_id`, `dict_code`, `dict_name`, `dict_name_pinyin`, `dict_encode`, `dict_type_code`, `dict_short_name`, `dict_short_code`, `dict_parent_id`, `status_flag`, `dict_sort`, `dict_pids`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1569699872430649345, '6', '考勤专员', 'kqzy', NULL, 'org_approver_type', NULL, NULL, -1, 1, 60.00, '[-1],', 'N', '2022-09-13 22:49:48', 1339550467939639299, NULL, NULL); +INSERT INTO `guns`.`sys_dict`(`dict_id`, `dict_code`, `dict_name`, `dict_name_pinyin`, `dict_encode`, `dict_type_code`, `dict_short_name`, `dict_short_code`, `dict_parent_id`, `status_flag`, `dict_sort`, `dict_pids`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1569699912133931009, '7', 'HRBP', 'HRBP', NULL, 'org_approver_type', NULL, NULL, -1, 1, 70.00, '[-1],', 'N', '2022-09-13 22:49:57', 1339550467939639299, NULL, NULL); +INSERT INTO `guns`.`sys_dict`(`dict_id`, `dict_code`, `dict_name`, `dict_name_pinyin`, `dict_encode`, `dict_type_code`, `dict_short_name`, `dict_short_code`, `dict_parent_id`, `status_flag`, `dict_sort`, `dict_pids`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1569699950046244865, '8', '门禁员', 'mjy', NULL, 'org_approver_type', NULL, NULL, -1, 1, 80.00, '[-1],', 'N', '2022-09-13 22:50:06', 1339550467939639299, NULL, NULL); +INSERT INTO `guns`.`sys_dict`(`dict_id`, `dict_code`, `dict_name`, `dict_name_pinyin`, `dict_encode`, `dict_type_code`, `dict_short_name`, `dict_short_code`, `dict_parent_id`, `status_flag`, `dict_sort`, `dict_pids`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1569700054404722690, '9', '办公账号员', 'bgzhy', NULL, 'org_approver_type', NULL, NULL, -1, 1, 90.00, '[-1],', 'N', '2022-09-13 22:50:31', 1339550467939639299, NULL, NULL); +INSERT INTO `guns`.`sys_dict`(`dict_id`, `dict_code`, `dict_name`, `dict_name_pinyin`, `dict_encode`, `dict_type_code`, `dict_short_name`, `dict_short_code`, `dict_parent_id`, `status_flag`, `dict_sort`, `dict_pids`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1569700365244592129, '10', '转岗须知员', 'zgxzy', NULL, 'org_approver_type', NULL, NULL, -1, 1, 100.00, '[-1],', 'N', '2022-09-13 22:51:45', 1339550467939639299, NULL, NULL); + +CREATE TABLE `hr_org_approver` ( + `org_approver_id` bigint(20) NOT NULL COMMENT '主键id', + `org_approver_type` tinyint(4) NULL DEFAULT NULL COMMENT '组织审批类型:1-负责人,2-部长,3-体系负责人,4-部门助理,5-资产助理(专员),6-考勤专员,7-HRBP,8-门禁员,9-办公账号员,10-转岗须知员', + `org_id` bigint(20) NULL DEFAULT NULL COMMENT '组织机构id', + `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', + `update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人', + PRIMARY KEY (`org_approver_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '组织机构审批人' ROW_FORMAT = Dynamic; \ No newline at end of file