diff --git a/app/home/common.php b/app/home/common.php index a6a951c..a88c2ff 100644 --- a/app/home/common.php +++ b/app/home/common.php @@ -290,6 +290,14 @@ function add_log($type, $param_id = '', $param = []) case 'check': $action = '审核'; break; + case 'leave': + $action = '离职'; + break; + case 'disable': + $action = '禁用'; + break; + case 'recovery': + $action = '恢复'; break; case 'reset': $action = '重新设置'; diff --git a/app/install/data/gouguoa.sql b/app/install/data/gouguoa.sql index 730b5d7..13770ea 100644 --- a/app/install/data/gouguoa.sql +++ b/app/install/data/gouguoa.sql @@ -483,7 +483,7 @@ CREATE TABLE `oa_department_change` ( `uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户ID', `from_did` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '原部门id', `to_did` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '调到部门id', - `remark` text CHARACTER SET utf8 COLLATE NULL COMMENT '备注', + `remark` varchar(1000) NULL DEFAULT '' COMMENT '备注', `admin_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人', `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态:-1删除 0禁用 1启用', `move_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '调到时间', @@ -499,10 +499,10 @@ DROP TABLE IF EXISTS `oa_personal_quit`; CREATE TABLE `oa_personal_quit` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户ID', - `remark` text CHARACTER SET utf8 COLLATE NULL COMMENT '备注', + `remark` varchar(1000) NULL DEFAULT '' COMMENT '备注', `admin_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人', `lead_admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '部门负责人', - `connect_uids` varchar(100) CHARACTER SET utf8 COLLATE NOT NULL DEFAULT '' COMMENT '交接人', + `connect_uids` varchar(100) NOT NULL DEFAULT '' COMMENT '交接人', `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态:-1删除 0禁用 1启用', `quit_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '离职时间', `create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',