﻿set AUTOCOMMIT=0;
start transaction;

SET NAMES utf8mb4;

CREATE TABLE `t_base_person_log2`  (
  `Id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `UpdateBy` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  `UpdateAt` datetime(6) NULL DEFAULT NULL,
  `PersonId` int(0) NOT NULL,
  `LoginName` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  `RealName` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  `FromStatus` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  `ToStatus` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  PRIMARY KEY (`Id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

insert into t_sys_dic_item (KIND,B_USE,CODE,DETAIL,REMARK,SORT) values('SEX2',1,'男','男','男',1);
insert into t_sys_dic_item (KIND,B_USE,CODE,DETAIL,REMARK,SORT) values('SEX2',1,'女','女','女',2);
insert into t_sys_dic_item (KIND,B_USE,CODE,DETAIL,REMARK,SORT) values('POSTGRADE2',1,'四级','四级','四级',4);
insert into t_sys_dic_item (KIND,B_USE,CODE,DETAIL,REMARK,SORT) values('POSTGRADE2',1,'五级','五级','五级',5);
insert into t_sys_dic_item (KIND,B_USE,CODE,DETAIL,REMARK,SORT) values('POSTGRADE2',1,'六级','六级','六级',6);
insert into t_sys_dic_item (KIND,B_USE,CODE,DETAIL,REMARK,SORT) values('POSTGRADE2',1,'七级','七级','七级',7);
insert into t_sys_dic_item (KIND,B_USE,CODE,DETAIL,REMARK,SORT) values('POSTGRADE2',1,'八级','八级','八级',8);
insert into t_sys_dic_item (KIND,B_USE,CODE,DETAIL,REMARK,SORT) values('POSTGRADE2',1,'九级','九级','九级',9);
insert into t_sys_dic_item (KIND,B_USE,CODE,DETAIL,REMARK,SORT) values('POSTGRADE2',1,'十级','十级','十级',10);
insert into t_sys_dic_item (KIND,B_USE,CODE,DETAIL,REMARK,SORT) values('POSTGRADE2',1,'十一级','十一级','十一级',11);
insert into t_sys_dic_item (KIND,B_USE,CODE,DETAIL,REMARK,SORT) values('POSTGRADE2',1,'十二级','十二级','十二级',12);
update t_sys_dic_item set DETAIL = '区聘教师',REMARK='区聘教师' where KIND='PERSON_STATUS' and DETAIL='区招代课教师';
update t_sys_dic_item set DETAIL = '校聘教师',REMARK='校聘教师' where KIND='PERSON_STATUS' and DETAIL='校招代课教师';
update t_sys_dic_item set DETAIL = '未评',REMARK='未评' where KIND='PROFESSIONAL_TITLE' and DETAIL='未定级';
update t_sys_dic_item set DETAIL = '工勤',REMARK='工勤' where KIND='PROFESSIONAL_TITLE' and DETAIL='其他';
update t_sys_dic_item set DETAIL = '专业岗位',REMARK='专业岗位' where KIND='POST_CATEGORY' and DETAIL='专业技术岗位';
update t_sys_dic_item set DETAIL = '工勤岗位',REMARK='工勤岗位' where KIND='POST_CATEGORY' and DETAIL='工勤技能岗位';
update t_base_person set STAGE_NAME='普通初中' where STAGE_NAME='初中';
update t_base_person set SUBJECT_NAME='无' where SUBJECT_NAME='通用';

alter table `t_base_person` add column  `RequestEditStatus` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `CheckStatus` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `TeachDate` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `CurrentJobStart` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `CurrentJobStartChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `JoinPartyDate` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `MaxTitleChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `MaxTitleStart` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `MaxTitleStartChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `IsJobAsMaxTitle` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `JobAsMaxTitleDate` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `JobAsMaxTitleDateChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `JobAsNotMaxTitleReason` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `JobAsNotMaxTitleReasonChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `NotMaxTitle` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `NotMaxTitleChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `NotMaxTitleStart` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `NotMaxTitleStartChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `JobAsNotMaxTitleDate` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `JobAsNotMaxTitleDateChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `PostGrade` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `PostGradeChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `CurrentPostGradeStart` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `CurrentPostGradeStartChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `EducationGrade` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `EducationGradeChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `EducationGradeDate` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `EducationGradeDateChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `FullTimeSchoolType` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `FullTimeSchool` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `FullTimeSchoolMajor` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `FullTimeSchoolEducation` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `FullTimeSchoolEducationDate` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `JobTimeSchoolType` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `JobTimeSchool` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `JobTimeSchoolMajor` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `JobTimeSchoolEducation` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `JobTimeSchoolEducationDate` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `IsClassTeacher` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `IsClassTeacherChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `MainTeachPeriodChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `MainTeachSubjectChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `MainTeachGrade` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `MainTeachGradeChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `OtherTeachPeriod` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `OtherTeachPeriodChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `OtherTeachSubject` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `OtherTeachSubjectChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `HasPosition` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `IsMiddleLevel` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `PositionChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `PositionStart` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `PositionStartChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `FrontTeacher` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `NotOnPostReason` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `NotOnPostReasonChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `NotOnPostReasonDate` datetime(6) NULL DEFAULT NULL;
alter table `t_base_person` add column  `NotOnPostReasonDateChecked` tinyint(1) NOT NULL;
alter table `t_base_person` add column  `TeacherCardType` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `TeacherCardSubject` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `TeacherCardLangLevel` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `CurrentAddressArea` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
alter table `t_base_person` add column  `Comment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;

update t_base_person set RequestEditStatus = '未申请'
update t_base_person set CheckStatus = '未提交';
commit;