diff --git a/docs/0829/Mysql.sql b/docs/0829/Mysql.sql new file mode 100644 index 00000000..a859b7b6 --- /dev/null +++ b/docs/0829/Mysql.sql @@ -0,0 +1,37 @@ +DROP TABLE IF EXISTS `jcl_org_item`; +CREATE TABLE `jcl_org_item` ( + `fid` int(11) NOT NULL AUTO_INCREMENT, + `fclassid` int(11) NOT NULL, + `fno` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `fname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `fmemo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `fdelete` int(11) NOT NULL, + `creator` int(11) NULL DEFAULT NULL, + `create_time` date NULL DEFAULT NULL, + `update_time` date NULL DEFAULT NULL, + PRIMARY KEY (`fid`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + + +DROP TABLE IF EXISTS `jcl_org_itemclass`; +CREATE TABLE `jcl_org_itemclass` ( + `fid` int(11) NOT NULL AUTO_INCREMENT, + `fno` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `fname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `fmemo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `creator` int(11) NULL DEFAULT NULL, + `create_time` date NULL DEFAULT NULL, + `update_time` date NULL DEFAULT NULL, + PRIMARY KEY (`fid`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + + +DROP TRIGGER IF EXISTS HrmCompany_ed; +DROP TRIGGER IF EXISTS JCL_ORG_COMP_ed; +DROP TRIGGER IF EXISTS JCL_ORG_COMP_del; +DROP TRIGGER IF EXISTS JCL_ORG_dept_ed; +DROP TRIGGER IF EXISTS JCL_ORG_dept_del; +DROP TRIGGER IF EXISTS JCL_ORG_job_ed; +DROP TRIGGER IF EXISTS JCL_ORG_job_del; +DROP TRIGGER IF EXISTS hrmresource_ed; +DROP TRIGGER IF EXISTS cus_fielddata_jclgw; diff --git a/docs/0829/Oracle.sql b/docs/0829/Oracle.sql new file mode 100644 index 00000000..7a13b4fd --- /dev/null +++ b/docs/0829/Oracle.sql @@ -0,0 +1,125 @@ +alter table JCL_ORG_STAFFS add description varchar2(200) +/ + +begin + jcl_droptable('JCL_ORG_ITEMCLASS'); +END; +/ +CREATE TABLE JCL_ORG_ITEMCLASS ( + FID NUMBER NOT NULL, + FNO NVARCHAR2(50) NOT NULL, + FNAME NVARCHAR2 (50) NOT NULL, + FMEMO NVARCHAR2 (255) NULL , + CREATOR NUMBER NULL, + CREATE_TIME DATE NULL, + UPDATE_TIME DATE NULL, + CONSTRAINT JCL_ORG_ITEMCLASS_PK PRIMARY KEY (FID) +) + / +BEGIN + jcl_dropsequence('JCL_ORG_ITEMCLASS_ID'); +END; +/ +CREATE SEQUENCE JCL_ORG_ITEMCLASS_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE +/ +CREATE +OR REPLACE TRIGGER JCL_ORG_ITEMCLASS_ID_TIGGER BEFORE INSERT ON JCL_ORG_ITEMCLASS FOR EACH ROW +BEGIN +SELECT + JCL_ORG_ITEMCLASS_ID.nextval INTO:new.FID +FROM + dual; +END; +/ + +begin + jcl_droptable('JCL_ORG_ITEM'); +END; +/ +CREATE TABLE JCL_ORG_ITEM ( + FID NUMBER NOT NULL, + FCLASSID NUMBER NOT NULL, + FNO NVARCHAR2(50) NOT NULL, + FNAME NVARCHAR2 (255) NOT NULL, + FMEMO NVARCHAR2 (255) NULL, + FDELETE NUMBER NOT NULL, + CREATOR NUMBER NULL, + CREATE_TIME DATE NULL, + UPDATE_TIME DATE NULL, + CONSTRAINT JCL_ORG_ITEM_PK PRIMARY KEY (FID) +) + / +BEGIN + jcl_dropsequence('JCL_ORG_ITEM_ID'); +END; +/ +CREATE SEQUENCE JCL_ORG_ITEM_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE +/ +CREATE +OR REPLACE TRIGGER JCL_ORG_ITEM_ID_TIGGER BEFORE INSERT ON JCL_ORG_ITEM FOR EACH ROW +BEGIN +SELECT + JCL_ORG_ITEM_ID.nextval INTO:new.FID +FROM + dual; +END; +/ + +declare +V_NUM number; +BEGIN + V_NUM := 0; +select count(0) into V_NUM from user_triggers where trigger_name = 'HrmCompany_ed'; +if V_NUM > 0 then + execute immediate 'DROP TRIGGER HrmCompany_ed'; +end if; + + V_NUM := 0; +select count(0) into V_NUM from user_triggers where trigger_name = 'JCL_ORG_COMP_ed'; +if V_NUM > 0 then + execute immediate 'DROP TRIGGER JCL_ORG_COMP_ed'; +end if; + + V_NUM := 0; +select count(0) into V_NUM from user_triggers where trigger_name = 'JCL_ORG_COMP_del'; +if V_NUM > 0 then + execute immediate 'DROP TRIGGER JCL_ORG_COMP_del'; +end if; + + V_NUM := 0; +select count(0) into V_NUM from user_triggers where trigger_name = 'JCL_ORG_dept_ed'; +if V_NUM > 0 then + execute immediate 'DROP TRIGGER JCL_ORG_dept_ed'; +end if; + + V_NUM := 0; +select count(0) into V_NUM from user_triggers where trigger_name = 'JCL_ORG_dept_del'; +if V_NUM > 0 then + execute immediate 'DROP TRIGGER JCL_ORG_dept_del'; +end if; + + V_NUM := 0; +select count(0) into V_NUM from user_triggers where trigger_name = 'JCL_ORG_job_ed'; +if V_NUM > 0 then + execute immediate 'DROP TRIGGER JCL_ORG_job_ed'; +end if; + + V_NUM := 0; +select count(0) into V_NUM from user_triggers where trigger_name = 'JCL_ORG_job_del'; +if V_NUM > 0 then + execute immediate 'DROP TRIGGER JCL_ORG_job_del'; +end if; + + V_NUM := 0; +select count(0) into V_NUM from user_triggers where trigger_name = 'hrmresource_ed'; +if V_NUM > 0 then + execute immediate 'DROP TRIGGER hrmresource_ed'; +end if; + + V_NUM := 0; +select count(0) into V_NUM from user_triggers where trigger_name = 'cus_fielddata_jclgw'; +if V_NUM > 0 then + execute immediate 'DROP TRIGGER cus_fielddata_jclgw'; +end if; +END; +/ \ No newline at end of file diff --git a/docs/0829/SqlServer.sql b/docs/0829/SqlServer.sql new file mode 100644 index 00000000..7b161090 --- /dev/null +++ b/docs/0829/SqlServer.sql @@ -0,0 +1,79 @@ +alter table JCL_ORG_STAFFS add description varchar(200) +GO + +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_ITEMCLASS]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_ITEMCLASS] +GO + +CREATE TABLE [dbo].[JCL_ORG_ITEMCLASS] ( + [fid] int IDENTITY(1,1) NOT NULL, + [fno] varchar(50) NOT NULL, + [fname] varchar(50) NOT NULL, + [fmemo] varchar(255) NULL, + [creator] int NULL, + [create_time] datetime NULL, + [update_time] datetime NULL + ) +GO + +ALTER TABLE [dbo].[JCL_ORG_ITEMCLASS] SET (LOCK_ESCALATION = TABLE) +GO + +ALTER TABLE [dbo].[JCL_ORG_ITEMCLASS] ADD CONSTRAINT [JCL_ORG_ITEMCLASS_PK] PRIMARY KEY CLUSTERED ([fid]) + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] +GO + +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_ITEM]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_ITEM] +GO + +CREATE TABLE [dbo].[JCL_ORG_ITEM] ( + [fid] int IDENTITY(1,1) NOT NULL, + [fclassid] int NOT NULL, + [fno] varchar(50) NOT NULL, + [fname] varchar(255) NOT NULL, + [fmemo] varchar(255) NULL, + [fdelete] int NOT NULL, + [creator] int NULL, + [create_time] datetime NULL, + [update_time] datetime NULL + ) +GO + +ALTER TABLE [dbo].[JCL_ORG_ITEM] SET (LOCK_ESCALATION = TABLE) +GO + +ALTER TABLE [dbo].[JCL_ORG_ITEM] ADD CONSTRAINT [JCL_ORG_ITEM_PK] PRIMARY KEY CLUSTERED ([fid]) + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] +GO + + +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[HrmCompany_ed]') AND type IN ('TR')) +DROP TRIGGER [dbo].[HrmCompany_ed] +GO +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_COMP_ed]') AND type IN ('TR')) +DROP TRIGGER [dbo].[JCL_ORG_COMP_ed] +GO +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_COMP_del]') AND type IN ('TR')) +DROP TRIGGER [dbo].[JCL_ORG_COMP_del] +GO +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_dept_ed]') AND type IN ('TR')) +DROP TRIGGER [dbo].[JCL_ORG_dept_ed] +GO +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_dept_del]') AND type IN ('TR')) +DROP TRIGGER [dbo].[JCL_ORG_dept_del] +GO +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_job_ed]') AND type IN ('TR')) +DROP TRIGGER [dbo].[JCL_ORG_job_ed] +GO +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_job_del]') AND type IN ('TR')) +DROP TRIGGER [dbo].[JCL_ORG_job_del] +GO +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[hrmresource_ed]') AND type IN ('TR')) +DROP TRIGGER [dbo].[hrmresource_ed] +GO +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[cus_fielddata_jclgw]') AND type IN ('TR')) +DROP TRIGGER [dbo].[cus_fielddata_jclgw] +GO \ No newline at end of file diff --git a/docs/删除表结构/MySQL_delete.sql b/docs/删除表结构/MySQL_delete.sql new file mode 100644 index 00000000..730bcb1a --- /dev/null +++ b/docs/删除表结构/MySQL_delete.sql @@ -0,0 +1,31 @@ +DROP TABLE IF EXISTS `hr_log`; +DROP TABLE IF EXISTS `jcl_field_extendgroup`; +DROP TABLE IF EXISTS `jcl_field_extendinfo`; +DROP TABLE IF EXISTS `jcl_field_extendtitle`; +DROP TABLE IF EXISTS `jcl_org_comp`; +DROP TABLE IF EXISTS `jcl_org_compext`; +DROP TABLE IF EXISTS `jcl_org_compext_dt1`; +DROP TABLE IF EXISTS `jcl_org_dept`; +DROP TABLE IF EXISTS `jcl_org_deptext`; +DROP TABLE IF EXISTS `jcl_org_deptext_dt1`; +DROP TABLE IF EXISTS `jcl_org_grade`; +DROP TABLE IF EXISTS `jcl_org_hrmrelation`; +DROP TABLE IF EXISTS `jcl_org_hrmresource`; +DROP TABLE IF EXISTS `jcl_org_hrmresourceext`; +DROP TABLE IF EXISTS `jcl_org_hrmresourceext_dt1`; +DROP TABLE IF EXISTS `jcl_org_job`; +DROP TABLE IF EXISTS `jcl_org_jobdt`; +DROP TABLE IF EXISTS `jcl_org_jobext`; +DROP TABLE IF EXISTS `jcl_org_jobext_dt1`; +DROP TABLE IF EXISTS `jcl_org_level`; +DROP TABLE IF EXISTS `jcl_org_map`; +DROP TABLE IF EXISTS `jcl_org_post`; +DROP TABLE IF EXISTS `jcl_org_post_info`; +DROP TABLE IF EXISTS `jcl_org_scheme`; +DROP TABLE IF EXISTS `jcl_org_sequence`; +DROP TABLE IF EXISTS `jcl_org_staff`; +DROP TABLE IF EXISTS `jcl_org_staffplan`; +DROP TABLE IF EXISTS `jcl_org_staffs`; +DROP TABLE IF EXISTS `jcl_import_history`; +DROP TABLE IF EXISTS `jcl_import_history_detail`; +DROP TABLE IF EXISTS `JCL_INFO`; diff --git a/docs/删除表结构/Oracle_delete.sql b/docs/删除表结构/Oracle_delete.sql new file mode 100644 index 00000000..afe0bc56 --- /dev/null +++ b/docs/删除表结构/Oracle_delete.sql @@ -0,0 +1,308 @@ +create or replace procedure jcl_droptable( + p_table in varchar2 +) is + v_count number(10); +begin +select count(*) into v_count from user_tables where table_name = upper(p_table); +if v_count > 0 then + execute immediate 'drop table ' || p_table ; +end if; +end jcl_droptable; +/ + +create or replace procedure jcl_dropsequence( + p_sequence in varchar2 +) is + v_count number(10); +begin +select count(*) into v_count from user_sequences where sequence_name = upper(p_sequence); +if v_count > 0 then + execute immediate 'drop sequence ' || p_sequence ; +end if; +end jcl_dropsequence; +/ + +begin + jcl_droptable('JCL_ORG_SCHEME'); +END; +/ + +begin + jcl_droptable('JCL_ORG_LEVEL'); +END; +/ + +begin + jcl_droptable('JCL_ORG_GRADE'); +END; +/ + +begin + jcl_droptable('JCL_ORG_SEQUENCE'); +END; +/ + +begin + jcl_droptable('JCL_ORG_POST'); +END; +/ + +begin + jcl_droptable('JCL_ORG_POST_INFO'); +END; +/ + +begin + jcl_droptable('JCL_ORG_COMP'); +END; +/ + +begin + jcl_droptable('JCL_FIELD_EXTENDGROUP'); +END; +/ + +begin + jcl_droptable('JCL_FIELD_EXTENDTITLE'); +END; +/ + +begin + jcl_droptable('JCL_FIELD_EXTENDINFO'); +END; +/ + +begin + jcl_droptable('JCL_ORG_COMPEXT'); +END; +/ + +begin + jcl_droptable('JCL_ORG_COMPEXT_DT1'); +END; +/ + +begin + jcl_droptable('JCL_ORG_DEPT'); +END; +/ + +begin + jcl_droptable('JCL_ORG_DEPTEXT'); +END; +/ + +begin + jcl_droptable('JCL_ORG_DEPTEXT_DT1'); +END; +/ + +begin + jcl_droptable('JCL_ORG_JOB'); +END; +/ + +begin + jcl_droptable('JCL_ORG_JOBDT'); +END; +/ + +begin + jcl_droptable('JCL_ORG_JOBEXT'); +END; +/ + +begin + jcl_droptable('JCL_ORG_JOBEXT_DT1'); +END; +/ + +begin + jcl_droptable('JCL_ORG_HRMRESOURCE'); +END; +/ + +begin + jcl_droptable('JCL_ORG_HRMRESOURCEEXT'); +END; +/ + +begin + jcl_droptable('JCL_ORG_HRMRESOURCEEXT_DT1'); +END; +/ + +begin + jcl_droptable('JCL_ORG_STAFFPLAN'); +END; +/ + +begin + jcl_droptable('JCL_ORG_STAFF'); +END; +/ + +begin + jcl_droptable('JCL_ORG_STAFFS'); +END; +/ + +begin + jcl_droptable('HR_LOG'); +END; +/ + +begin + jcl_droptable('JCL_ORG_HRMRELATION'); +END; +/ + +begin + jcl_droptable('JCL_ORG_MAP'); +END; +/ + +begin + jcl_droptable('JCL_IMPORT_HISTORY'); +END; +/ + +begin + jcl_droptable('JCL_IMPORT_HISTORY_DETAIL'); +END; +/ + +begin + jcl_droptable('JCL_INFO'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_SCHEME_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_LEVEL_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_GRADE_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_SEQUENCE_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_POST_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_POST_INFO_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_COMP_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_FIELD_GROUP_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_FIELD_TITLE_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_FIELD_INFO_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_COMPEXT_DT1_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_DEPT_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_DEPTEXT_DT1_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_JOB_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_JOBDT_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_JOBEXT_DT1_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_HRM_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_HRMEXT_DT1_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_STAFFPLAN_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_STAFF_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_STAFFS_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_ORG_MAP_FID'); +END; +/ + +BEGIN + jcl_dropsequence('HR_LOG_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_IMPORT_HISTORY_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_IMPORT_DETAIL_ID'); +END; +/ + +BEGIN + jcl_dropsequence('JCL_INFO_ID'); +END; +/ \ No newline at end of file diff --git a/docs/删除表结构/SqlServer_delete.sql b/docs/删除表结构/SqlServer_delete.sql new file mode 100644 index 00000000..1245d768 --- /dev/null +++ b/docs/删除表结构/SqlServer_delete.sql @@ -0,0 +1,122 @@ +IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[HR_LOG]') AND type IN ('U')) +DROP TABLE [dbo].[HR_LOG] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_FIELD_EXTENDGROUP]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_FIELD_EXTENDGROUP] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_FIELD_EXTENDINFO]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_FIELD_EXTENDINFO] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_FIELD_EXTENDTITLE]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_FIELD_EXTENDTITLE] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_COMP]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_COMP] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_COMPEXT]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_COMPEXT] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_COMPEXT_DT1]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_COMPEXT_DT1] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_DEPT]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_DEPT] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_DEPTEXT]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_DEPTEXT] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_DEPTEXT_DT1]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_DEPTEXT_DT1] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_GRADE]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_GRADE] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_HRMRELATION]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_HRMRELATION] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_HRMRESOURCE]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_HRMRESOURCE] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_HRMRESOURCEEXT]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_HRMRESOURCEEXT] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_HRMRESOURCEEXT_DT1]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_HRMRESOURCEEXT_DT1] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_JOB]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_JOB] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_JOBDT]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_JOBDT] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_JOBEXT]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_JOBEXT] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_JOBEXT_DT1]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_JOBEXT_DT1] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_LEVEL]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_LEVEL] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_POST]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_POST] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_POST_INFO]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_POST_INFO] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_SCHEME]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_SCHEME] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_SEQUENCE]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_SEQUENCE] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_STAFF]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_STAFF] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_STAFFPLAN]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_STAFFPLAN] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_STAFFS]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_STAFFS] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_MAP]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_ORG_MAP] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_IMPORT_HISTORY_DETAIL]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_IMPORT_HISTORY_DETAIL] + GO + + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_IMPORT_HISTORY]') AND type IN ('U')) +DROP TABLE [dbo].[JCL_IMPORT_HISTORY] + GO + IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[jcl_info]') AND type IN ('U')) +DROP TABLE [dbo].[jcl_info] + GO \ No newline at end of file diff --git a/docs/脚本/Mysql/表结构、初始化数据.sql b/docs/脚本/Mysql/表结构、初始化数据.sql index 851a267a..5497f737 100644 --- a/docs/脚本/Mysql/表结构、初始化数据.sql +++ b/docs/脚本/Mysql/表结构、初始化数据.sql @@ -1,5 +1,4 @@ -DROP TABLE IF EXISTS `hr_log`; CREATE TABLE `hr_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '日志ID', `operate_desc` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作详细说明', @@ -20,7 +19,6 @@ CREATE TABLE `hr_log` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_field_extendgroup`; CREATE TABLE `jcl_field_extendgroup` ( `id` int(11) NOT NULL AUTO_INCREMENT, `extend_type` int(11) NULL DEFAULT NULL, @@ -37,7 +35,6 @@ CREATE TABLE `jcl_field_extendgroup` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_field_extendinfo`; CREATE TABLE `jcl_field_extendinfo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `extend_type` int(11) NULL DEFAULT NULL, @@ -66,7 +63,6 @@ CREATE TABLE `jcl_field_extendinfo` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_field_extendtitle`; CREATE TABLE `jcl_field_extendtitle` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_id` int(11) NULL DEFAULT NULL, @@ -82,7 +78,6 @@ CREATE TABLE `jcl_field_extendtitle` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_comp`; CREATE TABLE `jcl_org_comp` ( `id` int(11) NOT NULL AUTO_INCREMENT, `comp_no` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, @@ -105,7 +100,6 @@ CREATE TABLE `jcl_org_comp` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_compext`; CREATE TABLE `jcl_org_compext` ( `id` int(11) NOT NULL, `creator` int(11) NULL DEFAULT NULL, @@ -118,7 +112,6 @@ CREATE TABLE `jcl_org_compext` ( ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_compext_dt1`; CREATE TABLE `jcl_org_compext_dt1` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mainid` int(11) NULL DEFAULT NULL, @@ -134,7 +127,6 @@ CREATE TABLE `jcl_org_compext_dt1` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_dept`; CREATE TABLE `jcl_org_dept` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dept_no` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, @@ -156,7 +148,6 @@ CREATE TABLE `jcl_org_dept` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_deptext`; CREATE TABLE `jcl_org_deptext` ( `id` int(11) NOT NULL AUTO_INCREMENT, `creator` int(11) NULL DEFAULT NULL, @@ -167,7 +158,6 @@ CREATE TABLE `jcl_org_deptext` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_deptext_dt1`; CREATE TABLE `jcl_org_deptext_dt1` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mainid` int(11) NULL DEFAULT NULL, @@ -179,7 +169,6 @@ CREATE TABLE `jcl_org_deptext_dt1` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_grade`; CREATE TABLE `jcl_org_grade` ( `id` int(11) NOT NULL AUTO_INCREMENT, `grade_no` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, @@ -197,7 +186,6 @@ CREATE TABLE `jcl_org_grade` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_hrmrelation`; CREATE TABLE `jcl_org_hrmrelation` ( `id` int(11) NOT NULL, `scheme_id` int(11) NULL DEFAULT NULL, @@ -217,7 +205,6 @@ CREATE TABLE `jcl_org_hrmrelation` ( ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_hrmresource`; CREATE TABLE `jcl_org_hrmresource` ( `id` int(11) NOT NULL AUTO_INCREMENT, `work_code` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, @@ -289,7 +276,6 @@ CREATE TABLE `jcl_org_hrmresource` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_hrmresourceext`; CREATE TABLE `jcl_org_hrmresourceext` ( `id` int(11) NOT NULL, `creator` int(11) NULL DEFAULT NULL, @@ -300,7 +286,6 @@ CREATE TABLE `jcl_org_hrmresourceext` ( ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_hrmresourceext_dt1`; CREATE TABLE `jcl_org_hrmresourceext_dt1` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mainid` int(11) NULL DEFAULT NULL, @@ -312,7 +297,6 @@ CREATE TABLE `jcl_org_hrmresourceext_dt1` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_job`; CREATE TABLE `jcl_org_job` ( `id` int(11) NOT NULL AUTO_INCREMENT, `job_no` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, @@ -342,7 +326,6 @@ CREATE TABLE `jcl_org_job` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_jobdt`; CREATE TABLE `jcl_org_jobdt` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mainid` int(11) NULL DEFAULT NULL, @@ -358,7 +341,6 @@ CREATE TABLE `jcl_org_jobdt` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_jobext`; CREATE TABLE `jcl_org_jobext` ( `id` int(11) NOT NULL AUTO_INCREMENT, `creator` int(11) NULL DEFAULT NULL, @@ -369,7 +351,6 @@ CREATE TABLE `jcl_org_jobext` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_jobext_dt1`; CREATE TABLE `jcl_org_jobext_dt1` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mainid` int(11) NULL DEFAULT NULL, @@ -385,7 +366,6 @@ CREATE TABLE `jcl_org_jobext_dt1` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_level`; CREATE TABLE `jcl_org_level` ( `id` int(11) NOT NULL AUTO_INCREMENT, `level_no` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, @@ -402,7 +382,6 @@ CREATE TABLE `jcl_org_level` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_map`; CREATE TABLE `jcl_org_map` ( `fid` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NULL DEFAULT NULL, @@ -436,7 +415,6 @@ CREATE TABLE `jcl_org_map` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_post`; CREATE TABLE `jcl_org_post` ( `id` int(11) NOT NULL AUTO_INCREMENT, `post_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, @@ -450,7 +428,6 @@ CREATE TABLE `jcl_org_post` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_post_info`; CREATE TABLE `jcl_org_post_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `post_info_no` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, @@ -470,7 +447,6 @@ CREATE TABLE `jcl_org_post_info` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_scheme`; CREATE TABLE `jcl_org_scheme` ( `id` int(11) NOT NULL AUTO_INCREMENT, `scheme_no` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, @@ -486,7 +462,6 @@ CREATE TABLE `jcl_org_scheme` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_sequence`; CREATE TABLE `jcl_org_sequence` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sequence_no` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, @@ -503,7 +478,6 @@ CREATE TABLE `jcl_org_sequence` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_staff`; CREATE TABLE `jcl_org_staff` ( `id` int(11) NOT NULL AUTO_INCREMENT, `plan_id` int(11) NULL DEFAULT NULL, @@ -526,7 +500,6 @@ CREATE TABLE `jcl_org_staff` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_staffplan`; CREATE TABLE `jcl_org_staffplan` ( `id` int(11) NOT NULL AUTO_INCREMENT, `plan_no` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, @@ -547,7 +520,6 @@ CREATE TABLE `jcl_org_staffplan` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_org_staffs`; CREATE TABLE `jcl_org_staffs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `staff_id` int(11) NULL DEFAULT NULL, @@ -563,7 +535,6 @@ CREATE TABLE `jcl_org_staffs` ( PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_import_history`; CREATE TABLE `jcl_import_history` ( `id` int(11) NOT NULL AUTO_INCREMENT, `operator` int(11) NOT NULL, @@ -577,7 +548,6 @@ CREATE TABLE `jcl_import_history` ( ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -DROP TABLE IF EXISTS `jcl_import_history_detail`; CREATE TABLE `jcl_import_history_detail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `pid` int(11) NOT NULL, @@ -706,7 +676,6 @@ insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (99, 4, 'JCL_ORG_HRMRESOURCE', 'work_year', '工龄', 'decimal(15,2)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 53, 1, 0, now(), NULL, '3', '["input","float","2"]', 0); insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (100, 4, 'JCL_ORG_HRMRESOURCE', 'company_work_year', '司龄', 'decimal(15,2)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 54, 1, 0, now(), NULL, '3', '["input","float","2"]', 0); -DROP TABLE IF EXISTS `JCL_INFO`; CREATE TABLE `JCL_INFO` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fname` varchar(100) DEFAULT NULL, diff --git a/docs/脚本/Oracle/表结构、初始化数据Oracle.sql b/docs/脚本/Oracle/表结构、初始化数据Oracle.sql index f68806b4..510e4dd6 100644 --- a/docs/脚本/Oracle/表结构、初始化数据Oracle.sql +++ b/docs/脚本/Oracle/表结构、初始化数据Oracle.sql @@ -1,31 +1,4 @@ -create or replace procedure jcl_droptable( - p_table in varchar2 -) is - v_count number(10); -begin -select count(*) into v_count from user_tables where table_name = upper(p_table); -if v_count > 0 then - execute immediate 'drop table ' || p_table ; -end if; -end jcl_droptable; -/ - -create or replace procedure jcl_dropsequence( - p_sequence in varchar2 -) is - v_count number(10); -begin -select count(*) into v_count from user_sequences where sequence_name = upper(p_sequence); -if v_count > 0 then - execute immediate 'drop sequence ' || p_sequence ; -end if; -end jcl_dropsequence; -/ - -begin - jcl_droptable('JCL_ORG_SCHEME'); -END; -/ + CREATE TABLE JCL_ORG_SCHEME ( ID NUMBER NOT NULL, SCHEME_NO NVARCHAR2(100) NULL, @@ -40,10 +13,7 @@ CREATE TABLE JCL_ORG_SCHEME ( CONSTRAINT JCL_ORG_SCHEME_PK PRIMARY KEY (ID) ) / -begin - jcl_droptable('JCL_ORG_LEVEL'); -END; -/ + CREATE TABLE JCL_ORG_LEVEL ( ID NUMBER NOT NULL, LEVEL_NO NVARCHAR2(100) NULL, @@ -59,10 +29,7 @@ CREATE TABLE JCL_ORG_LEVEL ( CONSTRAINT JCL_ORG_LEVEL_PK PRIMARY KEY (ID) ) / -begin - jcl_droptable('JCL_ORG_GRADE'); -END; -/ + CREATE TABLE JCL_ORG_GRADE ( ID NUMBER NOT NULL, GRADE_NO NVARCHAR2(100) NULL, @@ -80,10 +47,6 @@ CREATE TABLE JCL_ORG_GRADE ( ) / -begin - jcl_droptable('JCL_ORG_SEQUENCE'); -END; -/ CREATE TABLE JCL_ORG_SEQUENCE ( ID NUMBER NOT NULL, SEQUENCE_NO NVARCHAR2(100) NULL, @@ -99,10 +62,7 @@ CREATE TABLE JCL_ORG_SEQUENCE ( CONSTRAINT JCL_ORG_SEQUENCE_PK PRIMARY KEY (ID) ) / -begin - jcl_droptable('JCL_ORG_POST'); -END; -/ + CREATE TABLE JCL_ORG_POST ( ID NUMBER NOT NULL, POST_NO NVARCHAR2(100) NULL, @@ -117,10 +77,7 @@ CREATE TABLE JCL_ORG_POST ( ) / -begin - jcl_droptable('JCL_ORG_POST_INFO'); -END; -/ + CREATE TABLE JCL_ORG_POST_INFO ( ID NUMBER NOT NULL, POST_INFO_NO NVARCHAR2(100) NULL, @@ -140,10 +97,7 @@ CREATE TABLE JCL_ORG_POST_INFO ( ) / -begin - jcl_droptable('JCL_ORG_COMP'); -END; -/ + CREATE TABLE JCL_ORG_COMP ( ID NUMBER NOT NULL, COMP_NO NVARCHAR2(100) NULL, @@ -166,10 +120,7 @@ CREATE TABLE JCL_ORG_COMP ( ) / -begin - jcl_droptable('JCL_FIELD_EXTENDGROUP'); -END; -/ + CREATE TABLE JCL_FIELD_EXTENDGROUP ( ID NUMBER NOT NULL, PID NUMBER NULL, @@ -186,10 +137,7 @@ CREATE TABLE JCL_FIELD_EXTENDGROUP ( ) / -begin - jcl_droptable('JCL_FIELD_EXTENDTITLE'); -END; -/ + CREATE TABLE JCL_FIELD_EXTENDTITLE ( ID NUMBER NOT NULL, GROUP_ID NUMBER NULL, @@ -205,10 +153,7 @@ CREATE TABLE JCL_FIELD_EXTENDTITLE ( ) / -begin - jcl_droptable('JCL_FIELD_EXTENDINFO'); -END; -/ + CREATE TABLE JCL_FIELD_EXTENDINFO ( ID NUMBER NOT NULL, EXTEND_TYPE NUMBER NULL, @@ -237,10 +182,7 @@ CREATE TABLE JCL_FIELD_EXTENDINFO ( ) / -begin - jcl_droptable('JCL_ORG_COMPEXT'); -END; -/ + CREATE TABLE JCL_ORG_COMPEXT ( ID NUMBER NOT NULL, CREATOR NUMBER NULL, @@ -251,10 +193,7 @@ CREATE TABLE JCL_ORG_COMPEXT ( ) / -begin - jcl_droptable('JCL_ORG_COMPEXT_DT1'); -END; -/ + CREATE TABLE JCL_ORG_COMPEXT_DT1 ( ID NUMBER NOT NULL, MAINID NUMBER NULL, @@ -266,10 +205,7 @@ CREATE TABLE JCL_ORG_COMPEXT_DT1 ( ) / -begin - jcl_droptable('JCL_ORG_DEPT'); -END; -/ + CREATE TABLE JCL_ORG_DEPT ( ID NUMBER NOT NULL, DEPT_NO NVARCHAR2(100) NULL, @@ -291,10 +227,7 @@ CREATE TABLE JCL_ORG_DEPT ( ) / -begin - jcl_droptable('JCL_ORG_DEPTEXT'); -END; -/ + CREATE TABLE JCL_ORG_DEPTEXT ( ID NUMBER NOT NULL, CREATOR NUMBER NULL, @@ -305,10 +238,7 @@ CREATE TABLE JCL_ORG_DEPTEXT ( ) / -begin - jcl_droptable('JCL_ORG_DEPTEXT_DT1'); -END; -/ + CREATE TABLE JCL_ORG_DEPTEXT_DT1 ( ID NUMBER NOT NULL, MAINID NUMBER NULL, @@ -320,10 +250,7 @@ CREATE TABLE JCL_ORG_DEPTEXT_DT1 ( ) / -begin - jcl_droptable('JCL_ORG_JOB'); -END; -/ + CREATE TABLE JCL_ORG_JOB ( ID NUMBER NOT NULL, JOB_NO NVARCHAR2(100) NULL, @@ -353,10 +280,7 @@ CREATE TABLE JCL_ORG_JOB ( ) / -begin - jcl_droptable('JCL_ORG_JOBDT'); -END; -/ + CREATE TABLE JCL_ORG_JOBDT ( ID NUMBER NOT NULL, MAINID NUMBER NULL, @@ -372,10 +296,7 @@ CREATE TABLE JCL_ORG_JOBDT ( ) / -begin - jcl_droptable('JCL_ORG_JOBEXT'); -END; -/ + CREATE TABLE JCL_ORG_JOBEXT ( ID NUMBER NOT NULL, CREATOR NUMBER NULL, @@ -386,10 +307,7 @@ CREATE TABLE JCL_ORG_JOBEXT ( ) / -begin - jcl_droptable('JCL_ORG_JOBEXT_DT1'); -END; -/ + CREATE TABLE JCL_ORG_JOBEXT_DT1 ( ID NUMBER NOT NULL, MAINID NUMBER NULL, @@ -405,10 +323,7 @@ CREATE TABLE JCL_ORG_JOBEXT_DT1 ( ) / -begin - jcl_droptable('JCL_ORG_HRMRESOURCE'); -END; -/ + CREATE TABLE JCL_ORG_HRMRESOURCE ( ID NUMBER NOT NULL, WORK_CODE NVARCHAR2(60) NULL, @@ -480,10 +395,7 @@ CREATE TABLE JCL_ORG_HRMRESOURCE ( ) / -begin - jcl_droptable('JCL_ORG_HRMRESOURCEEXT'); -END; -/ + CREATE TABLE JCL_ORG_HRMRESOURCEEXT ( ID NUMBER NOT NULL, CREATOR NUMBER NULL, @@ -494,10 +406,7 @@ CREATE TABLE JCL_ORG_HRMRESOURCEEXT ( ) / -begin - jcl_droptable('JCL_ORG_HRMRESOURCEEXT_DT1'); -END; -/ + CREATE TABLE JCL_ORG_HRMRESOURCEEXT_DT1 ( ID NUMBER NOT NULL, MAINID NUMBER NULL, @@ -509,10 +418,7 @@ CREATE TABLE JCL_ORG_HRMRESOURCEEXT_DT1 ( ) / -begin - jcl_droptable('JCL_ORG_STAFFPLAN'); -END; -/ + CREATE TABLE JCL_ORG_STAFFPLAN ( ID NUMBER NOT NULL, PLAN_NO NVARCHAR2(100) NULL, @@ -533,10 +439,7 @@ CREATE TABLE JCL_ORG_STAFFPLAN ( ) / -begin - jcl_droptable('JCL_ORG_STAFF'); -END; -/ + CREATE TABLE JCL_ORG_STAFF ( ID NUMBER NOT NULL, PLAN_ID NUMBER NULL, @@ -559,10 +462,7 @@ CREATE TABLE JCL_ORG_STAFF ( ) / -begin - jcl_droptable('JCL_ORG_STAFFS'); -END; -/ + CREATE TABLE JCL_ORG_STAFFS ( ID NUMBER NOT NULL, STAFF_ID NUMBER NULL, @@ -578,10 +478,7 @@ CREATE TABLE JCL_ORG_STAFFS ( ) / -begin - jcl_droptable('HR_LOG'); -END; -/ + CREATE TABLE HR_LOG ( ID NUMBER NOT NULL, OPERATE_DESC NVARCHAR2(100) NULL, @@ -602,10 +499,7 @@ CREATE TABLE HR_LOG ( ) / -begin - jcl_droptable('JCL_ORG_HRMRELATION'); -END; -/ + CREATE TABLE JCL_ORG_HRMRELATION ( ID NUMBER NOT NULL, SCHEME_ID NUMBER NULL, @@ -625,10 +519,7 @@ CREATE TABLE JCL_ORG_HRMRELATION ( ) / -begin - jcl_droptable('JCL_ORG_MAP'); -END; -/ + CREATE TABLE JCL_ORG_MAP ( FID NUMBER NOT NULL, ID NUMBER NOT NULL, @@ -662,10 +553,7 @@ CREATE TABLE JCL_ORG_MAP ( ) / -begin - jcl_droptable('JCL_IMPORT_HISTORY'); -END; -/ + CREATE TABLE JCL_IMPORT_HISTORY ( ID NUMBER NOT NULL, OPERATOR NUMBER NOT NULL, @@ -679,10 +567,7 @@ CREATE TABLE JCL_IMPORT_HISTORY ( ) / -begin - jcl_droptable('JCL_IMPORT_HISTORY_DETAIL'); -END; -/ + CREATE TABLE JCL_IMPORT_HISTORY_DETAIL ( ID NUMBER NOT NULL , PID NUMBER NOT NULL, @@ -694,10 +579,7 @@ CREATE TABLE JCL_IMPORT_HISTORY_DETAIL ( ) / -begin - jcl_droptable('JCL_INFO'); -END; -/ + CREATE TABLE JCL_INFO ( ID NUMBER NOT NULL, FNAME NVARCHAR2(100) DEFAULT NULL, @@ -706,10 +588,7 @@ CREATE TABLE JCL_INFO ( ) / -BEGIN - jcl_dropsequence('JCL_ORG_SCHEME_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_SCHEME_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -723,10 +602,7 @@ END; / -BEGIN - jcl_dropsequence('JCL_ORG_LEVEL_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_LEVEL_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -740,10 +616,7 @@ END; / -BEGIN - jcl_dropsequence('JCL_ORG_GRADE_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_GRADE_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -758,10 +631,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_SEQUENCE_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_SEQUENCE_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -776,10 +646,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_POST_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_POST_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -794,10 +661,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_POST_INFO_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_POST_INFO_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -812,10 +676,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_COMP_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_COMP_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -830,10 +691,7 @@ END; -BEGIN - jcl_dropsequence('JCL_FIELD_GROUP_ID'); -END; -/ + CREATE SEQUENCE JCL_FIELD_GROUP_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -848,10 +706,7 @@ END; -BEGIN - jcl_dropsequence('JCL_FIELD_TITLE_ID'); -END; -/ + CREATE SEQUENCE JCL_FIELD_TITLE_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -866,10 +721,7 @@ END; -BEGIN - jcl_dropsequence('JCL_FIELD_INFO_ID'); -END; -/ + CREATE SEQUENCE JCL_FIELD_INFO_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -884,10 +736,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_COMPEXT_DT1_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_COMPEXT_DT1_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -902,10 +751,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_DEPT_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_DEPT_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -920,10 +766,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_DEPTEXT_DT1_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_DEPTEXT_DT1_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -938,10 +781,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_JOB_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_JOB_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -956,10 +796,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_JOBDT_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_JOBDT_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -974,10 +811,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_JOBEXT_DT1_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_JOBEXT_DT1_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -992,10 +826,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_HRM_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_HRM_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -1010,10 +841,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_HRMEXT_DT1_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_HRMEXT_DT1_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -1028,10 +856,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_STAFFPLAN_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_STAFFPLAN_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -1047,10 +872,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_STAFF_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_STAFF_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -1065,10 +887,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_STAFFS_ID'); -END; -/ + CREATE SEQUENCE JCL_ORG_STAFFS_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -1083,10 +902,7 @@ END; -BEGIN - jcl_dropsequence('JCL_ORG_MAP_FID'); -END; -/ + CREATE SEQUENCE JCL_ORG_MAP_FID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -1101,10 +917,7 @@ END; -BEGIN - jcl_dropsequence('HR_LOG_ID'); -END; -/ + CREATE SEQUENCE HR_LOG_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -1119,10 +932,7 @@ END; -BEGIN - jcl_dropsequence('JCL_IMPORT_HISTORY_ID'); -END; -/ + CREATE SEQUENCE JCL_IMPORT_HISTORY_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -1137,10 +947,7 @@ END; -BEGIN - jcl_dropsequence('JCL_IMPORT_DETAIL_ID'); -END; -/ + CREATE SEQUENCE JCL_IMPORT_DETAIL_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE @@ -1155,10 +962,7 @@ END; -BEGIN - jcl_dropsequence('JCL_INFO_ID'); -END; -/ + CREATE SEQUENCE JCL_INFO_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE / CREATE diff --git a/docs/脚本/SqlServer/表结构、基础数据.sql b/docs/脚本/SqlServer/表结构、基础数据.sql index 9df81241..df806b9b 100644 --- a/docs/脚本/SqlServer/表结构、基础数据.sql +++ b/docs/脚本/SqlServer/表结构、基础数据.sql @@ -1,7 +1,5 @@ -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[HR_LOG]') AND type IN ('U')) - DROP TABLE [dbo].[HR_LOG] -GO + CREATE TABLE [dbo].[HR_LOG] ( [id] int IDENTITY(1,1) NOT NULL, @@ -26,9 +24,7 @@ ALTER TABLE [dbo].[HR_LOG] SET (LOCK_ESCALATION = TABLE) GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_FIELD_EXTENDGROUP]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_FIELD_EXTENDGROUP] -GO + CREATE TABLE [dbo].[JCL_FIELD_EXTENDGROUP] ( [id] int IDENTITY(1,1) NOT NULL, @@ -50,9 +46,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_FIELD_EXTENDINFO]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_FIELD_EXTENDINFO] -GO + CREATE TABLE [dbo].[JCL_FIELD_EXTENDINFO] ( [id] int IDENTITY(1,1) NOT NULL, @@ -86,9 +80,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_FIELD_EXTENDTITLE]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_FIELD_EXTENDTITLE] -GO + CREATE TABLE [dbo].[JCL_FIELD_EXTENDTITLE] ( [id] int IDENTITY(1,1) NOT NULL, @@ -109,9 +101,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_COMP]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_COMP] -GO + CREATE TABLE [dbo].[JCL_ORG_COMP] ( [id] int IDENTITY(1,1) NOT NULL, @@ -139,9 +129,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_COMPEXT]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_COMPEXT] -GO + CREATE TABLE [dbo].[JCL_ORG_COMPEXT] ( [id] int NOT NULL, @@ -157,9 +145,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_COMPEXT_DT1]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_COMPEXT_DT1] -GO + CREATE TABLE [dbo].[JCL_ORG_COMPEXT_DT1] ( [id] int IDENTITY(1,1) NOT NULL, @@ -176,9 +162,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_DEPT]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_DEPT] -GO + CREATE TABLE [dbo].[JCL_ORG_DEPT] ( [id] int IDENTITY(1,1) NOT NULL, @@ -205,9 +189,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_DEPTEXT]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_DEPTEXT] -GO + CREATE TABLE [dbo].[JCL_ORG_DEPTEXT] ( [id] int NOT NULL, @@ -223,9 +205,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_DEPTEXT_DT1]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_DEPTEXT_DT1] -GO + CREATE TABLE [dbo].[JCL_ORG_DEPTEXT_DT1] ( [id] int IDENTITY(1,1) NOT NULL, @@ -242,9 +222,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_GRADE]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_GRADE] -GO + CREATE TABLE [dbo].[JCL_ORG_GRADE] ( [id] int IDENTITY(1,1) NOT NULL, @@ -267,9 +245,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_HRMRELATION]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_HRMRELATION] -GO + CREATE TABLE [dbo].[JCL_ORG_HRMRELATION] ( [id] int NOT NULL, @@ -294,9 +270,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_HRMRESOURCE]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_HRMRESOURCE] -GO + CREATE TABLE [dbo].[JCL_ORG_HRMRESOURCE] ( [id] int IDENTITY(1,1) NOT NULL, @@ -373,9 +347,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_HRMRESOURCEEXT]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_HRMRESOURCEEXT] -GO + CREATE TABLE [dbo].[JCL_ORG_HRMRESOURCEEXT] ( [id] int IDENTITY(1,1) NOT NULL, @@ -391,9 +363,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_HRMRESOURCEEXT_DT1]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_HRMRESOURCEEXT_DT1] -GO + CREATE TABLE [dbo].[JCL_ORG_HRMRESOURCEEXT_DT1] ( [id] int IDENTITY(1,1) NOT NULL, @@ -410,9 +380,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_JOB]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_JOB] -GO + CREATE TABLE [dbo].[JCL_ORG_JOB] ( [id] int IDENTITY(1,1) NOT NULL, @@ -447,9 +415,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_JOBDT]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_JOBDT] -GO + CREATE TABLE [dbo].[JCL_ORG_JOBDT] ( [id] int IDENTITY(1,1) NOT NULL, @@ -470,9 +436,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_JOBEXT]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_JOBEXT] -GO + CREATE TABLE [dbo].[JCL_ORG_JOBEXT] ( [id] int NOT NULL, @@ -488,9 +452,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_JOBEXT_DT1]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_JOBEXT_DT1] -GO + CREATE TABLE [dbo].[JCL_ORG_JOBEXT_DT1] ( [id] int IDENTITY(1,1) NOT NULL, @@ -511,9 +473,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_LEVEL]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_LEVEL] -GO + CREATE TABLE [dbo].[JCL_ORG_LEVEL] ( [id] int IDENTITY(1,1) NOT NULL, @@ -535,9 +495,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_POST]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_POST] -GO + CREATE TABLE [dbo].[JCL_ORG_POST] ( [id] int IDENTITY(1,1) NOT NULL, @@ -557,9 +515,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_POST_INFO]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_POST_INFO] -GO + CREATE TABLE [dbo].[JCL_ORG_POST_INFO] ( [id] int IDENTITY(1,1) NOT NULL, @@ -584,9 +540,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_SCHEME]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_SCHEME] -GO + CREATE TABLE [dbo].[JCL_ORG_SCHEME] ( [id] int IDENTITY(1,1) NOT NULL, @@ -607,9 +561,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_SEQUENCE]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_SEQUENCE] -GO + CREATE TABLE [dbo].[JCL_ORG_SEQUENCE] ( [id] int IDENTITY(1,1) NOT NULL, @@ -631,9 +583,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_STAFF]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_STAFF] -GO + CREATE TABLE [dbo].[JCL_ORG_STAFF] ( [id] int IDENTITY(1,1) NOT NULL, @@ -661,9 +611,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_STAFFPLAN]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_STAFFPLAN] -GO + CREATE TABLE [dbo].[JCL_ORG_STAFFPLAN] ( [id] int IDENTITY(1,1) NOT NULL, @@ -689,9 +637,7 @@ GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_STAFFS]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_STAFFS] -GO + CREATE TABLE [dbo].[JCL_ORG_STAFFS] ( [id] int IDENTITY(1,1) NOT NULL, @@ -711,9 +657,7 @@ ALTER TABLE [dbo].[JCL_ORG_STAFFS] SET (LOCK_ESCALATION = TABLE) GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_ORG_MAP]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_ORG_MAP] -GO + CREATE TABLE [dbo].[JCL_ORG_MAP] ( [fid] int IDENTITY(1,1) NOT NULL, @@ -750,9 +694,7 @@ GO ALTER TABLE [dbo].[JCL_ORG_MAP] SET (LOCK_ESCALATION = TABLE) GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_IMPORT_HISTORY_DETAIL]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_IMPORT_HISTORY_DETAIL] -GO + CREATE TABLE [dbo].[JCL_IMPORT_HISTORY_DETAIL] ( [id] int IDENTITY(1,1) NOT NULL, @@ -767,9 +709,7 @@ CREATE TABLE [dbo].[JCL_IMPORT_HISTORY_DETAIL] ( ALTER TABLE [dbo].[JCL_IMPORT_HISTORY_DETAIL] SET (LOCK_ESCALATION = TABLE) GO -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[JCL_IMPORT_HISTORY]') AND type IN ('U')) - DROP TABLE [dbo].[JCL_IMPORT_HISTORY] -GO + CREATE TABLE [dbo].[JCL_IMPORT_HISTORY] ( [id] int IDENTITY(1,1) NOT NULL, @@ -789,338 +729,336 @@ GO ALTER TABLE [dbo].[HR_LOG] ADD CONSTRAINT [HR_LOG_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_FIELD_EXTENDGROUP] ADD CONSTRAINT [JCL_FIELD_EXTENDGROUP_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_FIELD_EXTENDINFO] ADD CONSTRAINT [JCL_FIELD_EXTENDINFO_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_FIELD_EXTENDTITLE] ADD CONSTRAINT [JCL_FIELD_EXTENDTITLE_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_COMP] ADD CONSTRAINT [JCL_ORG_COMP_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_COMPEXT] ADD CONSTRAINT [JCL_ORG_COMPEXT_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_COMPEXT_DT1] ADD CONSTRAINT [JCL_ORG_COMPEXT_DT1_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_DEPT] ADD CONSTRAINT [JCL_ORG_DEPT_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_DEPTEXT] ADD CONSTRAINT [JCL_ORG_DEPTEXT_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_DEPTEXT_DT1] ADD CONSTRAINT [JCL_ORG_DEPTEXT_DT1_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_GRADE] ADD CONSTRAINT [JCL_ORG_GRADE_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_HRMRELATION] ADD CONSTRAINT [JCL_ORG_HRMRELATION_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_HRMRESOURCE] ADD CONSTRAINT [JCL_ORG_HRMRESOURCE_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_HRMRESOURCEEXT] ADD CONSTRAINT [JCL_ORG_HRMRESOURCEEXT_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_HRMRESOURCEEXT_DT1] ADD CONSTRAINT [JCL_ORG_HRMRESOURCEEXT_DT1_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_JOB] ADD CONSTRAINT [JCL_ORG_JOB_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_JOBDT] ADD CONSTRAINT [JCL_ORG_JOBDT_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_JOBEXT] ADD CONSTRAINT [JCL_ORG_JOBEXT_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_JOBEXT_DT1] ADD CONSTRAINT [JCL_ORG_JOBEXT_DT1_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_LEVEL] ADD CONSTRAINT [JCL_ORG_LEVEL_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_POST] ADD CONSTRAINT [JCL_ORG_POST_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_POST_INFO] ADD CONSTRAINT [JCL_ORG_POST_INFO_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_SCHEME] ADD CONSTRAINT [JCL_ORG_SCHEME_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_SEQUENCE] ADD CONSTRAINT [JCL_ORG_SEQUENCE_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_STAFF] ADD CONSTRAINT [JCL_ORG_STAFF_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_STAFFPLAN] ADD CONSTRAINT [JCL_ORG_STAFFPLAN_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_STAFFS] ADD CONSTRAINT [JCL_ORG_STAFFS_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_ORG_MAP] ADD CONSTRAINT [JCL_ORG_MAP_PK] PRIMARY KEY CLUSTERED ([fid]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_IMPORT_HISTORY_DETAIL] ADD CONSTRAINT [JCL_IMPORT_HISTORY_DETAIL_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO ALTER TABLE [dbo].[JCL_IMPORT_HISTORY] ADD CONSTRAINT [JCL_IMPORT_HISTORY_PK] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] -GO - - -set IDENTITY_INSERT JCL_FIELD_EXTENDGROUP ON -insert INTO jcl_field_extendgroup (id, extend_type, group_name, creator, delete_type, create_time, update_time, pid, is_show, show_order, is_system_default) VALUES (1, 1, '基本信息', 1, 0, GETDATE(), NULL, NULL, '1', 1, 0) -insert INTO jcl_field_extendgroup (id, extend_type, group_name, creator, delete_type, create_time, update_time, pid, is_show, show_order, is_system_default) VALUES (2, 2, '基本信息', 1, 0, GETDATE(), NULL, NULL, '1', 1, 0) -insert INTO jcl_field_extendgroup (id, extend_type, group_name, creator, delete_type, create_time, update_time, pid, is_show, show_order, is_system_default) VALUES (3, 3, '基础信息', 1, 0, GETDATE(), NULL, NULL, '1', 1, 0) -insert INTO jcl_field_extendgroup (id, extend_type, group_name, creator, delete_type, create_time, update_time, pid, is_show, show_order, is_system_default) VALUES (4, 4, '基本信息', 1, 0, GETDATE(), NULL, NULL, '1', 1, 0) -insert INTO jcl_field_extendgroup (id, extend_type, group_name, creator, delete_type, create_time, update_time, pid, is_show, show_order, is_system_default) VALUES (5, 3, '职务', 1, 0, GETDATE(),NULL, 3, '1', 1, 0) -set IDENTITY_INSERT JCL_FIELD_EXTENDGROUP OFF -GO - -set IDENTITY_INSERT JCL_FIELD_EXTENDTITLE ON -insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (1, 1, '基本信息', 1, 0, GETDATE(), NULL, 1, 1, 0) -insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (2, 2, '基本信息', 1, 0, GETDATE(), NULL, 1, 1, 0) -insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (3, 3, '基本信息', 1, 0, GETDATE(), NULL, 1, 1, 0) -insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (4, 4, '基本信息', 1, 0, GETDATE(), NULL, 1, 1, 0) -insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (5, 3, '职务信息', 1, 0, GETDATE(), NULL, 2, 1, 0) -insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (6, 3, '职责信息', 1, 0, GETDATE(), NULL, 3, 1, 0) -insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (7, 4, '上下级关系', 1, 0, GETDATE(), NULL, 2, 1, 0) -insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (8, 4, '通讯信息', 1, 0, GETDATE(), NULL, 3, 1, 0) -set IDENTITY_INSERT JCL_FIELD_EXTENDTITLE OFF -GO - -set IDENTITY_INSERT JCL_FIELD_EXTENDINFO ON -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (2, 1, 'JCL_ORG_COMP', 'comp_name', '名称', 'varchar(100)', 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (3, 1, 'JCL_ORG_COMP', 'parent_company', '上级公司', 'int', 3, 1, 1, 0, 1, 1, 1, 1, 1, 6, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"compBrowser","valueSpan":"公司分部浏览按钮","replaceDatas":[{"showname":"compBrowser","shownamespan":"compBrowser","namespan":"公司分部浏览按钮","name":"公司分部浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","randomFieldId":"compBrowser","id":"compBrowser"}]}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (1, 1, 'JCL_ORG_COMP', 'comp_no', '编号', 'varchar(100)', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (4, 1, 'JCL_ORG_COMP', 'industry', '行业', 'int', 3, 1, 1, 0, 1, 1, 1, 1, 1, 8, 1, 0, GETDATE(), NULL, '63', NULL, 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (5, 1, 'JCL_ORG_COMP', 'comp_name_short', '简称', 'varchar(100)', 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (6, 1, 'JCL_ORG_COMP', 'org_code', '组织机构代码', 'varchar(100)', 1, 1, 1, 0, 1, 1, 1, 1, 1, 7, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (7, 1, 'JCL_ORG_COMP', 'comp_principal', '负责人', 'int', 3, 1, 1, 0, 1, 1, 1, 1, 1, 9, 1, 0, GETDATE(), NULL, '1', NULL, 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (8, 1, 'JCL_ORG_COMP', 'description', '说明', 'text', 2, 1, 1, 0, 1, 0, 1, 0, 1, 10, 1, 0, GETDATE(), NULL, NULL, NULL, 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (9, 1, 'JCL_ORG_COMP', 'forbidden_tag', '禁用标记', 'int', 5, 1, 1, 0, 1, 1, 0, 0, 1, 11, 1, 0, GETDATE(), NULL, '', '["select","select",{"datas":[{"default":"","unuse":"0","id":"0","key":"0","option":"启用"},{"default":"","unuse":"0","id":"1","key":"1","option":"禁用"}],"sort":"horizontal"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (10, 1, 'JCL_ORG_COMP', 'show_order', '显示顺序', 'int', 1, 1, 1, 0, 1, NULL, 1, 1, 1, 12, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (11, 2, 'JCL_ORG_DEPT', 'dept_no', '编号', 'varchar(100)', 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (12, 2, 'JCL_ORG_DEPT', 'dept_name', '名称', 'varchar(100)', 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (13, 2, 'JCL_ORG_DEPT', 'dept_name_short', '简称', 'varchar(100)', 1, 2, 1, 1, 1, 1, 1, 1, 1, 3, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (14, 2, 'JCL_ORG_DEPT', 'parent_comp', '所属分部', 'int', 3, 2, 1, 1, 1, 1, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"compBrowser","valueSpan":"公司分部浏览按钮","replaceDatas":[{"showname":"compBrowser","shownamespan":"compBrowser","namespan":"公司分部浏览按钮","name":"公司分部浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","randomFieldId":"compBrowser","id":"compBrowser"}]}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (15, 2, 'JCL_ORG_DEPT', 'parent_dept', '上级部门', 'int', 3, 2, 1, 0, 1, 1, 1, 1, 1, 5, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"部门浏览按钮","replaceDatas":[{"showname":"deptBrowser","shownamespan":"deptBrowser","namespan":"部门浏览按钮","name":"部门浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","id":"deptBrowser","randomFieldId":"deptBrowser"}],"value":"deptBrowser"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (16, 2, 'JCL_ORG_DEPT', 'dept_principal', '部门负责人', 'int', 3, 2, 1, 0, 1, 1, 1, 1, 1, 6, 1, 0, GETDATE(), NULL, '1', NULL, 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (17, 2, 'JCL_ORG_DEPT', 'show_order', '显示顺序', 'int', 1, 2, 1, 0, 1, 1, 1, 1, 1, 7, 1, 0, GETDATE(), NULL, '2', NULL, 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (18, 2, 'JCL_ORG_DEPT', 'description', '说明', 'text', 2, 2, 1, 0, 1, 1, 1, 0, 1, 8, 1, 0, GETDATE(), NULL, NULL, NULL, 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (19, 2, 'JCL_ORG_DEPT', 'forbidden_tag', '禁用标记', 'int', 5, 2, 1, 0, 1, 1, 0, 0, 1, 9, 1, 0, GETDATE(), NULL, NULL, '["select","select",{"datas":[{"default":"","unuse":"0","id":"0","key":"0","option":"启用"},{"default":"","unuse":"0","id":"1","key":"1","option":"禁用"}],"sort":"horizontal"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (20, 3, 'JCL_ORG_JOB', 'job_no', '编号', 'varchar(100)', 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (21, 3, 'JCL_ORG_JOB', 'sequence_id', '岗位序列', 'int', 3, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"sequenceBrowser","valueSpan":"岗位序列","replaceDatas":[{"showname":"sequenceBrowser","shownamespan":"sequenceBrowser","namespan":"岗位序列","name":"岗位序列","showtypespan":"列表式","randomFieldIdspan":"","showtype":"1","randomFieldId":"sequenceBrowser","id":"sequenceBrowser"}]}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (22, 3, 'JCL_ORG_JOB', 'description', '工作概述', 'text', 2, 6, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, GETDATE(), NULL, NULL, NULL, 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (23, 3, 'JCL_ORG_JOB', 'job_name', '名称', 'varchar(100)', 1, 3, 1, 0, 1, 1, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (24, 3, 'JCL_ORG_JOB', 'scheme_id', '等级方案', 'int', 3, 5, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"schemeBrowser","valueSpan":"等级方案浏览按钮","replaceDatas":[{"showname":"schemeBrowser","shownamespan":"schemeBrowser","namespan":"等级方案浏览按钮","name":"等级方案浏览按钮","showtypespan":"列表式","randomFieldIdspan":"","showtype":"1","randomFieldId":"schemeBrowser","id":"schemeBrowser"}]}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (25, 3, 'JCL_ORG_JOB', 'work_duty', '任职职责', 'text', 2, 6, 1, 0, 1, 1, 1, 0, 1, 2, 1, 0, GETDATE(), NULL, NULL, NULL, 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (26, 3, 'JCL_ORG_JOB', 'ec_department', '所属部门', 'int', 3, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 0, GETDATE(), NULL, '4', '["browser",{"valueSpan":"部门","replaceDatas":[{"name":"部门","id":"4"}],"value":"4"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (27, 3, 'JCL_ORG_JOB', 'work_authority', '工作权限', 'text', 2, 6, 1, 0, 1, 1, 1, 0, 1, 3, 1, 0, GETDATE(), NULL, NULL, NULL, 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (28, 3, 'JCL_ORG_JOB', 'level_id', '职等', 'text', 3, 5, 1, 0, 1, NULL, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '162', '["browser",{"valueSpan":"自定义多选","replaceDatas":[{"itemorderid":"162","name":"自定义多选","id":"162","parenttitle":"集成","title":"集成-自定义多选"}],"value":"162"},{"valueSpan":"职等浏览按钮","replaceDatas":[{"showname":"LevelBrowser","name":"职等浏览按钮","id":"LevelBrowser"}],"value":"LevelBrowser"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (29, 3, 'JCL_ORG_JOB', 'ec_company', '所属分部', 'int', 3, 3, 1, 0, 1, 1, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '164', '["browser",{"valueSpan":"分部","replaceDatas":[{"name":"分部","id":"164"}],"value":"164"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (30, 3, 'JCL_ORG_JOB', 'grade_id', '职级', 'text', 3, 5, 1, 0, 1, NULL, 1, 1, 1, 3, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"itemorderid":"161","name":"自定义单选","id":"161","parenttitle":"集成","title":"集成-自定义单选"}],"value":"161"},{"valueSpan":"职级浏览按钮","replaceDatas":[{"showname":"gradeBrowser","name":"职级浏览按钮","id":"gradeBrowser"}],"value":"gradeBrowser"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (31, 3, 'JCL_ORG_JOB', 'parent_job', '上级岗位', 'int', 3, 3, 1, 0, 1, 1, 1, 1, 1, 5, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"jobBrowser","valueSpan":"岗位浏览按钮","replaceDatas":[{"showname":"jobBrowser","shownamespan":"jobBrowser","namespan":"岗位浏览按钮","name":"岗位浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","randomFieldId":"jobBrowser","id":"jobBrowser"}]}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (32, 3, 'JCL_ORG_JOB', 'is_key', '是否关键岗', 'int', 5, 3, 1, 0, 1, 1, 1, 1, 1, 6, 1, 0, GETDATE(), NULL, NULL, '["select","select",{"datas":[{"default":"","unuse":"0","id":"0","key":"0","option":"否"},{"default":"","unuse":"0","id":"1","key":"1","option":"是"}],"sort":"horizontal"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (33, 3, 'JCL_ORG_JOB', 'workplace', '工作地点', 'varchar(100)', 1, 3, 1, 0, 1, 1, 1, 0, 1, 7, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (34, 3, 'JCL_ORG_JOB', 'forbidden_tag', '禁用标记', 'int', 5, 3, 1, 0, 1, 1, 0, 0, 1, 8, 1, 0, GETDATE(), NULL, NULL, '["select","select",{"datas":[{"default":"","unuse":"0","id":"0","key":"0","option":"启用"},{"default":"","unuse":"0","id":"1","key":"1","option":"禁用"}],"sort":"horizontal"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (35, 3, 'JCL_ORG_JOB', 'show_order', '显示顺序', 'int', 1, 3, 1, 0, 1, NULL, 1, 1, 1, 9, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (36, 3, 'JCL_ORG_JOB', 'parent_comp', '所属分部', 'int', 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"compBrowser","valueSpan":"公司分部浏览按钮","replaceDatas":[{"showname":"compBrowser","shownamespan":"compBrowser","namespan":"公司分部浏览按钮","name":"公司分部浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","randomFieldId":"compBrowser","id":"compBrowser"}]}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (37, 3, 'JCL_ORG_JOB', 'parent_dept', '上级部门', 'int', 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"部门浏览按钮","replaceDatas":[{"showname":"deptBrowser","shownamespan":"deptBrowser","namespan":"部门浏览按钮","name":"部门浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","id":"deptBrowser","randomFieldId":"deptBrowser"}],"value":"deptBrowser"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (38, 3, 'JCL_ORG_JOBEXT_DT1', 'post_id', '职务分类', 'text', 3, 5, 1, 0, 1, NULL, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"itemorderid":"161","name":"自定义单选","id":"161","parenttitle":"集成","title":"集成-自定义单选"}],"value":"161"},{"valueSpan":"职务分类浏览按钮","replaceDatas":[{"showname":"postBrowser","name":"职务分类浏览按钮","id":"postBrowser"}],"value":"postBrowser"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (39, 3, 'JCL_ORG_JOBEXT_DT1', 'post_info_id', '职务', 'text', 3, 5, 1, 0, 1, NULL, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"itemorderid":"161","name":"自定义单选","id":"161","parenttitle":"集成","title":"集成-自定义单选"}],"value":"161"},{"valueSpan":"职务信息浏览按钮","replaceDatas":[{"showname":"PostInfoBrowser","name":"职务信息浏览按钮","id":"PostInfoBrowser"}],"value":"PostInfoBrowser"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (40, 4, 'JCL_ORG_HRMRESOURCE', 'work_code', '编号', 'varchar(60)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (41, 4, 'JCL_ORG_HRMRESOURCE', 'manager_id', '直接上级', 'int', 3, 7, 1, 0, 1, NULL, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["browser",{"valueSpan":"人力资源","replaceDatas":[{"itemorderid":"1","name":"人力资源","id":"1","parenttitle":"人员","title":"人员-人力资源"}],"value":"1"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (42, 4, 'JCL_ORG_HRMRESOURCE', 'mobile', '移动电话', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (43, 4, 'JCL_ORG_HRMRESOURCE', 'login_id', '登录名', 'varchar(60)', 1, 4, 1, 1, 1, NULL, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (44, 4, 'JCL_ORG_HRMRESOURCE', 'assistant_id', '助理', 'int', 3, 7, 1, 0, 1, NULL, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["browser",{"valueSpan":"人力资源","replaceDatas":[{"itemorderid":"1","name":"人力资源","id":"1","parenttitle":"人员","title":"人员-人力资源"}],"value":"1"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (45, 4, 'JCL_ORG_HRMRESOURCE', 'telephone', '办公室电话', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (46, 4, 'JCL_ORG_HRMRESOURCE', 'last_name', '姓名', 'varchar(60)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 3, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (47, 4, 'JCL_ORG_HRMRESOURCE', 'mobile_call', '其他电话', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 3, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (48, 4, 'JCL_ORG_HRMRESOURCE', 'sex', '性别', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"男"},{"default":"","unuse":"","id":"1","key":"1","option":"女"}],"sort":"horizontal"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (49, 4, 'JCL_ORG_HRMRESOURCE', 'fax', '传真', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (50, 4, 'JCL_ORG_HRMRESOURCE', 'account_type', '账号类型', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 5, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"主账号"},{"default":"","unuse":"","id":"1","key":"1","option":"次账号"}],"sort":"horizontal"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (51, 4, 'JCL_ORG_HRMRESOURCE', 'email', '电子邮件', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 5, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (52, 4, 'JCL_ORG_HRMRESOURCE', 'belong_to', '主账号', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 6, 1, 0, GETDATE(), NULL, '1', '["browser",{"valueSpan":"人力资源","replaceDatas":[{"name":"人力资源","id":"1"}],"value":"1"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (53, 4, 'JCL_ORG_HRMRESOURCE', 'workroom', '办公室', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 6, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (54, 4, 'JCL_ORG_HRMRESOURCE', 'department_id', '部门', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 7, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"部门浏览按钮","replaceDatas":[{"showname":"deptBrowser","shownamespan":"deptBrowser","namespan":"部门浏览按钮","name":"部门浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","id":"deptBrowser","randomFieldId":"deptBrowser"}],"value":"deptBrowser"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (55, 4, 'JCL_ORG_HRMRESOURCE', 'job_activity', '职务', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 8, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"职务分类浏览按钮","replaceDatas":[{"showname":"postBrowser","shownamespan":"postBrowser","namespan":"职务分类浏览按钮","name":"职务分类浏览按钮","showtypespan":"列表式","randomFieldIdspan":"","showtype":"1","id":"postBrowser","randomFieldId":"postBrowser"}],"value":"postBrowser"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (56, 4, 'JCL_ORG_HRMRESOURCE', 'job_title', '岗位', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 9, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"jobBrowser","valueSpan":"岗位浏览按钮","replaceDatas":[{"showname":"jobBrowser","shownamespan":"jobBrowser","namespan":"岗位浏览按钮","name":"岗位浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","randomFieldId":"jobBrowser","id":"jobBrowser"}]}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (57, 4, 'JCL_ORG_HRMRESOURCE', 'job_call', '职称', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 10, 1, 0, GETDATE(), NULL, '260', '["browser",{"valueSpan":"职称","replaceDatas":[{"name":"职称","id":"260"}],"value":"260"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (58, 4, 'JCL_ORG_HRMRESOURCE', 'job_level', '职级', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 11, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"职级浏览按钮","replaceDatas":[{"showname":"gradeBrowser","name":"职级浏览按钮","id":"gradeBrowser"}],"value":"gradeBrowser"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (59, 4, 'JCL_ORG_HRMRESOURCE', 'job_group_id', '职务类别', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 12, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"职务分类浏览按钮","replaceDatas":[{"showname":"postBrowser","name":"职务分类浏览按钮","id":"postBrowser"}],"value":"postBrowser"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (60, 4, 'JCL_ORG_HRMRESOURCE', 'job_activity_desc', '职责描述', 'varchar(200)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 13, 1, 0, GETDATE(), NULL, '1', '["input","text","200"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (61, 4, 'JCL_ORG_HRMRESOURCE', 'status', '状态', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 14, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"试用"},{"default":"","unuse":"","id":"1","key":"1","option":"正式"},{"default":"","unuse":"","id":"2","key":"2","option":"临时"},{"default":"","unuse":"","id":"3","key":"3","option":"试用延期"},{"default":"","unuse":"","id":"4","key":"4","option":"解聘"},{"default":"","unuse":"","id":"5","key":"5","option":"离职"},{"default":"","unuse":"","id":"6","key":"6","option":"退休"},{"default":"","unuse":"","id":"7","key":"7","option":"无效"},{"default":"","unuse":"","id":"8","key":"8","option":"在职"}],"sort":"horizontal"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (62, 4, 'JCL_ORG_HRMRESOURCE', 'system_language', '系统语言', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 15, 1, 0, GETDATE(), NULL, '259', '["browser",{"valueSpan":"语言","replaceDatas":[{"itemorderid":"259","name":"语言","id":"259","parenttitle":"系统","title":"系统-语言"}],"value":"259"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (63, 4, 'JCL_ORG_HRMRESOURCE', 'resource_image_id', '照片', 'varchar(1000)', 6, 4, 1, 0, 1, NULL, 1, 1, 1, 16, 1, 0, GETDATE(), NULL, '1', '["upload","file"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (64, 4, 'JCL_ORG_HRMRESOURCE', 'messager_url', '头像', 'varchar(1000)', 6, 4, 1, 0, 1, NULL, 1, 1, 1, 17, 1, 0, GETDATE(), NULL, '1', '["upload","file"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (65, 4, 'JCL_ORG_HRMRESOURCE', 'location_id', '办公地点', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 18, 1, 0, GETDATE(), NULL, '262', '["browser",{"valueSpan":"办公地点","replaceDatas":[{"itemorderid":"262","name":"办公地点","id":"262","parenttitle":"组织","title":"组织-办公地点"}],"value":"262"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (66, 4, 'JCL_ORG_HRMRESOURCE', 'company_id', '分部', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 19, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"公司分部浏览按钮","replaceDatas":[{"showname":"compBrowser","name":"公司分部浏览按钮","id":"compBrowser"}],"value":"compBrowser"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (67, 4, 'JCL_ORG_HRMRESOURCE', 'pass_word', '密码', 'varchar(100)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 20, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (68, 4, 'JCL_ORG_HRMRESOURCE', 'sec_level', '安全级别', 'int', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 21, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (69, 4, 'JCL_ORG_HRMRESOURCE', 'birthday', '出生日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 22, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (70, 4, 'JCL_ORG_HRMRESOURCE', 'folk', '民族', 'varchar(30)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 23, 1, 0, GETDATE(), NULL, '1', '["input","text","30"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (71, 4, 'JCL_ORG_HRMRESOURCE', 'native_place', '籍贯', 'varchar(100)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 24, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (72, 4, 'JCL_ORG_HRMRESOURCE', 'reg_resident_place', '户口', 'varchar(200)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 25, 1, 0, GETDATE(), NULL, '1', '["input","text","200"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (73, 4, 'JCL_ORG_HRMRESOURCE', 'certificate_num', '身份证号码', 'varchar(60)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 26, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (74, 4, 'JCL_ORG_HRMRESOURCE', 'marital_status', '婚姻状况', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 27, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"未婚"},{"default":"","unuse":"","id":"1","key":"1","option":"已婚"},{"default":"","unuse":"","id":"2","key":"2","option":"离异"}],"sort":"horizontal"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (75, 4, 'JCL_ORG_HRMRESOURCE', 'policy', '政治面貌', 'varchar(30)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 28, 1, 0, GETDATE(), NULL, '1', '["input","text","30"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (76, 4, 'JCL_ORG_HRMRESOURCE', 'be_member_date', '入团日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 29, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (77, 4, 'JCL_ORG_HRMRESOURCE', 'be_party_date', '入党日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 30, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (78, 4, 'JCL_ORG_HRMRESOURCE', 'islabouunion', '工会会员', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 31, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"是"},{"default":"","unuse":"","id":"1","key":"1","option":"否"}],"sort":"horizontal"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (79, 4, 'JCL_ORG_HRMRESOURCE', 'education_level', '学历', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 32, 1, 0, GETDATE(), NULL, '30', '["browser",{"valueSpan":"学历","replaceDatas":[{"name":"学历","id":"30"}],"value":"30"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (80, 4, 'JCL_ORG_HRMRESOURCE', 'degree', '学位', 'varchar(30)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 33, 1, 0, GETDATE(), NULL, '1', '["input","text","30"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (81, 4, 'JCL_ORG_HRMRESOURCE', 'health_info', '健康状况', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 34, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"优秀"},{"default":"","unuse":"","id":"1","key":"1","option":"良好"},{"default":"","unuse":"","id":"2","key":"2","option":"一般"},{"default":"","unuse":"","id":"3","key":"3","option":"较差"}],"sort":"horizontal"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (82, 4, 'JCL_ORG_HRMRESOURCE', 'height', '身高', 'int', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 35, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (83, 4, 'JCL_ORG_HRMRESOURCE', 'weight', '体重', 'int', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 36, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (84, 4, 'JCL_ORG_HRMRESOURCE', 'use_kind', '用工性质', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 37, 1, 0, GETDATE(), NULL, '31', '["browser",{"valueSpan":"用工性质","replaceDatas":[{"name":"用工性质","id":"31"}],"value":"31"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (85, 4, 'JCL_ORG_HRMRESOURCE', 'start_date', '合同开始日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 38, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (86, 4, 'JCL_ORG_HRMRESOURCE', 'end_date', '合同结束日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 39, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (87, 4, 'JCL_ORG_HRMRESOURCE', 'probation_end_date', '试用期结束日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 40, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (88, 4, 'JCL_ORG_HRMRESOURCE', 'resident_place', '现居住地', 'varchar(200)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 41, 1, 0, GETDATE(), NULL, '1', '["input","text","200"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (89, 4, 'JCL_ORG_HRMRESOURCE', 'home_address', '家庭联系方式', 'varchar(100)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 42, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (90, 4, 'JCL_ORG_HRMRESOURCE', 'temp_resident_number', '暂住证号码', 'varchar(60)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 43, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (91, 4, 'JCL_ORG_HRMRESOURCE', 'company_start_date', '入职日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 44, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (92, 4, 'JCL_ORG_HRMRESOURCE', 'work_start_date', '参加工作日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 45, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (93, 4, 'JCL_ORG_HRMRESOURCE', 'accum_fund_account', '公积金帐户', 'varchar(30)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 46, 1, 0, GETDATE(), NULL, '1', '["input","text","30"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (94, 4, 'JCL_ORG_HRMRESOURCE', 'account_name', '工资账号户名', 'varchar(200)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 48, 1, 0, GETDATE(), NULL, '1', '["input","text","200"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (95, 4, 'JCL_ORG_HRMRESOURCE', 'bank_id', '工资银行', 'varchar(400)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 49, 1, 0, GETDATE(), NULL, '284', '["browser",{"valueSpan":"工资银行","replaceDatas":[{"itemorderid":"0","name":"工资银行","id":"284","parenttitle":"其他","title":"其他-工资银行"}],"value":"284"}]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (96, 4, 'JCL_ORG_HRMRESOURCE', 'account_id', '工资账号', 'varchar(100)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 50, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (97, 4, 'JCL_ORG_HRMRESOURCE', 'show_order', '显示顺序', 'int', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 51, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (98, 4, 'JCL_ORG_HRMRESOURCE', 'classification', '人员密级', 'int', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 52, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (99, 4, 'JCL_ORG_HRMRESOURCE', 'work_year', '工龄', 'decimal(15,2)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 53, 1, 0, GETDATE(), NULL, '3', '["input","float","2"]', 0) -insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (100, 4, 'JCL_ORG_HRMRESOURCE', 'company_work_year', '司龄', 'decimal(15,2)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 54, 1, 0, GETDATE(), NULL, '3', '["input","float","2"]', 0) -set IDENTITY_INSERT JCL_FIELD_EXTENDINFO OFF -GO - -IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[jcl_info]') AND type IN ('U')) - DROP TABLE [dbo].[jcl_info] + WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] +GO + + + set IDENTITY_INSERT JCL_FIELD_EXTENDGROUP ON + insert INTO jcl_field_extendgroup (id, extend_type, group_name, creator, delete_type, create_time, update_time, pid, is_show, show_order, is_system_default) VALUES (1, 1, '基本信息', 1, 0, GETDATE(), NULL, NULL, '1', 1, 0) + insert INTO jcl_field_extendgroup (id, extend_type, group_name, creator, delete_type, create_time, update_time, pid, is_show, show_order, is_system_default) VALUES (2, 2, '基本信息', 1, 0, GETDATE(), NULL, NULL, '1', 1, 0) + insert INTO jcl_field_extendgroup (id, extend_type, group_name, creator, delete_type, create_time, update_time, pid, is_show, show_order, is_system_default) VALUES (3, 3, '基础信息', 1, 0, GETDATE(), NULL, NULL, '1', 1, 0) + insert INTO jcl_field_extendgroup (id, extend_type, group_name, creator, delete_type, create_time, update_time, pid, is_show, show_order, is_system_default) VALUES (4, 4, '基本信息', 1, 0, GETDATE(), NULL, NULL, '1', 1, 0) + insert INTO jcl_field_extendgroup (id, extend_type, group_name, creator, delete_type, create_time, update_time, pid, is_show, show_order, is_system_default) VALUES (5, 3, '职务', 1, 0, GETDATE(),NULL, 3, '1', 1, 0) + set IDENTITY_INSERT JCL_FIELD_EXTENDGROUP OFF +GO + + set IDENTITY_INSERT JCL_FIELD_EXTENDTITLE ON + insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (1, 1, '基本信息', 1, 0, GETDATE(), NULL, 1, 1, 0) + insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (2, 2, '基本信息', 1, 0, GETDATE(), NULL, 1, 1, 0) + insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (3, 3, '基本信息', 1, 0, GETDATE(), NULL, 1, 1, 0) + insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (4, 4, '基本信息', 1, 0, GETDATE(), NULL, 1, 1, 0) + insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (5, 3, '职务信息', 1, 0, GETDATE(), NULL, 2, 1, 0) + insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (6, 3, '职责信息', 1, 0, GETDATE(), NULL, 3, 1, 0) + insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (7, 4, '上下级关系', 1, 0, GETDATE(), NULL, 2, 1, 0) + insert INTO jcl_field_extendtitle (id, group_id, title, creator, delete_type, create_time, update_time, show_order, is_show, is_system_default) VALUES (8, 4, '通讯信息', 1, 0, GETDATE(), NULL, 3, 1, 0) + set IDENTITY_INSERT JCL_FIELD_EXTENDTITLE OFF +GO + + set IDENTITY_INSERT JCL_FIELD_EXTENDINFO ON + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (2, 1, 'JCL_ORG_COMP', 'comp_name', '名称', 'varchar(100)', 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (3, 1, 'JCL_ORG_COMP', 'parent_company', '上级公司', 'int', 3, 1, 1, 0, 1, 1, 1, 1, 1, 6, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"compBrowser","valueSpan":"公司分部浏览按钮","replaceDatas":[{"showname":"compBrowser","shownamespan":"compBrowser","namespan":"公司分部浏览按钮","name":"公司分部浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","randomFieldId":"compBrowser","id":"compBrowser"}]}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (1, 1, 'JCL_ORG_COMP', 'comp_no', '编号', 'varchar(100)', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (4, 1, 'JCL_ORG_COMP', 'industry', '行业', 'int', 3, 1, 1, 0, 1, 1, 1, 1, 1, 8, 1, 0, GETDATE(), NULL, '63', NULL, 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (5, 1, 'JCL_ORG_COMP', 'comp_name_short', '简称', 'varchar(100)', 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (6, 1, 'JCL_ORG_COMP', 'org_code', '组织机构代码', 'varchar(100)', 1, 1, 1, 0, 1, 1, 1, 1, 1, 7, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (7, 1, 'JCL_ORG_COMP', 'comp_principal', '负责人', 'int', 3, 1, 1, 0, 1, 1, 1, 1, 1, 9, 1, 0, GETDATE(), NULL, '1', NULL, 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (8, 1, 'JCL_ORG_COMP', 'description', '说明', 'text', 2, 1, 1, 0, 1, 0, 1, 0, 1, 10, 1, 0, GETDATE(), NULL, NULL, NULL, 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (9, 1, 'JCL_ORG_COMP', 'forbidden_tag', '禁用标记', 'int', 5, 1, 1, 0, 1, 1, 0, 0, 1, 11, 1, 0, GETDATE(), NULL, '', '["select","select",{"datas":[{"default":"","unuse":"0","id":"0","key":"0","option":"启用"},{"default":"","unuse":"0","id":"1","key":"1","option":"禁用"}],"sort":"horizontal"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (10, 1, 'JCL_ORG_COMP', 'show_order', '显示顺序', 'int', 1, 1, 1, 0, 1, NULL, 1, 1, 1, 12, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (11, 2, 'JCL_ORG_DEPT', 'dept_no', '编号', 'varchar(100)', 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (12, 2, 'JCL_ORG_DEPT', 'dept_name', '名称', 'varchar(100)', 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (13, 2, 'JCL_ORG_DEPT', 'dept_name_short', '简称', 'varchar(100)', 1, 2, 1, 1, 1, 1, 1, 1, 1, 3, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (14, 2, 'JCL_ORG_DEPT', 'parent_comp', '所属分部', 'int', 3, 2, 1, 1, 1, 1, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"compBrowser","valueSpan":"公司分部浏览按钮","replaceDatas":[{"showname":"compBrowser","shownamespan":"compBrowser","namespan":"公司分部浏览按钮","name":"公司分部浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","randomFieldId":"compBrowser","id":"compBrowser"}]}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (15, 2, 'JCL_ORG_DEPT', 'parent_dept', '上级部门', 'int', 3, 2, 1, 0, 1, 1, 1, 1, 1, 5, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"部门浏览按钮","replaceDatas":[{"showname":"deptBrowser","shownamespan":"deptBrowser","namespan":"部门浏览按钮","name":"部门浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","id":"deptBrowser","randomFieldId":"deptBrowser"}],"value":"deptBrowser"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (16, 2, 'JCL_ORG_DEPT', 'dept_principal', '部门负责人', 'int', 3, 2, 1, 0, 1, 1, 1, 1, 1, 6, 1, 0, GETDATE(), NULL, '1', NULL, 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (17, 2, 'JCL_ORG_DEPT', 'show_order', '显示顺序', 'int', 1, 2, 1, 0, 1, 1, 1, 1, 1, 7, 1, 0, GETDATE(), NULL, '2', NULL, 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (18, 2, 'JCL_ORG_DEPT', 'description', '说明', 'text', 2, 2, 1, 0, 1, 1, 1, 0, 1, 8, 1, 0, GETDATE(), NULL, NULL, NULL, 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (19, 2, 'JCL_ORG_DEPT', 'forbidden_tag', '禁用标记', 'int', 5, 2, 1, 0, 1, 1, 0, 0, 1, 9, 1, 0, GETDATE(), NULL, NULL, '["select","select",{"datas":[{"default":"","unuse":"0","id":"0","key":"0","option":"启用"},{"default":"","unuse":"0","id":"1","key":"1","option":"禁用"}],"sort":"horizontal"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (20, 3, 'JCL_ORG_JOB', 'job_no', '编号', 'varchar(100)', 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (21, 3, 'JCL_ORG_JOB', 'sequence_id', '岗位序列', 'int', 3, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"sequenceBrowser","valueSpan":"岗位序列","replaceDatas":[{"showname":"sequenceBrowser","shownamespan":"sequenceBrowser","namespan":"岗位序列","name":"岗位序列","showtypespan":"列表式","randomFieldIdspan":"","showtype":"1","randomFieldId":"sequenceBrowser","id":"sequenceBrowser"}]}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (22, 3, 'JCL_ORG_JOB', 'description', '工作概述', 'text', 2, 6, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, GETDATE(), NULL, NULL, NULL, 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (23, 3, 'JCL_ORG_JOB', 'job_name', '名称', 'varchar(100)', 1, 3, 1, 0, 1, 1, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (24, 3, 'JCL_ORG_JOB', 'scheme_id', '等级方案', 'int', 3, 5, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"schemeBrowser","valueSpan":"等级方案浏览按钮","replaceDatas":[{"showname":"schemeBrowser","shownamespan":"schemeBrowser","namespan":"等级方案浏览按钮","name":"等级方案浏览按钮","showtypespan":"列表式","randomFieldIdspan":"","showtype":"1","randomFieldId":"schemeBrowser","id":"schemeBrowser"}]}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (25, 3, 'JCL_ORG_JOB', 'work_duty', '任职职责', 'text', 2, 6, 1, 0, 1, 1, 1, 0, 1, 2, 1, 0, GETDATE(), NULL, NULL, NULL, 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (26, 3, 'JCL_ORG_JOB', 'ec_department', '所属部门', 'int', 3, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 0, GETDATE(), NULL, '4', '["browser",{"valueSpan":"部门","replaceDatas":[{"name":"部门","id":"4"}],"value":"4"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (27, 3, 'JCL_ORG_JOB', 'work_authority', '工作权限', 'text', 2, 6, 1, 0, 1, 1, 1, 0, 1, 3, 1, 0, GETDATE(), NULL, NULL, NULL, 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (28, 3, 'JCL_ORG_JOB', 'level_id', '职等', 'text', 3, 5, 1, 0, 1, NULL, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '162', '["browser",{"valueSpan":"自定义多选","replaceDatas":[{"itemorderid":"162","name":"自定义多选","id":"162","parenttitle":"集成","title":"集成-自定义多选"}],"value":"162"},{"valueSpan":"职等浏览按钮","replaceDatas":[{"showname":"LevelBrowser","name":"职等浏览按钮","id":"LevelBrowser"}],"value":"LevelBrowser"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (29, 3, 'JCL_ORG_JOB', 'ec_company', '所属分部', 'int', 3, 3, 1, 0, 1, 1, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '164', '["browser",{"valueSpan":"分部","replaceDatas":[{"name":"分部","id":"164"}],"value":"164"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (30, 3, 'JCL_ORG_JOB', 'grade_id', '职级', 'text', 3, 5, 1, 0, 1, NULL, 1, 1, 1, 3, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"itemorderid":"161","name":"自定义单选","id":"161","parenttitle":"集成","title":"集成-自定义单选"}],"value":"161"},{"valueSpan":"职级浏览按钮","replaceDatas":[{"showname":"gradeBrowser","name":"职级浏览按钮","id":"gradeBrowser"}],"value":"gradeBrowser"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (31, 3, 'JCL_ORG_JOB', 'parent_job', '上级岗位', 'int', 3, 3, 1, 0, 1, 1, 1, 1, 1, 5, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"jobBrowser","valueSpan":"岗位浏览按钮","replaceDatas":[{"showname":"jobBrowser","shownamespan":"jobBrowser","namespan":"岗位浏览按钮","name":"岗位浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","randomFieldId":"jobBrowser","id":"jobBrowser"}]}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (32, 3, 'JCL_ORG_JOB', 'is_key', '是否关键岗', 'int', 5, 3, 1, 0, 1, 1, 1, 1, 1, 6, 1, 0, GETDATE(), NULL, NULL, '["select","select",{"datas":[{"default":"","unuse":"0","id":"0","key":"0","option":"否"},{"default":"","unuse":"0","id":"1","key":"1","option":"是"}],"sort":"horizontal"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (33, 3, 'JCL_ORG_JOB', 'workplace', '工作地点', 'varchar(100)', 1, 3, 1, 0, 1, 1, 1, 0, 1, 7, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (34, 3, 'JCL_ORG_JOB', 'forbidden_tag', '禁用标记', 'int', 5, 3, 1, 0, 1, 1, 0, 0, 1, 8, 1, 0, GETDATE(), NULL, NULL, '["select","select",{"datas":[{"default":"","unuse":"0","id":"0","key":"0","option":"启用"},{"default":"","unuse":"0","id":"1","key":"1","option":"禁用"}],"sort":"horizontal"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (35, 3, 'JCL_ORG_JOB', 'show_order', '显示顺序', 'int', 1, 3, 1, 0, 1, NULL, 1, 1, 1, 9, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (36, 3, 'JCL_ORG_JOB', 'parent_comp', '所属分部', 'int', 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"compBrowser","valueSpan":"公司分部浏览按钮","replaceDatas":[{"showname":"compBrowser","shownamespan":"compBrowser","namespan":"公司分部浏览按钮","name":"公司分部浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","randomFieldId":"compBrowser","id":"compBrowser"}]}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (37, 3, 'JCL_ORG_JOB', 'parent_dept', '上级部门', 'int', 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"部门浏览按钮","replaceDatas":[{"showname":"deptBrowser","shownamespan":"deptBrowser","namespan":"部门浏览按钮","name":"部门浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","id":"deptBrowser","randomFieldId":"deptBrowser"}],"value":"deptBrowser"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (38, 3, 'JCL_ORG_JOBEXT_DT1', 'post_id', '职务分类', 'text', 3, 5, 1, 0, 1, NULL, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"itemorderid":"161","name":"自定义单选","id":"161","parenttitle":"集成","title":"集成-自定义单选"}],"value":"161"},{"valueSpan":"职务分类浏览按钮","replaceDatas":[{"showname":"postBrowser","name":"职务分类浏览按钮","id":"postBrowser"}],"value":"postBrowser"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (39, 3, 'JCL_ORG_JOBEXT_DT1', 'post_info_id', '职务', 'text', 3, 5, 1, 0, 1, NULL, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"itemorderid":"161","name":"自定义单选","id":"161","parenttitle":"集成","title":"集成-自定义单选"}],"value":"161"},{"valueSpan":"职务信息浏览按钮","replaceDatas":[{"showname":"PostInfoBrowser","name":"职务信息浏览按钮","id":"PostInfoBrowser"}],"value":"PostInfoBrowser"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (40, 4, 'JCL_ORG_HRMRESOURCE', 'work_code', '编号', 'varchar(60)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (41, 4, 'JCL_ORG_HRMRESOURCE', 'manager_id', '直接上级', 'int', 3, 7, 1, 0, 1, NULL, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["browser",{"valueSpan":"人力资源","replaceDatas":[{"itemorderid":"1","name":"人力资源","id":"1","parenttitle":"人员","title":"人员-人力资源"}],"value":"1"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (42, 4, 'JCL_ORG_HRMRESOURCE', 'mobile', '移动电话', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 1, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (43, 4, 'JCL_ORG_HRMRESOURCE', 'login_id', '登录名', 'varchar(60)', 1, 4, 1, 1, 1, NULL, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (44, 4, 'JCL_ORG_HRMRESOURCE', 'assistant_id', '助理', 'int', 3, 7, 1, 0, 1, NULL, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["browser",{"valueSpan":"人力资源","replaceDatas":[{"itemorderid":"1","name":"人力资源","id":"1","parenttitle":"人员","title":"人员-人力资源"}],"value":"1"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (45, 4, 'JCL_ORG_HRMRESOURCE', 'telephone', '办公室电话', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 2, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (46, 4, 'JCL_ORG_HRMRESOURCE', 'last_name', '姓名', 'varchar(60)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 3, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (47, 4, 'JCL_ORG_HRMRESOURCE', 'mobile_call', '其他电话', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 3, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (48, 4, 'JCL_ORG_HRMRESOURCE', 'sex', '性别', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"男"},{"default":"","unuse":"","id":"1","key":"1","option":"女"}],"sort":"horizontal"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (49, 4, 'JCL_ORG_HRMRESOURCE', 'fax', '传真', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 4, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (50, 4, 'JCL_ORG_HRMRESOURCE', 'account_type', '账号类型', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 5, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"主账号"},{"default":"","unuse":"","id":"1","key":"1","option":"次账号"}],"sort":"horizontal"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (51, 4, 'JCL_ORG_HRMRESOURCE', 'email', '电子邮件', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 5, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (52, 4, 'JCL_ORG_HRMRESOURCE', 'belong_to', '主账号', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 6, 1, 0, GETDATE(), NULL, '1', '["browser",{"valueSpan":"人力资源","replaceDatas":[{"name":"人力资源","id":"1"}],"value":"1"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (53, 4, 'JCL_ORG_HRMRESOURCE', 'workroom', '办公室', 'varchar(60)', 1, 8, 1, 0, 1, NULL, 1, 1, 1, 6, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (54, 4, 'JCL_ORG_HRMRESOURCE', 'department_id', '部门', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 7, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"部门浏览按钮","replaceDatas":[{"showname":"deptBrowser","shownamespan":"deptBrowser","namespan":"部门浏览按钮","name":"部门浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","id":"deptBrowser","randomFieldId":"deptBrowser"}],"value":"deptBrowser"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (55, 4, 'JCL_ORG_HRMRESOURCE', 'job_activity', '职务', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 8, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"职务分类浏览按钮","replaceDatas":[{"showname":"postBrowser","shownamespan":"postBrowser","namespan":"职务分类浏览按钮","name":"职务分类浏览按钮","showtypespan":"列表式","randomFieldIdspan":"","showtype":"1","id":"postBrowser","randomFieldId":"postBrowser"}],"value":"postBrowser"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (56, 4, 'JCL_ORG_HRMRESOURCE', 'job_title', '岗位', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 9, 1, 0, GETDATE(), NULL, '161', '["browser",{"value":"161","valueSpan":"自定义单选","replaceDatas":[{"id":"161","name":"自定义单选"}]},{"value":"jobBrowser","valueSpan":"岗位浏览按钮","replaceDatas":[{"showname":"jobBrowser","shownamespan":"jobBrowser","namespan":"岗位浏览按钮","name":"岗位浏览按钮","showtypespan":"树形","randomFieldIdspan":"","showtype":"2","randomFieldId":"jobBrowser","id":"jobBrowser"}]}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (57, 4, 'JCL_ORG_HRMRESOURCE', 'job_call', '职称', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 10, 1, 0, GETDATE(), NULL, '260', '["browser",{"valueSpan":"职称","replaceDatas":[{"name":"职称","id":"260"}],"value":"260"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (58, 4, 'JCL_ORG_HRMRESOURCE', 'job_level', '职级', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 11, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"职级浏览按钮","replaceDatas":[{"showname":"gradeBrowser","name":"职级浏览按钮","id":"gradeBrowser"}],"value":"gradeBrowser"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (59, 4, 'JCL_ORG_HRMRESOURCE', 'job_group_id', '职务类别', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 12, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"职务分类浏览按钮","replaceDatas":[{"showname":"postBrowser","name":"职务分类浏览按钮","id":"postBrowser"}],"value":"postBrowser"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (60, 4, 'JCL_ORG_HRMRESOURCE', 'job_activity_desc', '职责描述', 'varchar(200)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 13, 1, 0, GETDATE(), NULL, '1', '["input","text","200"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (61, 4, 'JCL_ORG_HRMRESOURCE', 'status', '状态', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 14, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"试用"},{"default":"","unuse":"","id":"1","key":"1","option":"正式"},{"default":"","unuse":"","id":"2","key":"2","option":"临时"},{"default":"","unuse":"","id":"3","key":"3","option":"试用延期"},{"default":"","unuse":"","id":"4","key":"4","option":"解聘"},{"default":"","unuse":"","id":"5","key":"5","option":"离职"},{"default":"","unuse":"","id":"6","key":"6","option":"退休"},{"default":"","unuse":"","id":"7","key":"7","option":"无效"},{"default":"","unuse":"","id":"8","key":"8","option":"在职"}],"sort":"horizontal"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (62, 4, 'JCL_ORG_HRMRESOURCE', 'system_language', '系统语言', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 15, 1, 0, GETDATE(), NULL, '259', '["browser",{"valueSpan":"语言","replaceDatas":[{"itemorderid":"259","name":"语言","id":"259","parenttitle":"系统","title":"系统-语言"}],"value":"259"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (63, 4, 'JCL_ORG_HRMRESOURCE', 'resource_image_id', '照片', 'varchar(1000)', 6, 4, 1, 0, 1, NULL, 1, 1, 1, 16, 1, 0, GETDATE(), NULL, '1', '["upload","file"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (64, 4, 'JCL_ORG_HRMRESOURCE', 'messager_url', '头像', 'varchar(1000)', 6, 4, 1, 0, 1, NULL, 1, 1, 1, 17, 1, 0, GETDATE(), NULL, '1', '["upload","file"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (65, 4, 'JCL_ORG_HRMRESOURCE', 'location_id', '办公地点', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 18, 1, 0, GETDATE(), NULL, '262', '["browser",{"valueSpan":"办公地点","replaceDatas":[{"itemorderid":"262","name":"办公地点","id":"262","parenttitle":"组织","title":"组织-办公地点"}],"value":"262"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (66, 4, 'JCL_ORG_HRMRESOURCE', 'company_id', '分部', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 19, 1, 0, GETDATE(), NULL, '161', '["browser",{"valueSpan":"自定义单选","replaceDatas":[{"name":"自定义单选","id":"161"}],"value":"161"},{"valueSpan":"公司分部浏览按钮","replaceDatas":[{"showname":"compBrowser","name":"公司分部浏览按钮","id":"compBrowser"}],"value":"compBrowser"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (67, 4, 'JCL_ORG_HRMRESOURCE', 'pass_word', '密码', 'varchar(100)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 20, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (68, 4, 'JCL_ORG_HRMRESOURCE', 'sec_level', '安全级别', 'int', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 21, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (69, 4, 'JCL_ORG_HRMRESOURCE', 'birthday', '出生日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 22, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (70, 4, 'JCL_ORG_HRMRESOURCE', 'folk', '民族', 'varchar(30)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 23, 1, 0, GETDATE(), NULL, '1', '["input","text","30"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (71, 4, 'JCL_ORG_HRMRESOURCE', 'native_place', '籍贯', 'varchar(100)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 24, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (72, 4, 'JCL_ORG_HRMRESOURCE', 'reg_resident_place', '户口', 'varchar(200)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 25, 1, 0, GETDATE(), NULL, '1', '["input","text","200"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (73, 4, 'JCL_ORG_HRMRESOURCE', 'certificate_num', '身份证号码', 'varchar(60)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 26, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (74, 4, 'JCL_ORG_HRMRESOURCE', 'marital_status', '婚姻状况', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 27, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"未婚"},{"default":"","unuse":"","id":"1","key":"1","option":"已婚"},{"default":"","unuse":"","id":"2","key":"2","option":"离异"}],"sort":"horizontal"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (75, 4, 'JCL_ORG_HRMRESOURCE', 'policy', '政治面貌', 'varchar(30)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 28, 1, 0, GETDATE(), NULL, '1', '["input","text","30"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (76, 4, 'JCL_ORG_HRMRESOURCE', 'be_member_date', '入团日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 29, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (77, 4, 'JCL_ORG_HRMRESOURCE', 'be_party_date', '入党日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 30, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (78, 4, 'JCL_ORG_HRMRESOURCE', 'islabouunion', '工会会员', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 31, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"是"},{"default":"","unuse":"","id":"1","key":"1","option":"否"}],"sort":"horizontal"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (79, 4, 'JCL_ORG_HRMRESOURCE', 'education_level', '学历', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 32, 1, 0, GETDATE(), NULL, '30', '["browser",{"valueSpan":"学历","replaceDatas":[{"name":"学历","id":"30"}],"value":"30"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (80, 4, 'JCL_ORG_HRMRESOURCE', 'degree', '学位', 'varchar(30)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 33, 1, 0, GETDATE(), NULL, '1', '["input","text","30"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (81, 4, 'JCL_ORG_HRMRESOURCE', 'health_info', '健康状况', 'int', 5, 4, 1, 0, 1, NULL, 1, 1, 1, 34, 1, 0, GETDATE(), NULL, '1', '["select","select",{"datas":[{"default":"","unuse":"","id":"0","key":"0","option":"优秀"},{"default":"","unuse":"","id":"1","key":"1","option":"良好"},{"default":"","unuse":"","id":"2","key":"2","option":"一般"},{"default":"","unuse":"","id":"3","key":"3","option":"较差"}],"sort":"horizontal"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (82, 4, 'JCL_ORG_HRMRESOURCE', 'height', '身高', 'int', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 35, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (83, 4, 'JCL_ORG_HRMRESOURCE', 'weight', '体重', 'int', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 36, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (84, 4, 'JCL_ORG_HRMRESOURCE', 'use_kind', '用工性质', 'int', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 37, 1, 0, GETDATE(), NULL, '31', '["browser",{"valueSpan":"用工性质","replaceDatas":[{"name":"用工性质","id":"31"}],"value":"31"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (85, 4, 'JCL_ORG_HRMRESOURCE', 'start_date', '合同开始日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 38, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (86, 4, 'JCL_ORG_HRMRESOURCE', 'end_date', '合同结束日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 39, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (87, 4, 'JCL_ORG_HRMRESOURCE', 'probation_end_date', '试用期结束日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 40, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (88, 4, 'JCL_ORG_HRMRESOURCE', 'resident_place', '现居住地', 'varchar(200)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 41, 1, 0, GETDATE(), NULL, '1', '["input","text","200"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (89, 4, 'JCL_ORG_HRMRESOURCE', 'home_address', '家庭联系方式', 'varchar(100)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 42, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (90, 4, 'JCL_ORG_HRMRESOURCE', 'temp_resident_number', '暂住证号码', 'varchar(60)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 43, 1, 0, GETDATE(), NULL, '1', '["input","text","60"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (91, 4, 'JCL_ORG_HRMRESOURCE', 'company_start_date', '入职日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 44, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (92, 4, 'JCL_ORG_HRMRESOURCE', 'work_start_date', '参加工作日期', 'char(10)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 45, 1, 0, GETDATE(), NULL, '2', '["browser",{"valueSpan":"日期","replaceDatas":[{"name":"日期","id":"2"}],"value":"2"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (93, 4, 'JCL_ORG_HRMRESOURCE', 'accum_fund_account', '公积金帐户', 'varchar(30)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 46, 1, 0, GETDATE(), NULL, '1', '["input","text","30"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (94, 4, 'JCL_ORG_HRMRESOURCE', 'account_name', '工资账号户名', 'varchar(200)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 48, 1, 0, GETDATE(), NULL, '1', '["input","text","200"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (95, 4, 'JCL_ORG_HRMRESOURCE', 'bank_id', '工资银行', 'varchar(400)', 3, 4, 1, 0, 1, NULL, 1, 1, 1, 49, 1, 0, GETDATE(), NULL, '284', '["browser",{"valueSpan":"工资银行","replaceDatas":[{"itemorderid":"0","name":"工资银行","id":"284","parenttitle":"其他","title":"其他-工资银行"}],"value":"284"}]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (96, 4, 'JCL_ORG_HRMRESOURCE', 'account_id', '工资账号', 'varchar(100)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 50, 1, 0, GETDATE(), NULL, '1', '["input","text","100"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (97, 4, 'JCL_ORG_HRMRESOURCE', 'show_order', '显示顺序', 'int', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 51, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (98, 4, 'JCL_ORG_HRMRESOURCE', 'classification', '人员密级', 'int', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 52, 1, 0, GETDATE(), NULL, '2', '["input","int"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (99, 4, 'JCL_ORG_HRMRESOURCE', 'work_year', '工龄', 'decimal(15,2)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 53, 1, 0, GETDATE(), NULL, '3', '["input","float","2"]', 0) + insert INTO jcl_field_extendinfo (id, extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default) VALUES (100, 4, 'JCL_ORG_HRMRESOURCE', 'company_work_year', '司龄', 'decimal(15,2)', 1, 4, 1, 0, 1, NULL, 1, 1, 1, 54, 1, 0, GETDATE(), NULL, '3', '["input","float","2"]', 0) + set IDENTITY_INSERT JCL_FIELD_EXTENDINFO OFF GO + + CREATE TABLE [dbo].[jcl_info] ( [id] int NOT NULL, [fname] varchar(100) COLLATE Chinese_PRC_CI_AS NULL, @@ -1138,6 +1076,6 @@ GO ALTER TABLE [dbo].[jcl_info] ADD CONSTRAINT [PK_jcl_info] PRIMARY KEY CLUSTERED ([id]) -WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) -ON [PRIMARY] +WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + ON [PRIMARY] GO \ No newline at end of file diff --git a/src/com/api/organization/web/NonStandardOptController.java b/src/com/api/organization/web/NonStandardOptController.java new file mode 100644 index 00000000..56b8fbc6 --- /dev/null +++ b/src/com/api/organization/web/NonStandardOptController.java @@ -0,0 +1,12 @@ +package com.api.organization.web; + +import javax.ws.rs.Path; + +/** + * @author:dxfeng + * @createTime: 2022/09/01 + * @version: 1.0 + */ +@Path("/bs/hrmorganization/nonStandard") +public class NonStandardOptController extends com.engine.organization.web.NonStandardOptController { +} diff --git a/src/com/engine/organization/entity/TreeData.java b/src/com/engine/organization/entity/TreeData.java index 45655ac6..d50a16c7 100644 --- a/src/com/engine/organization/entity/TreeData.java +++ b/src/com/engine/organization/entity/TreeData.java @@ -20,5 +20,6 @@ import java.util.ArrayList; public class TreeData { private String title; private String key; + private Integer status; private ArrayList children; } diff --git a/src/com/engine/organization/entity/company/bo/CompBO.java b/src/com/engine/organization/entity/company/bo/CompBO.java index efbbe194..f0c62966 100644 --- a/src/com/engine/organization/entity/company/bo/CompBO.java +++ b/src/com/engine/organization/entity/company/bo/CompBO.java @@ -105,7 +105,7 @@ public class CompBO { return comps.stream().map(item -> { SearchTree tree = new SearchTree(); tree.setCanClick(true); - tree.setCanceled(false); + tree.setCanceled(item.getForbiddenTag() != 0); tree.setIcon("icon-coms-LargeArea"); tree.setId(item.getId().toString()); tree.setIsParent(false); diff --git a/src/com/engine/organization/entity/department/bo/DepartmentBO.java b/src/com/engine/organization/entity/department/bo/DepartmentBO.java index 1e46142b..8c12d663 100644 --- a/src/com/engine/organization/entity/department/bo/DepartmentBO.java +++ b/src/com/engine/organization/entity/department/bo/DepartmentBO.java @@ -106,6 +106,7 @@ public class DepartmentBO { SingleDeptTreeVO .builder() .id(e.getId()) + .deptNo(e.getDeptNo()) .deptName(e.getDeptName()) .parentComp(e.getParentComp()) .parentDept(e.getParentDept()) @@ -127,7 +128,7 @@ public class DepartmentBO { return departmentPOS.stream().map(item -> { SearchTree tree = new SearchTree(); tree.setCanClick(true); - tree.setCanceled(false); + tree.setCanceled(item.getForbiddenTag() != 0); tree.setIcon(isLeaf ? "icon-coms-Branch" : "icon-coms-LargeArea"); tree.setId(item.getId().toString()); tree.setIsParent(false); diff --git a/src/com/engine/organization/entity/department/vo/SingleDeptTreeVO.java b/src/com/engine/organization/entity/department/vo/SingleDeptTreeVO.java index 319d1f26..5ba4493d 100644 --- a/src/com/engine/organization/entity/department/vo/SingleDeptTreeVO.java +++ b/src/com/engine/organization/entity/department/vo/SingleDeptTreeVO.java @@ -26,6 +26,9 @@ public class SingleDeptTreeVO { private Long id; + @TableTitle(title = "编号", dataIndex = "deptNo", key = "deptNo") + private String deptNo; + @TableTitle(title = "部门名称", dataIndex = "deptName", key = "deptName") private String deptName; diff --git a/src/com/engine/organization/entity/employee/vo/EmployeeTableVO.java b/src/com/engine/organization/entity/employee/vo/EmployeeTableVO.java index 1743372a..7e3c7e6c 100644 --- a/src/com/engine/organization/entity/employee/vo/EmployeeTableVO.java +++ b/src/com/engine/organization/entity/employee/vo/EmployeeTableVO.java @@ -22,6 +22,8 @@ import lombok.NoArgsConstructor; @OrganizationTable(pageId = "80e7830c-18e8-4e14-8241-18821195ef31", fields = "t.id," + "t.lastname," + + "t.mobile," + + "t.," + "t.sex", fromSql = "FROM HrmResource t ", orderby = "id desc", @@ -33,11 +35,17 @@ public class EmployeeTableVO { @OrganizationTableColumn(column = "id", display = false) private Long id; - @OrganizationTableColumn(text = "姓名", width = "50%", column = "lastname") + @OrganizationTableColumn(text = "姓名", width = "25%", column = "lastname") private String lastname; - @OrganizationTableColumn(text = "性别", width = "50%", column = "sex",transmethod = "com.engine.organization.transmethod.JobTransMethod.getSexName") + @OrganizationTableColumn(text = "性别", width = "25%", column = "sex",transmethod = "com.engine.organization.transmethod.JobTransMethod.getSexName") private String sex; + @OrganizationTableColumn(text = "手机", width = "25%", column = "mobile") + private String mobile; + + @OrganizationTableColumn(text = "入职日期", width = "25%", column = "companystartdate") + private String companystartdate; + } diff --git a/src/com/engine/organization/entity/job/vo/SingleJobTreeVO.java b/src/com/engine/organization/entity/job/vo/SingleJobTreeVO.java index 56e2b718..00ac4781 100644 --- a/src/com/engine/organization/entity/job/vo/SingleJobTreeVO.java +++ b/src/com/engine/organization/entity/job/vo/SingleJobTreeVO.java @@ -29,7 +29,7 @@ public class SingleJobTreeVO { @TableTitle(title = "编号", dataIndex = "jobNo", key = "jobNo") private String jobNo; - @TableTitle(title = "名称", dataIndex = "jobName", key = "jobName") + @TableTitle(title = "岗位名称", dataIndex = "jobName", key = "jobName") private String jobName; @TableTitle(title = "上级岗位", dataIndex = "parentJobName", key = "parentJobName") diff --git a/src/com/engine/organization/entity/logview/bo/FieldBaseEquator.java b/src/com/engine/organization/entity/logview/bo/FieldBaseEquator.java index 5248c974..589b63d2 100644 --- a/src/com/engine/organization/entity/logview/bo/FieldBaseEquator.java +++ b/src/com/engine/organization/entity/logview/bo/FieldBaseEquator.java @@ -95,6 +95,57 @@ public class FieldBaseEquator extends AbstractEquator { return diffFields; } + public List getDiffFieldList(Object first, Object second) { + if (first == second) { + return Collections.emptyList(); + } + // 先尝试判断是否为简单数据类型 + if (isSimpleField(first, second)) { + return compareSimpleField(first, second); + } + Set allFieldNames; + // 获取所有字段 + Map firstFields = getAllFields(first); + Map secondFields = getAllFields(second); + if (first == null) { + allFieldNames = secondFields.keySet(); + } else if (second == null) { + allFieldNames = firstFields.keySet(); + } else { + allFieldNames = getAllFieldNames(firstFields.keySet(), secondFields.keySet()); + } + List diffFields = new LinkedList<>(); + for (String fieldName : allFieldNames) { + try { + Field firstField = firstFields.getOrDefault(fieldName, null); + Field secondField = secondFields.getOrDefault(fieldName, null); + Object firstVal = null; + Class firstType = null; + Class secondType = null; + Object secondVal = null; + if (firstField != null) { + firstField.setAccessible(true); + firstVal = firstField.get(first); + firstType = firstField.getType(); + } + if (secondField != null) { + secondField.setAccessible(true); + secondVal = secondField.get(second); + secondType = secondField.getType(); + } + FieldInfo fieldInfo = new FieldInfo(fieldName, firstType, secondType); + fieldInfo.setFirstVal(firstVal); + fieldInfo.setSecondVal(secondVal); + if (!isFieldEquals(fieldInfo) && isNoneEmpty(firstVal, secondVal)) { + diffFields.add(fieldName); + } + } catch (IllegalAccessException e) { + throw new IllegalStateException("获取属性进行比对发生异常: " + fieldName, e); + } + } + return diffFields; + } + private Map getAllFields(Object obj) { if (obj == null) { return Collections.emptyMap(); diff --git a/src/com/engine/organization/entity/map/JclOrgMap.java b/src/com/engine/organization/entity/map/JclOrgMap.java new file mode 100644 index 00000000..e584c393 --- /dev/null +++ b/src/com/engine/organization/entity/map/JclOrgMap.java @@ -0,0 +1,37 @@ +package com.engine.organization.entity.map; + +import lombok.Data; + +import java.sql.Date; + +/** + * @author:dxfeng + * @createTime: 2022/09/01 + * @version: 1.0 + */ +@Data +public class JclOrgMap { + Integer id; + Integer fType; + Integer fObjId; + Integer fEcId; + String uuid; + Integer fClass; + String fClassName; + String fNumber; + String fName; + Integer fLeader; + String fLeaderImg; + String fLeaderName; + Integer fLeaderJobId; + String fLeaderJob; + String fLeaderLv; + String fLeaderSt; + Integer fParentId; + Integer fObjParentId; + Integer fPlan; + Integer fOnJob; + Integer fIsVitual; + Date fDateBegin; + Date fDateEnd; +} diff --git a/src/com/engine/organization/entity/postion/vo/PostInfoTableVO.java b/src/com/engine/organization/entity/postion/vo/PostInfoTableVO.java index 7db50123..b5213ea9 100644 --- a/src/com/engine/organization/entity/postion/vo/PostInfoTableVO.java +++ b/src/com/engine/organization/entity/postion/vo/PostInfoTableVO.java @@ -78,12 +78,12 @@ public class PostInfoTableVO { /** * 说明 */ - @OrganizationTableColumn(text = "说明", width = "20%", column = "description") + @OrganizationTableColumn(text = "说明", width = "30%", column = "description") private String description; /** * 禁用标记 */ - @OrganizationTableColumn(text = "是否启用", width = "20%", column = "forbidden_tag") + @OrganizationTableColumn(text = "是否启用", width = "10%", column = "forbidden_tag") private Integer forbiddenTag; } diff --git a/src/com/engine/organization/entity/scheme/vo/GradeTableVO.java b/src/com/engine/organization/entity/scheme/vo/GradeTableVO.java index 2934666f..127687e8 100644 --- a/src/com/engine/organization/entity/scheme/vo/GradeTableVO.java +++ b/src/com/engine/organization/entity/scheme/vo/GradeTableVO.java @@ -60,11 +60,7 @@ public class GradeTableVO { */ @OrganizationTableColumn(text = "名称", width = "20%", column = "grade_name") private String gradeName; - /** - * 描述说明 - */ - @OrganizationTableColumn(text = "描述说明", width = "20%", column = "description") - private String description; + /** * 等级方案 */ @@ -80,9 +76,14 @@ public class GradeTableVO { @OrganizationTableColumn(text = "职等", width = "20%", column = "level_id", transmethod = "com.engine.organization.transmethod.LevelTransMethod.getLevelId") private String levelId; + /** + * 描述说明 + */ + @OrganizationTableColumn(text = "描述说明", width = "30%", column = "description") + private String description; /** * 禁用标记 */ - @OrganizationTableColumn(text = "是否启用", width = "20%", column = "forbidden_tag") + @OrganizationTableColumn(text = "是否启用", width = "10%", column = "forbidden_tag") private int forbiddenTag; } diff --git a/src/com/engine/organization/entity/scheme/vo/LevelTableVO.java b/src/com/engine/organization/entity/scheme/vo/LevelTableVO.java index 46f8b8d2..548af929 100644 --- a/src/com/engine/organization/entity/scheme/vo/LevelTableVO.java +++ b/src/com/engine/organization/entity/scheme/vo/LevelTableVO.java @@ -59,21 +59,22 @@ public class LevelTableVO { @OrganizationTableColumn(text = "名称", width = "20%", column = "level_name") private String levelName; - /** - * 描述说明 - */ - @OrganizationTableColumn(text = "描述说明", width = "20%", column = "description") - private String description; - /** * 等级方案 */ @OrganizationTableColumn(text = "等级方案", width = "20%", column = "scheme_name") private String schemeName; + /** + * 描述说明 + */ + @OrganizationTableColumn(text = "描述说明", width = "30%", column = "description") + private String description; + + /** * 禁用标记 */ - @OrganizationTableColumn(text = "是否启用", width = "20%", column = "forbidden_tag") + @OrganizationTableColumn(text = "是否启用", width = "10%", column = "forbidden_tag") private Integer forbiddenTag; } diff --git a/src/com/engine/organization/entity/scheme/vo/SchemeTableVO.java b/src/com/engine/organization/entity/scheme/vo/SchemeTableVO.java index 1062b88b..8313afe6 100644 --- a/src/com/engine/organization/entity/scheme/vo/SchemeTableVO.java +++ b/src/com/engine/organization/entity/scheme/vo/SchemeTableVO.java @@ -61,12 +61,12 @@ public class SchemeTableVO { /** * 方案描述 */ - @OrganizationTableColumn(text = "方案说明", width = "25%", column = "scheme_description") + @OrganizationTableColumn(text = "方案说明", width = "40%", column = "scheme_description") private String schemeDescription; /** * 禁用标识 */ - @OrganizationTableColumn(text = "是否启用", width = "25%", column = "forbidden_tag") + @OrganizationTableColumn(text = "是否启用", width = "10%", column = "forbidden_tag") private Integer forbiddenTag; } diff --git a/src/com/engine/organization/entity/sequence/vo/SequenceTableVO.java b/src/com/engine/organization/entity/sequence/vo/SequenceTableVO.java index 93c1722c..47f8ec35 100644 --- a/src/com/engine/organization/entity/sequence/vo/SequenceTableVO.java +++ b/src/com/engine/organization/entity/sequence/vo/SequenceTableVO.java @@ -65,11 +65,6 @@ public class SequenceTableVO { @OrganizationTableColumn(text = "名称", width = "20%", column = "sequence_name") private String sequenceName; - /** - * 描述说明 - */ - @OrganizationTableColumn(text = "描述说明", width = "20%", column = "description") - private String description; /** * 等级方案 @@ -77,9 +72,15 @@ public class SequenceTableVO { @OrganizationTableColumn(text = "等级方案", width = "20%", column = "scheme_name") private String schemeName; + /** + * 描述说明 + */ + @OrganizationTableColumn(text = "描述说明", width = "30%", column = "description") + private String description; + /** * 禁用标记 */ - @OrganizationTableColumn(text = "是否启用", width = "20%", column = "forbidden_tag") + @OrganizationTableColumn(text = "是否启用", width = "10%", column = "forbidden_tag") private Integer forbiddenTag; } diff --git a/src/com/engine/organization/entity/staff/vo/StaffPlanTableVO.java b/src/com/engine/organization/entity/staff/vo/StaffPlanTableVO.java index e2da7e3f..a92383e3 100644 --- a/src/com/engine/organization/entity/staff/vo/StaffPlanTableVO.java +++ b/src/com/engine/organization/entity/staff/vo/StaffPlanTableVO.java @@ -25,8 +25,7 @@ import lombok.NoArgsConstructor; primarykey = "id", operates = { @OrganizationTableOperate(text = "编辑"), - @OrganizationTableOperate(index = "1", text = "删除"), - @OrganizationTableOperate(index = "2", text = "发起编制流程") + @OrganizationTableOperate(index = "1", text = "删除") }, tableType = WeaTableType.CHECKBOX, operatePopedom = @OperatePopedom(transmethod = "com.engine.organization.util.ConfigTrans.formatStaffOperates", otherpara = "column:is_used"), checkboxPopedom = @CheckboxPopedom(showmethod = "com.engine.organization.util.ConfigTrans.getCheckBoxPopedom", popedompara = "column:is_used") diff --git a/src/com/engine/organization/mapper/department/DepartmentMapper.java b/src/com/engine/organization/mapper/department/DepartmentMapper.java index 29013859..35c5c56d 100644 --- a/src/com/engine/organization/mapper/department/DepartmentMapper.java +++ b/src/com/engine/organization/mapper/department/DepartmentMapper.java @@ -60,7 +60,7 @@ public interface DepartmentMapper { * @param id * @return */ - DepartmentPO getDeptById(@Param("id") long id); + DepartmentPO getDeptById(@Param("id") Long id); /** * 根据UUID查询数据 diff --git a/src/com/engine/organization/mapper/hrmresource/ResourceBasicInfoMapper.xml b/src/com/engine/organization/mapper/hrmresource/ResourceBasicInfoMapper.xml index b89e4277..75399691 100644 --- a/src/com/engine/organization/mapper/hrmresource/ResourceBasicInfoMapper.xml +++ b/src/com/engine/organization/mapper/hrmresource/ResourceBasicInfoMapper.xml @@ -29,8 +29,8 @@ diff --git a/src/com/engine/organization/mapper/scheme/SchemeMapper.xml b/src/com/engine/organization/mapper/scheme/SchemeMapper.xml index 94cc2695..38a28827 100644 --- a/src/com/engine/organization/mapper/scheme/SchemeMapper.xml +++ b/src/com/engine/organization/mapper/scheme/SchemeMapper.xml @@ -16,6 +16,7 @@ + @@ -74,7 +75,7 @@ where delete_type = 0 diff --git a/src/com/engine/organization/mapper/trigger/CompTriggerMapper.java b/src/com/engine/organization/mapper/trigger/CompTriggerMapper.java new file mode 100644 index 00000000..7cebc741 --- /dev/null +++ b/src/com/engine/organization/mapper/trigger/CompTriggerMapper.java @@ -0,0 +1,32 @@ +package com.engine.organization.mapper.trigger; + + +import com.alibaba.fastjson.JSONObject; +import org.apache.ibatis.annotations.Param; +import weaver.hrm.passwordprotection.domain.HrmResource; + +import java.sql.Date; + + +/** + * @Author dxfeng + * @Date 2022/8/30 + * @Version V1.0 + **/ +public interface CompTriggerMapper { + Integer getEcCompanyIdByUuid(@Param("uuid") String uuid); + + HrmResource getHrmResourceById(@Param("id") Integer id); + + String getJobTitleMarkById(@Param("id") Integer id); + + JSONObject getCusFieldDataById(@Param("id") Integer id); + + Integer sumStaffNum(@Param("fdatebegin") Date fdatebegin, @Param("compId") Integer compId); + + Integer countHrmResource(@Param("subcompanyid1") Integer subcompanyid1); + + int deleteMap(@Param("ftype") Integer ftype, @Param("fobjid") Integer fobjid, @Param("fdatebegin") Date fdatebegin); + + int updateMap(@Param("ftype") Integer ftype, @Param("fobjid") Integer fobjid, @Param("fdatebegin") Date fdatebegin, @Param("fdate") Date fdate); +} diff --git a/src/com/engine/organization/mapper/trigger/CompTriggerMapper.xml b/src/com/engine/organization/mapper/trigger/CompTriggerMapper.xml new file mode 100644 index 00000000..29ef9d02 --- /dev/null +++ b/src/com/engine/organization/mapper/trigger/CompTriggerMapper.xml @@ -0,0 +1,56 @@ + + + + + update jcl_org_map + + fdateend=#{fdate}, + + where ftype=#{ftype} and fobjid=#{fobjid} and fdateend > #{fdatebegin} + + + delete + from jcl_org_map + where ftype = #{ftype} + and fobjid = #{fobjid} + and fdatebegin = #{fdatebegin} + + + + + + + + + \ No newline at end of file diff --git a/src/com/engine/organization/mapper/trigger/DepartmentTriggerMapper.java b/src/com/engine/organization/mapper/trigger/DepartmentTriggerMapper.java new file mode 100644 index 00000000..482e1da6 --- /dev/null +++ b/src/com/engine/organization/mapper/trigger/DepartmentTriggerMapper.java @@ -0,0 +1,20 @@ +package com.engine.organization.mapper.trigger; + + +import org.apache.ibatis.annotations.Param; + +import java.sql.Date; + +/** + * @Author dxfeng + * @Date 2022/8/30 + * @Version V1.0 + **/ +public interface DepartmentTriggerMapper { + Integer getEcDepartmentIdByUuid(@Param("uuid") String uuid); + + Integer sumStaffNum(@Param("fdatebegin") Date fdatebegin, @Param("departmentId") Integer departmentId); + + + Integer countHrmResource(@Param("departmentid") Integer departmentid); +} diff --git a/src/com/engine/organization/mapper/trigger/DepartmentTriggerMapper.xml b/src/com/engine/organization/mapper/trigger/DepartmentTriggerMapper.xml new file mode 100644 index 00000000..6e74a7b6 --- /dev/null +++ b/src/com/engine/organization/mapper/trigger/DepartmentTriggerMapper.xml @@ -0,0 +1,24 @@ + + + + + + + \ No newline at end of file diff --git a/src/com/engine/organization/mapper/trigger/GroupTriggerMapper.java b/src/com/engine/organization/mapper/trigger/GroupTriggerMapper.java new file mode 100644 index 00000000..1ddde191 --- /dev/null +++ b/src/com/engine/organization/mapper/trigger/GroupTriggerMapper.java @@ -0,0 +1,24 @@ +package com.engine.organization.mapper.trigger; + + +import org.apache.ibatis.annotations.Param; + +import java.sql.Date; + +/** + * @Author dxfeng + * @Date 2022/8/30 + * @Version V1.0 + **/ +public interface GroupTriggerMapper { + + int getInfoValue(@Param("id") Integer id); + + Integer sumStaffNum(@Param("fdatebegin") Date fdatebegin); + + Integer countHrmResource(); + + int deleteMap(@Param("fobjid") Integer fobjid, @Param("fdatebegin") Date fdatebegin); + + int updateMap(@Param("fobjid") Integer fobjid, @Param("fdatebegin") Date fdatebegin, @Param("fdate") Date fdate); +} diff --git a/src/com/engine/organization/mapper/trigger/GroupTriggerMapper.xml b/src/com/engine/organization/mapper/trigger/GroupTriggerMapper.xml new file mode 100644 index 00000000..d204f765 --- /dev/null +++ b/src/com/engine/organization/mapper/trigger/GroupTriggerMapper.xml @@ -0,0 +1,35 @@ + + + + + update jcl_org_map + set fdateend=dateadd(day,-1, #{fdate}) + where fobjid = #{fobjid} + and fdateend > #{fdatebegin} + + + delete + from jcl_org_map + where fobjid = 0 + and fdatebegin = #{fdatebegin} + + + + + + \ No newline at end of file diff --git a/src/com/engine/organization/mapper/trigger/HrmResourceTriggerMapper.java b/src/com/engine/organization/mapper/trigger/HrmResourceTriggerMapper.java new file mode 100644 index 00000000..0125a2cd --- /dev/null +++ b/src/com/engine/organization/mapper/trigger/HrmResourceTriggerMapper.java @@ -0,0 +1,17 @@ +package com.engine.organization.mapper.trigger; + +import com.alibaba.fastjson.JSONObject; +import org.apache.ibatis.annotations.Param; +import weaver.hrm.passwordprotection.domain.HrmResource; + +/** + * @author:dxfeng + * @createTime: 2022/09/01 + * @version: 1.0 + */ +public interface HrmResourceTriggerMapper { + HrmResource getHrmResource(@Param("id") Long id); + + JSONObject getCusFieldDataById(@Param("fObjId") Integer fObjId); + +} diff --git a/src/com/engine/organization/mapper/trigger/HrmResourceTriggerMapper.xml b/src/com/engine/organization/mapper/trigger/HrmResourceTriggerMapper.xml new file mode 100644 index 00000000..37649663 --- /dev/null +++ b/src/com/engine/organization/mapper/trigger/HrmResourceTriggerMapper.xml @@ -0,0 +1,17 @@ + + + + + + + \ No newline at end of file diff --git a/src/com/engine/organization/mapper/trigger/JobTriggerMapper.java b/src/com/engine/organization/mapper/trigger/JobTriggerMapper.java new file mode 100644 index 00000000..f7a47f51 --- /dev/null +++ b/src/com/engine/organization/mapper/trigger/JobTriggerMapper.java @@ -0,0 +1,17 @@ +package com.engine.organization.mapper.trigger; + + +import org.apache.ibatis.annotations.Param; + +import java.sql.Date; + +/** + * @Author dxfeng + * @Date 2022/8/30 + * @Version V1.0 + **/ +public interface JobTriggerMapper { + Integer sumStaffNum(@Param("fdatebegin") Date fdatebegin, @Param("jobId") Integer jobId); + + Integer countHrmResource(@Param("parentdept") Integer parentdept, @Param("fname") String fname); +} diff --git a/src/com/engine/organization/mapper/trigger/JobTriggerMapper.xml b/src/com/engine/organization/mapper/trigger/JobTriggerMapper.xml new file mode 100644 index 00000000..2a3908d4 --- /dev/null +++ b/src/com/engine/organization/mapper/trigger/JobTriggerMapper.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/src/com/engine/organization/service/NonStandardOptService.java b/src/com/engine/organization/service/NonStandardOptService.java new file mode 100644 index 00000000..1cabae50 --- /dev/null +++ b/src/com/engine/organization/service/NonStandardOptService.java @@ -0,0 +1,16 @@ +package com.engine.organization.service; + +/** + * @author:dxfeng + * @createTime: 2022/09/01 + * @version: 1.0 + */ +public interface NonStandardOptService { + /** + * 非标开关启用、禁用后操作 + * + * @param method + * @param ids + */ + void NonStandardOpt(String method, String ids); +} diff --git a/src/com/engine/organization/service/impl/DepartmentServiceImpl.java b/src/com/engine/organization/service/impl/DepartmentServiceImpl.java index e0806d2f..068ec535 100644 --- a/src/com/engine/organization/service/impl/DepartmentServiceImpl.java +++ b/src/com/engine/organization/service/impl/DepartmentServiceImpl.java @@ -37,6 +37,8 @@ import com.engine.organization.mapper.hrmresource.SystemDataMapper; import com.engine.organization.mapper.job.JobMapper; import com.engine.organization.service.DepartmentService; import com.engine.organization.service.ExtService; +import com.engine.organization.thread.DepartmentTriggerRunnable; +import com.engine.organization.thread.JobTriggerRunnable; import com.engine.organization.thread.OrganizationSyncEc; import com.engine.organization.util.*; import com.engine.organization.util.coderule.CodeRuleUtil; @@ -44,6 +46,7 @@ import com.engine.organization.util.db.MapperProxyFactory; import com.engine.organization.util.page.Column; import com.engine.organization.util.page.PageInfo; import com.engine.organization.util.page.PageUtil; +import com.engine.organization.util.relation.EcHrmRelationUtil; import com.engine.organization.util.tree.SearchTreeUtil; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang.StringUtils; @@ -96,6 +99,10 @@ public class DepartmentServiceImpl extends Service implements DepartmentService return MapperProxyFactory.getProxy(DepartmentMapper.class); } + private static JobMapper getJobMapper() { + return MapperProxyFactory.getProxy(JobMapper.class); + } + private CompMapper getCompMapper() { return MapperProxyFactory.getProxy(CompMapper.class); } @@ -247,6 +254,11 @@ public class DepartmentServiceImpl extends Service implements DepartmentService deptNo = repeatDetermine(deptNo); params.put("dept_no", deptNo); } + // 根据部门,自动获取正确分部 + DepartmentPO parentDept = getDepartmentMapper().getDeptById(searchParam.getParentDept()); + if (null != parentDept) { + params.put("parent_comp", parentDept.getParentComp()); + } new OrganizationSyncEc(user, LogModuleNameEnum.DEPARTMENT, OperateTypeEnum.UPDATE, params).sync(); // 更新主表数据 getExtService(user).updateExtForm(user, EXTEND_TYPE, JCL_ORG_DEPT, params, "", searchParam.getId()); @@ -439,6 +451,8 @@ public class DepartmentServiceImpl extends Service implements DepartmentService RecordInfo recordInfo = getSystemDataMapper().getHrmObjectByID(HRM_DEPARTMENT, ecDepartmentID); deptById.setUuid(recordInfo.getUuid()); insertCount += getDepartmentMapper().insertIgnoreNull(deptById); + // 更新组织架构图 + new Thread(new DepartmentTriggerRunnable(deptById.getId())).start(); // 新增岗位信息 if ("1".equals(copyParam.getCopyJob())) { @@ -503,9 +517,13 @@ public class DepartmentServiceImpl extends Service implements DepartmentService cancelEcDepartment(mergeDepartment.getId()); updateCount = getDepartmentMapper().updateBaseDept(mergeDepartment); + // 更新组织架构图 + new Thread(new DepartmentTriggerRunnable(mergeDepartment.getId())).start(); + // 刷新岗位分部 + refreshJobComp(mergeDepartment.getId(), mergeDepartment.getParentComp()); // 合并后部门及子部门禁用 List deptList = getDepartmentMapper().getDeptListByPId(mergeParam.getId()); - forbiddenChildTag(parentComp, deptList); + forbiddenChildTag(parentComp, deptList, true); return updateCount; } @@ -560,8 +578,15 @@ public class DepartmentServiceImpl extends Service implements DepartmentService } // 更新EC部门 updateEcDepartment(deptById); - - return getDepartmentMapper().updateBaseDept(deptById); + int updateBaseDept = getDepartmentMapper().updateBaseDept(deptById); + // 更新组织架构图 + new Thread(new DepartmentTriggerRunnable(deptById.getId())).start(); + // 刷新岗位分部 + refreshJobComp(deptById.getId(), deptById.getParentComp()); + List deptList = getDepartmentMapper().getDeptListByPId(deptById.getId()); + forbiddenChildTag(deptById.getParentComp(), deptList, false); + // 递归更新下级部门、岗位 + return updateBaseDept; } /** @@ -570,19 +595,25 @@ public class DepartmentServiceImpl extends Service implements DepartmentService * @param parentComp * @param deptList */ - void forbiddenChildTag(Long parentComp, List deptList) { + void forbiddenChildTag(Long parentComp, List deptList, boolean isForbidden) { if (CollectionUtils.isNotEmpty(deptList)) { for (DepartmentPO departmentPO : deptList) { departmentPO.setParentComp(parentComp); - departmentPO.setForbiddenTag(1); + if (isForbidden) { + departmentPO.setForbiddenTag(1); + // 封存EC表部门 + cancelEcDepartment(departmentPO.getId()); + } // 更新EC表部门 updateEcDepartment(departmentPO); - // 封存EC表部门 - cancelEcDepartment(departmentPO.getId()); getDepartmentMapper().updateBaseDept(departmentPO); + // 更新组织架构图 + new Thread(new DepartmentTriggerRunnable(departmentPO.getId())).start(); + // 刷新岗位所属分部 + refreshJobComp(departmentPO.getId(), parentComp); List childList = getDepartmentMapper().getDeptListByPId(departmentPO.getId()); - forbiddenChildTag(parentComp, childList); + forbiddenChildTag(parentComp, childList, isForbidden); } } } @@ -689,6 +720,8 @@ public class DepartmentServiceImpl extends Service implements DepartmentService jobPO.setParentComp(parentCompId); jobPO.setShowOrder(orderNum); MapperProxyFactory.getProxy(JobMapper.class).insertIgnoreNull(jobPO); + // 更新组织架构图 + new Thread(new JobTriggerRunnable(jobPO.getId())).start(); // 处理子级元素 List jobsByPid = MapperProxyFactory.getProxy(JobMapper.class).getJobsByPid(jobPO.getId()); if (CollectionUtils.isNotEmpty(jobsByPid)) { @@ -754,4 +787,18 @@ public class DepartmentServiceImpl extends Service implements DepartmentService } } + /** + * 更新岗位的所属分部 + * + * @param parentDepartment + * @param parentComp + */ + private void refreshJobComp(Long parentDepartment, Long parentComp) { + List jobPOS = getJobMapper().listJobsByDepartmentId(parentDepartment); + if (CollectionUtils.isNotEmpty(jobPOS)) { + String ecCompanyId = EcHrmRelationUtil.getEcCompanyId(parentComp.toString()); + getJobMapper().updateJobCompany(jobPOS.stream().map(JobPO::getId).collect(Collectors.toList()), parentComp, ecCompanyId); + } + } + } diff --git a/src/com/engine/organization/service/impl/GradeServiceImpl.java b/src/com/engine/organization/service/impl/GradeServiceImpl.java index c07349ed..6919317c 100644 --- a/src/com/engine/organization/service/impl/GradeServiceImpl.java +++ b/src/com/engine/organization/service/impl/GradeServiceImpl.java @@ -127,6 +127,8 @@ public class GradeServiceImpl extends Service implements GradeService { Map apiDatas = new HashMap<>(); List selectItems = new ArrayList<>(); List addGroups = new ArrayList<>(); + String id = Util.null2String(params.get("id")); + String schemeId = Util.null2String(params.get("schemeId")); SearchConditionItem gradeNameCondition = OrganizationFormItemUtil.inputItem(user, 2, 17, 3, 50, "名称", "gradeName"); gradeNameCondition.setRules("required|string"); SearchConditionItem gradeNoCondition = OrganizationFormItemUtil.inputItem(user, 2, 17, 3, 50, "编号", "gradeNo"); @@ -134,11 +136,17 @@ public class GradeServiceImpl extends Service implements GradeService { SearchConditionItem descriptionCondition = OrganizationFormItemUtil.textareaItem(user, 2, 17, true, 2, 60, "描述说明", "description"); SearchConditionItem schemeBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 17, 3, false, "等级方案", "161", "schemeId", "schemeBrowser"); schemeBrowserItem.setRules("required|string"); + BrowserBean schemeBrowserBean = schemeBrowserItem.getBrowserConditionParam(); + if (!"-1".equals(schemeId) && StringUtil.isEmpty(id)) { + schemeBrowserBean.setValue(schemeId); + List> maps = getSchemeMapper().listSchemesByIds(DeleteParam.builder().ids(schemeId).build().getIds()); + schemeBrowserBean.setReplaceDatas(maps); + schemeBrowserItem.setBrowserConditionParam(schemeBrowserBean); + } SearchConditionItem levelBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 17, 3, false, "职等", "162", "levelId", "LevelBrowser"); levelBrowserItem.setRules("required|string"); // 编辑状态下赋值操作 - String id = Util.null2String(params.get("id")); if (!StringUtil.isEmpty(id)) { GradePO gradePO = getGradeMapper().getGradeByID(Integer.parseInt(id)); OrganizationAssert.notNull(gradePO, "选择的数据不存在,或数据已删除"); @@ -149,7 +157,6 @@ public class GradeServiceImpl extends Service implements GradeService { schemeBrowserItem.setValue(gradePO.getSchemeId()); levelBrowserItem.setValue(gradePO.getLevelId()); - BrowserBean schemeBrowserBean = schemeBrowserItem.getBrowserConditionParam(); List> schemeMaps = getSchemeMapper().listSchemesByIds(DeleteParam.builder().ids(gradePO.getSchemeId().toString()).build().getIds()); schemeBrowserBean.setReplaceDatas(schemeMaps); schemeBrowserItem.setBrowserConditionParam(schemeBrowserBean); diff --git a/src/com/engine/organization/service/impl/GroupServiceImpl.java b/src/com/engine/organization/service/impl/GroupServiceImpl.java index 59614035..6f215188 100644 --- a/src/com/engine/organization/service/impl/GroupServiceImpl.java +++ b/src/com/engine/organization/service/impl/GroupServiceImpl.java @@ -5,6 +5,7 @@ import com.api.browser.bean.SearchConditionItem; import com.engine.core.impl.Service; import com.engine.organization.entity.TopTab; import com.engine.organization.service.GroupService; +import com.engine.organization.thread.GroupTriggerRunnable; import com.engine.organization.util.HasRightUtil; import com.engine.organization.util.MenuBtn; import com.engine.organization.util.OrganizationAssert; @@ -45,7 +46,7 @@ public class GroupServiceImpl extends Service implements GroupService { rs.executeQuery(sql); int colcount = rs.getColCounts(); while (rs.next()) { - Map row = new HashMap(); + Map row = new HashMap<>(); for (int i = 1; i <= colcount; i++) { row.put(rs.getColumnName(i).toLowerCase(), Util.null2String(rs.getString(i))); } @@ -81,7 +82,9 @@ public class GroupServiceImpl extends Service implements GroupService { String companydesc = (String) params.get("companydesc"); String companyweb = (String) params.get("companyweb"); RecordSet rs = new RecordSet(); - return rs.executeUpdate("update HrmCompany set COMPANYNAME = ?,COMPANYDESC=?,COMPANYWEB=? where id = ?", companyname, companydesc, companyweb, id); + boolean executeUpdate = rs.executeUpdate("update HrmCompany set COMPANYNAME = ?,COMPANYDESC=?,COMPANYWEB=? where id = ?", companyname, companydesc, companyweb, id); + new Thread(new GroupTriggerRunnable(params)).start(); + return executeUpdate; } diff --git a/src/com/engine/organization/service/impl/ImportCommonServiceImpl.java b/src/com/engine/organization/service/impl/ImportCommonServiceImpl.java index 0496ae13..c595b426 100644 --- a/src/com/engine/organization/service/impl/ImportCommonServiceImpl.java +++ b/src/com/engine/organization/service/impl/ImportCommonServiceImpl.java @@ -30,6 +30,9 @@ import com.engine.organization.mapper.jclimport.JclImportHistoryDetailMapper; import com.engine.organization.mapper.jclimport.JclImportHistoryMapper; import com.engine.organization.mapper.job.JobMapper; import com.engine.organization.service.ImportCommonService; +import com.engine.organization.thread.CompanyTriggerRunnable; +import com.engine.organization.thread.DepartmentTriggerRunnable; +import com.engine.organization.thread.JobTriggerRunnable; import com.engine.organization.thread.OrganizationSyncEc; import com.engine.organization.util.HasRightUtil; import com.engine.organization.util.OrganizationAssert; @@ -663,6 +666,8 @@ public class ImportCommonServiceImpl extends Service implements ImportCommonServ map.put("uuid", recordInfo.getUuid()); ExtendInfoParams infoParams = ExtendInfoParams.builder().tableName("JCL_ORG_COMP").params(map).build(); MapperProxyFactory.getProxy(ExtMapper.class).insertTable(infoParams); + // 刷新组织架构图 + new Thread(new CompanyTriggerRunnable(infoParams.getId())).start(); historyDetailPO.setOperateDetail("添加成功"); historyDetailPO.setStatus("1"); } else { @@ -680,10 +685,13 @@ public class ImportCommonServiceImpl extends Service implements ImportCommonServ } if (checkRepeatNo(compNo, COMPANY_TYPE, companyId)) { map.put("update_time", new Date()); - MapperProxyFactory.getProxy(ExtMapper.class).updateTable(ExtendInfoParams.builder().id(companyId).tableName("JCL_ORG_COMP").params(map).build()); map.put("id", companyId); Map syncMap = new OrganizationSyncEc(user, LogModuleNameEnum.COMPANY, OperateTypeEnum.UPDATE, map, false).sync(); if (isThrowError(syncMap)) { + map.remove("id"); + MapperProxyFactory.getProxy(ExtMapper.class).updateTable(ExtendInfoParams.builder().id(companyId).tableName("JCL_ORG_COMP").params(map).build()); + // 刷新组织架构图 + new Thread(new CompanyTriggerRunnable(companyId)).start(); historyDetailPO.setOperateDetail("更新成功"); historyDetailPO.setStatus("1"); } else { @@ -862,6 +870,8 @@ public class ImportCommonServiceImpl extends Service implements ImportCommonServ map.put("uuid", recordInfo.getUuid()); ExtendInfoParams infoParams = ExtendInfoParams.builder().tableName("JCL_ORG_DEPT").params(map).build(); MapperProxyFactory.getProxy(ExtMapper.class).insertTable(infoParams); + // 刷新组织架构图 + new Thread(new DepartmentTriggerRunnable(infoParams.getId())).start(); map.put("id", infoParams.getId()); historyDetailPO.setOperateDetail("添加成功"); historyDetailPO.setStatus("1"); @@ -880,10 +890,13 @@ public class ImportCommonServiceImpl extends Service implements ImportCommonServ } if (checkRepeatNo(deptNo, DEPARTMENT_TYPE, departmentId)) { map.put("update_time", new Date()); - MapperProxyFactory.getProxy(ExtMapper.class).updateTable(ExtendInfoParams.builder().id(departmentId).tableName("JCL_ORG_DEPT").params(map).build()); map.put("id", departmentId); Map syncMap = new OrganizationSyncEc(user, LogModuleNameEnum.DEPARTMENT, OperateTypeEnum.UPDATE, map, false).sync(); if (isThrowError(syncMap)) { + map.remove("id"); + MapperProxyFactory.getProxy(ExtMapper.class).updateTable(ExtendInfoParams.builder().id(departmentId).tableName("JCL_ORG_DEPT").params(map).build()); + // 刷新组织架构图 + new Thread(new DepartmentTriggerRunnable(departmentId)).start(); historyDetailPO.setOperateDetail("更新成功"); historyDetailPO.setStatus("1"); } else { @@ -1081,11 +1094,16 @@ public class ImportCommonServiceImpl extends Service implements ImportCommonServ map.put("forbidden_tag", 0); } ExtendInfoParams infoParams = ExtendInfoParams.builder().tableName("JCL_ORG_JOB").params(map).build(); - MapperProxyFactory.getProxy(ExtMapper.class).insertTable(infoParams); + map.put("jobactivityid", JobServiceImpl.JOB_ACTIVITY_ID); map.put("id", infoParams.getId()); Map syncMap = new OrganizationSyncEc(user, LogModuleNameEnum.JOB, OperateTypeEnum.ADD, map, false).sync(); if (isThrowError(syncMap)) { + map.remove("id"); + map.remove("jobactivityid"); + MapperProxyFactory.getProxy(ExtMapper.class).insertTable(infoParams); + // 更新组织架构图 + new Thread(new JobTriggerRunnable(jobId)).start(); historyDetailPO.setOperateDetail("添加成功"); historyDetailPO.setStatus("1"); } else { @@ -1103,11 +1121,15 @@ public class ImportCommonServiceImpl extends Service implements ImportCommonServ } if (checkRepeatNo(jobNo, JOB_TYPE, jobId)) { map.put("update_time", new Date()); - MapperProxyFactory.getProxy(ExtMapper.class).updateTable(ExtendInfoParams.builder().id(jobId).tableName("JCL_ORG_JOB").params(map).build()); map.put("jobactivityid", JobServiceImpl.JOB_ACTIVITY_ID); map.put("id", jobId); Map syncMap = new OrganizationSyncEc(user, LogModuleNameEnum.JOB, OperateTypeEnum.UPDATE, map, false).sync(); if (isThrowError(syncMap)) { + map.remove("id"); + map.remove("jobactivityid"); + MapperProxyFactory.getProxy(ExtMapper.class).updateTable(ExtendInfoParams.builder().id(jobId).tableName("JCL_ORG_JOB").params(map).build()); + // 更新组织架构图 + new Thread(new JobTriggerRunnable(jobId)).start(); historyDetailPO.setOperateDetail("更新成功"); historyDetailPO.setStatus("1"); } else { diff --git a/src/com/engine/organization/service/impl/JobServiceImpl.java b/src/com/engine/organization/service/impl/JobServiceImpl.java index ef5a8d2c..de207569 100644 --- a/src/com/engine/organization/service/impl/JobServiceImpl.java +++ b/src/com/engine/organization/service/impl/JobServiceImpl.java @@ -40,6 +40,7 @@ import com.engine.organization.mapper.job.JobMapper; import com.engine.organization.mapper.scheme.GradeMapper; import com.engine.organization.service.ExtService; import com.engine.organization.service.JobService; +import com.engine.organization.thread.JobTriggerRunnable; import com.engine.organization.thread.OrganizationSyncEc; import com.engine.organization.util.*; import com.engine.organization.util.coderule.CodeRuleUtil; @@ -397,6 +398,8 @@ public class JobServiceImpl extends Service implements JobService { jobById.setParentDept(Long.parseLong(department)); jobById.setShowOrder(orderNum); insertCount += getJobMapper().insertIgnoreNull(jobById); + // 更新组织架构图 + new Thread(new JobTriggerRunnable(jobById.getId())).start(); } return insertCount; @@ -472,6 +475,8 @@ public class JobServiceImpl extends Service implements JobService { new OrganizationSyncEc(user, LogModuleNameEnum.JOB, OperateTypeEnum.CANCELED, null, mergeJob).sync(); updateCount = getJobMapper().updateBaseJob(mergeJob); + // 更新组织架构图 + new Thread(new JobTriggerRunnable(mergeJob.getId())).start(); //TODO 合并该刚岗位下的人员 // 合并后岗位及子岗位禁用 @@ -649,6 +654,8 @@ public class JobServiceImpl extends Service implements JobService { job.setForbiddenTag(1); new OrganizationSyncEc(user, LogModuleNameEnum.JOB, OperateTypeEnum.CANCELED, null, job).sync(); getJobMapper().updateBaseJob(job); + // 更新组织架构图 + new Thread(new JobTriggerRunnable(job.getId())).start(); List childJobs = getJobMapper().getJobsByPid(job.getId()); forbiddenChildTag(parentComp, parentDept, job.getId(), childJobs); } diff --git a/src/com/engine/organization/service/impl/LevelServiceImpl.java b/src/com/engine/organization/service/impl/LevelServiceImpl.java index a230d2ef..2302007e 100644 --- a/src/com/engine/organization/service/impl/LevelServiceImpl.java +++ b/src/com/engine/organization/service/impl/LevelServiceImpl.java @@ -124,15 +124,23 @@ public class LevelServiceImpl extends Service implements LevelService { Map apiDatas = new HashMap<>(); List selectItems = new ArrayList<>(); List addGroups = new ArrayList<>(); + String id = Util.null2String(params.get("id")); + String schemeId = Util.null2String(params.get("schemeId")); SearchConditionItem levelNameCondition = OrganizationFormItemUtil.inputItem(user, 2, 17, 3, 50, "名称", "levelName"); levelNameCondition.setRules("required|string"); SearchConditionItem levelNoCondition = OrganizationFormItemUtil.inputItem(user, 2, 17, 3, 50, "编号", "levelNo"); levelNoCondition.setRules("required|string"); SearchConditionItem descriptionCondition = OrganizationFormItemUtil.textareaItem(user, 2, 17, true, 2, 60, "描述说明", "description"); SearchConditionItem browserItem = OrganizationFormItemUtil.browserItem(user, 2, 17, 3, false, "等级方案", "161", "schemeId", "schemeBrowser"); + BrowserBean browserBean = browserItem.getBrowserConditionParam(); + if (!"-1".equals(schemeId) && StringUtil.isEmpty(id)) { + browserItem.setValue(schemeId); + List> maps = getSchemeMapper().listSchemesByIds(DeleteParam.builder().ids(schemeId).build().getIds()); + browserBean.setReplaceDatas(maps); + browserItem.setBrowserConditionParam(browserBean); + } browserItem.setRules("required|string"); // 编辑状态下赋值操作 - String id = Util.null2String(params.get("id")); if (!StringUtil.isEmpty(id)) { LevelPO levelPO = getLevelMapper().getLevelByID(Integer.parseInt(id)); OrganizationAssert.notNull(levelPO, "选择的数据不存在,或数据已删除"); @@ -142,7 +150,6 @@ public class LevelServiceImpl extends Service implements LevelService { descriptionCondition.setValue(levelPO.getDescription()); browserItem.setValue(levelPO.getSchemeId()); - BrowserBean browserBean = browserItem.getBrowserConditionParam(); List> maps = getSchemeMapper().listSchemesByIds(DeleteParam.builder().ids(levelPO.getSchemeId().toString()).build().getIds()); browserBean.setReplaceDatas(maps); diff --git a/src/com/engine/organization/service/impl/NonStandardOptServiceImpl.java b/src/com/engine/organization/service/impl/NonStandardOptServiceImpl.java new file mode 100644 index 00000000..6b952291 --- /dev/null +++ b/src/com/engine/organization/service/impl/NonStandardOptServiceImpl.java @@ -0,0 +1,83 @@ +package com.engine.organization.service.impl; + +import com.engine.core.impl.Service; +import com.engine.organization.service.NonStandardOptService; +import org.apache.commons.lang3.StringUtils; +import weaver.conn.RecordSet; + +import java.util.Arrays; + +/** + * @author:dxfeng + * @createTime: 2022/09/01 + * @version: 1.0 + */ +public class NonStandardOptServiceImpl extends Service implements NonStandardOptService { + private static final String NON_STANDARD_NUM = "151"; + private static final String START = "start"; + private static final String STOP = "stop"; + + @Override + public void NonStandardOpt(String method, String ids) { + if (StringUtils.isAnyBlank(ids, method)) { + return; + } + // 判断是否包含151非标号 + boolean contains = Arrays.asList(ids.split(",")).contains(NON_STANDARD_NUM); + if (contains) { + switch (method.toLowerCase()) { + case START: + Start(); + break; + case STOP: + Stop(); + break; + default: + break; + } + } + } + + private void Start() { + RecordSet rs = new RecordSet(); + // 更新人员表系统字段 + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=1,allowhide=-1 where fieldname='sex'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=-1 where fieldname='departmentid'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=-1 where fieldname='jobtitle'"); + rs.executeUpdate("update hrm_formfield set isuse=0,ismand=0,allowhide=-1 where fieldname='jobactivity'"); + rs.executeUpdate("update hrm_formfield set isuse=0,ismand=0,allowhide=-1 where fieldname='joblevel'"); + rs.executeUpdate("update hrm_formfield set isuse=0,ismand=0,allowhide=-1 where fieldname='jobcall'"); + rs.executeUpdate("update hrm_formfield set isuse=0,ismand=0,allowhide=-1 where fieldname='jobGroupId'"); + rs.executeUpdate("update hrm_formfield set isuse=0,ismand=0,allowhide=-1 where fieldname='jobactivitydesc'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=1,groupid=1,fieldorder=18 where fieldname='managerid'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=1,groupid=1,fieldorder=99 where fieldname='systemlanguage'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=1,groupid=1,fieldorder=21 where fieldname='assistantid'"); + + // 更新聚才林自定义字段 + rs.executeUpdate("update cus_formfield set ISMAND = 1, ISUSE = 1 where SCOPE = 'HrmCustomFieldByInfoType' and SCOPEID = -1 and FIELDID in(100001,100002,100003)"); + rs.executeUpdate("update cus_formfield set ISMAND = 0, ISUSE = 1 where scope = 'HrmCustomFieldByInfoType' and SCOPEID = 3 and FIELDID in(100005, 100006, 100007, 100008, 100009, 100010, 100004)"); + + + } + + private void Stop() { + RecordSet rs = new RecordSet(); + // 更新人员表系统字段 + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=1 where fieldname='sex'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=1,allowhide=-1 where fieldname='departmentid'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=1,allowhide=-1 where fieldname='jobtitle'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=1,allowhide=1 where fieldname='jobactivity'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=1 where fieldname='joblevel'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=1 where fieldname='jobcall'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=1 where fieldname='jobGroupId'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=1 where fieldname='jobactivitydesc'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=1,allowhide=-1,groupid=3,fieldorder=21 where fieldname='managerid'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=1,groupid=1,fieldorder=12 where fieldname='systemlanguage'"); + rs.executeUpdate("update hrm_formfield set isuse=1,ismand=0,allowhide=1,groupid=3,fieldorder=22 where fieldname='assistantid'"); + + // 更新聚才林自定义字段 + rs.executeUpdate("update cus_formfield set ISMAND = 0, ISUSE = 0 where SCOPE = 'HrmCustomFieldByInfoType' and SCOPEID = -1 and FIELDID in(100001,100002,100003)"); + rs.executeUpdate("update cus_formfield set ISMAND = 0, ISUSE = 0 where scope = 'HrmCustomFieldByInfoType' and SCOPEID = 3 and FIELDID in(100005, 100006, 100007, 100008, 100009, 100010, 100004)"); + + } +} diff --git a/src/com/engine/organization/service/impl/SchemeServiceImpl.java b/src/com/engine/organization/service/impl/SchemeServiceImpl.java index 5b5151f4..f3ebecf2 100644 --- a/src/com/engine/organization/service/impl/SchemeServiceImpl.java +++ b/src/com/engine/organization/service/impl/SchemeServiceImpl.java @@ -158,7 +158,7 @@ public class SchemeServiceImpl extends Service implements SchemeService { TypeTreeVO.builder() .domid(e.getKey()) .key(Long.parseLong(e.getKey())) - .name(e.getTitle()) + .name(e.getStatus() == 0 ? e.getTitle() : e.getTitle()+"(已禁用)") .build()).collect(Collectors.toList())) .haschild(true) .domid("-1") @@ -178,8 +178,8 @@ public class SchemeServiceImpl extends Service implements SchemeService { */ private String buildSqlWhere(Map params) { DBType dbType = DBType.get(new RecordSet().getDBType()); - //String sqlWhere = " where delete_type ='0' "; - String sqlWhere = " where 1 = 1 "; + String sqlWhere = " where delete_type ='0' "; + //String sqlWhere = " where 1 = 1 "; String name = (String) params.get("schemeName"); if (StringUtils.isNotBlank(name)) { sqlWhere += " AND scheme_name " + dbType.like(name); diff --git a/src/com/engine/organization/service/impl/StaffPlanServiceImpl.java b/src/com/engine/organization/service/impl/StaffPlanServiceImpl.java index 6238b90d..57970c69 100644 --- a/src/com/engine/organization/service/impl/StaffPlanServiceImpl.java +++ b/src/com/engine/organization/service/impl/StaffPlanServiceImpl.java @@ -192,7 +192,7 @@ public class StaffPlanServiceImpl extends Service implements StaffPlanService { dimensionItem.setViewAttr(3); dimensionItem.setRules("required|string"); // 说明 - SearchConditionItem descriptionItem = OrganizationFormItemUtil.inputItem(user, 2, 16, 2, 50, "说明", "description"); + SearchConditionItem descriptionItem = OrganizationFormItemUtil.textareaItem(user, 2, 16, true, 2, 200, "说明", "description"); // 编辑状态下赋值操作 String id = Util.null2String(params.get("id")); diff --git a/src/com/engine/organization/service/impl/StaffServiceImpl.java b/src/com/engine/organization/service/impl/StaffServiceImpl.java index 2b53021f..b03a9c6b 100644 --- a/src/com/engine/organization/service/impl/StaffServiceImpl.java +++ b/src/com/engine/organization/service/impl/StaffServiceImpl.java @@ -214,10 +214,11 @@ public class StaffServiceImpl extends Service implements StaffService { selectOptions.add(option1); selectOptions.add(option2); selectOptions.add(option3); - SearchConditionItem controlPolicyItem = OrganizationFormItemUtil.selectItem(user, selectOptions, 2, 16, 6, true, "控制策略", "controlPolicy"); + SearchConditionItem controlPolicyItem = OrganizationFormItemUtil.selectItem(user, selectOptions, 2, 16, 6, false, "控制策略", "controlPolicy"); controlPolicyItem.setViewAttr(3); + controlPolicyItem.setValue("1"); controlPolicyItem.setRules("required|string"); - SearchConditionItem descriptionItem = OrganizationFormItemUtil.textareaItem(user, 2, 16, true, 2, 60, "描述说明", "description"); + SearchConditionItem descriptionItem = OrganizationFormItemUtil.textareaItem(user, 2, 16, true, 2, 200, "描述说明", "description"); // 编辑状态下赋值操作 diff --git a/src/com/engine/organization/thread/CompanyTriggerRunnable.java b/src/com/engine/organization/thread/CompanyTriggerRunnable.java new file mode 100644 index 00000000..e1532df4 --- /dev/null +++ b/src/com/engine/organization/thread/CompanyTriggerRunnable.java @@ -0,0 +1,115 @@ +package com.engine.organization.thread; + +import com.alibaba.fastjson.JSONObject; +import com.engine.organization.entity.company.po.CompPO; +import com.engine.organization.entity.logview.bo.FieldBaseEquator; +import com.engine.organization.entity.map.JclOrgMap; +import com.engine.organization.mapper.comp.CompMapper; +import com.engine.organization.mapper.jclorgmap.JclOrgMapper; +import com.engine.organization.mapper.trigger.CompTriggerMapper; +import com.engine.organization.util.OrganizationDateUtil; +import com.engine.organization.util.db.MapperProxyFactory; +import org.apache.commons.collections.CollectionUtils; +import weaver.common.DateUtil; +import weaver.hrm.passwordprotection.domain.HrmResource; + +import java.sql.Date; +import java.util.Calendar; +import java.util.List; + +/** + * @author:dxfeng + * @createTime: 2022/08/30 + * @version: 1.0 + */ +public class CompanyTriggerRunnable implements Runnable { + + private final CompPO oldCompany; + private final CompPO newCompany; + + private CompTriggerMapper getCompTriggerMapper() { + return MapperProxyFactory.getProxy(CompTriggerMapper.class); + } + + public CompanyTriggerRunnable(CompPO oldCompany, CompPO newCompany) { + this.oldCompany = oldCompany; + this.newCompany = newCompany; + } + + public CompanyTriggerRunnable(Long companyId) { + this.oldCompany = new CompPO(); + this.newCompany = MapperProxyFactory.getProxy(CompMapper.class).listById(companyId); + } + + public CompanyTriggerRunnable(CompPO newCompany) { + this.oldCompany = new CompPO(); + this.newCompany = newCompany; + this.newCompany.setDeleteType(1); + } + + @Override + public void run() { + FieldBaseEquator fieldBaseEquator = new FieldBaseEquator(); + List diffFields = fieldBaseEquator.getDiffFieldList(oldCompany, newCompany); + if (CollectionUtils.isEmpty(diffFields)) { + return; + } + // 判断 + if (diffFields.contains("compName") || diffFields.contains("compPrincipal") || diffFields.contains("parentCompany") || diffFields.contains("forbiddenTag") || diffFields.contains("deleteType")) { + JclOrgMap jclMap = new JclOrgMap(); + + jclMap.setFType(1); + // 更新逻辑 + jclMap.setFObjId(newCompany.getId().intValue()); + jclMap.setId(newCompany.getId().intValue()); + jclMap.setUuid(newCompany.getUuid()); + jclMap.setFNumber(newCompany.getCompNo()); + jclMap.setFName(newCompany.getCompName()); + jclMap.setFLeader(newCompany.getCompPrincipal()); + jclMap.setFParentId(null == newCompany.getParentCompany() ? 0 : newCompany.getParentCompany().intValue()); + jclMap.setFObjParentId(null == newCompany.getParentCompany() ? 0 : newCompany.getParentCompany().intValue()); + jclMap.setFEcId(getCompTriggerMapper().getEcCompanyIdByUuid(jclMap.getUuid())); + + + jclMap.setFClass(0); + jclMap.setFClassName("行政维度"); + HrmResource hrmResourceById = getCompTriggerMapper().getHrmResourceById(jclMap.getFLeader()); + + + if (null != hrmResourceById) { + jclMap.setFLeaderImg(hrmResourceById.getMessagerurl()); + jclMap.setFLeaderName(hrmResourceById.getLastname()); + jclMap.setFLeaderJobId(hrmResourceById.getJobtitle()); + } + + jclMap.setFLeaderJob(getCompTriggerMapper().getJobTitleMarkById(jclMap.getFLeaderJobId())); + + JSONObject cusFieldDataById = getCompTriggerMapper().getCusFieldDataById(jclMap.getFLeader()); + if (null != cusFieldDataById) { + jclMap.setFLeaderSt(cusFieldDataById.getString("field100008")); + jclMap.setFLeaderLv(cusFieldDataById.getString("field100007")); + } + jclMap.setFDateBegin(new Date(System.currentTimeMillis())); + jclMap.setFDateEnd(new Date(OrganizationDateUtil.stringToDate("2099-12-31").getTime())); + + + jclMap.setFPlan(getCompTriggerMapper().sumStaffNum(jclMap.getFDateBegin(), jclMap.getFObjId())); + jclMap.setFOnJob(getCompTriggerMapper().countHrmResource(jclMap.getFEcId())); + jclMap.setFIsVitual(0); + + Calendar cal = Calendar.getInstance(); + cal.setTime(jclMap.getFDateBegin()); + Calendar calendar = DateUtil.addDay(cal, -1); + Date time = new Date(calendar.getTime().getTime()); + getCompTriggerMapper().deleteMap(jclMap.getFType(), jclMap.getFObjId(), jclMap.getFDateBegin()); + getCompTriggerMapper().updateMap(jclMap.getFType(), jclMap.getFObjId(), jclMap.getFDateBegin(), time); + + + if (1 != newCompany.getDeleteType() && 1 != newCompany.getForbiddenTag()) { + MapperProxyFactory.getProxy(JclOrgMapper.class).insertMap(jclMap); + } + + + } + } +} diff --git a/src/com/engine/organization/thread/DepartmentTriggerRunnable.java b/src/com/engine/organization/thread/DepartmentTriggerRunnable.java new file mode 100644 index 00000000..293aefbf --- /dev/null +++ b/src/com/engine/organization/thread/DepartmentTriggerRunnable.java @@ -0,0 +1,118 @@ +package com.engine.organization.thread; + +import com.alibaba.fastjson.JSONObject; +import com.engine.organization.entity.department.po.DepartmentPO; +import com.engine.organization.entity.logview.bo.FieldBaseEquator; +import com.engine.organization.entity.map.JclOrgMap; +import com.engine.organization.mapper.department.DepartmentMapper; +import com.engine.organization.mapper.jclorgmap.JclOrgMapper; +import com.engine.organization.mapper.trigger.CompTriggerMapper; +import com.engine.organization.mapper.trigger.DepartmentTriggerMapper; +import com.engine.organization.util.OrganizationDateUtil; +import com.engine.organization.util.db.MapperProxyFactory; +import org.apache.commons.collections.CollectionUtils; +import weaver.common.DateUtil; +import weaver.hrm.passwordprotection.domain.HrmResource; + +import java.sql.Date; +import java.util.Calendar; +import java.util.List; + +/** + * @author:dxfeng + * @createTime: 2022/08/30 + * @version: 1.0 + */ +public class DepartmentTriggerRunnable implements Runnable { + + private final DepartmentPO oldDepartment; + private final DepartmentPO newDepartment; + + private CompTriggerMapper getCompTriggerMapper() { + return MapperProxyFactory.getProxy(CompTriggerMapper.class); + } + + private DepartmentTriggerMapper getDepartmentTriggerMapper() { + return MapperProxyFactory.getProxy(DepartmentTriggerMapper.class); + } + + public DepartmentTriggerRunnable(DepartmentPO oldDepartment, DepartmentPO newDepartment) { + this.oldDepartment = oldDepartment; + this.newDepartment = newDepartment; + } + + public DepartmentTriggerRunnable(Long departmentId) { + this.oldDepartment = new DepartmentPO(); + this.newDepartment = MapperProxyFactory.getProxy(DepartmentMapper.class).getDeptById(departmentId); + } + + public DepartmentTriggerRunnable(DepartmentPO newDepartment) { + this.oldDepartment = new DepartmentPO(); + this.newDepartment = newDepartment; + this.newDepartment.setDeleteType(1); + } + + @Override + public void run() { + FieldBaseEquator fieldBaseEquator = new FieldBaseEquator(); + List diffFields = fieldBaseEquator.getDiffFieldList(oldDepartment, newDepartment); + if (CollectionUtils.isEmpty(diffFields)) { + return; + } + // 判断 + if (diffFields.contains("deptName") || diffFields.contains("deptPrincipal") || diffFields.contains("parentComp") || diffFields.contains("parentDept") || diffFields.contains("forbiddenTag") || diffFields.contains("deleteType")) { + JclOrgMap jclMap = new JclOrgMap(); + jclMap.setFType(2); + int st = 100000000; + // 更新逻辑 + jclMap.setFObjId(newDepartment.getId().intValue()); + jclMap.setId(newDepartment.getId().intValue() + st); + jclMap.setUuid(newDepartment.getUuid()); + jclMap.setFNumber(newDepartment.getDeptNo()); + jclMap.setFName(newDepartment.getDeptName()); + jclMap.setFLeader(null == newDepartment.getDeptPrincipal() ? null : newDepartment.getDeptPrincipal().intValue()); + jclMap.setFParentId(null == newDepartment.getParentDept() ? newDepartment.getParentComp().intValue() : newDepartment.getParentDept().intValue() + st); + jclMap.setFObjParentId(null == newDepartment.getParentDept() ? newDepartment.getParentComp().intValue() : newDepartment.getParentDept().intValue()); + + jclMap.setFEcId(getDepartmentTriggerMapper().getEcDepartmentIdByUuid(jclMap.getUuid())); + + + jclMap.setFClass(0); + jclMap.setFClassName("行政维度"); + HrmResource hrmResourceById = getCompTriggerMapper().getHrmResourceById(jclMap.getFLeader()); + + + if (null != hrmResourceById) { + jclMap.setFLeaderImg(hrmResourceById.getMessagerurl()); + jclMap.setFLeaderName(hrmResourceById.getLastname()); + jclMap.setFLeaderJobId(hrmResourceById.getJobtitle()); + } + + jclMap.setFLeaderJob(getCompTriggerMapper().getJobTitleMarkById(jclMap.getFLeaderJobId())); + + JSONObject cusFieldDataById = getCompTriggerMapper().getCusFieldDataById(jclMap.getFLeader()); + if (null != cusFieldDataById) { + jclMap.setFLeaderSt(cusFieldDataById.getString("field100008")); + jclMap.setFLeaderLv(cusFieldDataById.getString("field100007")); + } + jclMap.setFDateBegin(new Date(System.currentTimeMillis())); + jclMap.setFDateEnd(new Date(OrganizationDateUtil.stringToDate("2099-12-31").getTime())); + + + jclMap.setFPlan(getDepartmentTriggerMapper().sumStaffNum(jclMap.getFDateBegin(), jclMap.getFObjId())); + jclMap.setFOnJob(getDepartmentTriggerMapper().countHrmResource(jclMap.getFEcId())); + jclMap.setFIsVitual(0); + + Calendar cal = Calendar.getInstance(); + cal.setTime(jclMap.getFDateBegin()); + Calendar calendar = DateUtil.addDay(cal, -1); + Date time = new Date(calendar.getTime().getTime()); + getCompTriggerMapper().deleteMap(jclMap.getFType(), jclMap.getFObjId(), jclMap.getFDateBegin()); + getCompTriggerMapper().updateMap(jclMap.getFType(), jclMap.getFObjId(), jclMap.getFDateBegin(), time); + + if (1 != newDepartment.getDeleteType() && 1 != newDepartment.getForbiddenTag()) { + MapperProxyFactory.getProxy(JclOrgMapper.class).insertMap(jclMap); + } + } + } +} diff --git a/src/com/engine/organization/thread/GroupTriggerRunnable.java b/src/com/engine/organization/thread/GroupTriggerRunnable.java new file mode 100644 index 00000000..6c264d94 --- /dev/null +++ b/src/com/engine/organization/thread/GroupTriggerRunnable.java @@ -0,0 +1,91 @@ +package com.engine.organization.thread; + +import com.alibaba.fastjson.JSONObject; +import com.engine.organization.entity.map.JclOrgMap; +import com.engine.organization.mapper.jclorgmap.JclOrgMapper; +import com.engine.organization.mapper.trigger.CompTriggerMapper; +import com.engine.organization.mapper.trigger.GroupTriggerMapper; +import com.engine.organization.util.OrganizationDateUtil; +import com.engine.organization.util.db.MapperProxyFactory; +import org.apache.commons.lang3.StringUtils; +import weaver.common.DateUtil; +import weaver.general.Util; +import weaver.hrm.passwordprotection.domain.HrmResource; + +import java.sql.Date; +import java.util.Calendar; +import java.util.Map; + +/** + * @author:dxfeng + * @createTime: 2022/08/30 + * @version: 1.0 + */ +public class GroupTriggerRunnable implements Runnable { + Map params; + + private CompTriggerMapper getCompTriggerMapper() { + return MapperProxyFactory.getProxy(CompTriggerMapper.class); + } + + private GroupTriggerMapper getGroupTriggerMapper() { + return MapperProxyFactory.getProxy(GroupTriggerMapper.class); + } + + public GroupTriggerRunnable(Map params) { + this.params = params; + } + + + @Override + public void run() { + JclOrgMap jclOrgMap = new JclOrgMap(); + //id = 0; + jclOrgMap.setId(0); + //ftype = 0; + jclOrgMap.setFType(0); + jclOrgMap.setFObjId(0); + jclOrgMap.setFEcId(parseString2Int(params.get("id"))); + jclOrgMap.setUuid(Util.null2String(params.get("uuid"))); + jclOrgMap.setFNumber("00"); + jclOrgMap.setFName(Util.null2String(params.get("companyname"))); + jclOrgMap.setFClass(0); + jclOrgMap.setFClassName("行政维度"); + jclOrgMap.setFLeader(getGroupTriggerMapper().getInfoValue(1)); + HrmResource hrmResourceById = getCompTriggerMapper().getHrmResourceById(jclOrgMap.getFLeader()); + if (null != hrmResourceById) { + jclOrgMap.setFLeaderImg(hrmResourceById.getMessagerurl()); + jclOrgMap.setFLeaderName(hrmResourceById.getLastname()); + jclOrgMap.setFLeaderJobId(hrmResourceById.getJobtitle()); + } + jclOrgMap.setFLeaderJob(getCompTriggerMapper().getJobTitleMarkById(jclOrgMap.getFLeaderJobId())); + JSONObject cusFieldDataById = getCompTriggerMapper().getCusFieldDataById(jclOrgMap.getFLeader()); + if (null != cusFieldDataById) { + jclOrgMap.setFLeaderSt(cusFieldDataById.getString("field100008")); + jclOrgMap.setFLeaderLv(cusFieldDataById.getString("field100007")); + } + jclOrgMap.setFParentId(1); + jclOrgMap.setFObjParentId(0); + jclOrgMap.setFDateBegin(new Date(System.currentTimeMillis())); + jclOrgMap.setFDateEnd(new Date(OrganizationDateUtil.stringToDate("2099-12-31").getTime())); + jclOrgMap.setFPlan(getGroupTriggerMapper().sumStaffNum(jclOrgMap.getFDateBegin())); + jclOrgMap.setFOnJob(getGroupTriggerMapper().countHrmResource()); + jclOrgMap.setFIsVitual(0); + Calendar cal = Calendar.getInstance(); + cal.setTime(jclOrgMap.getFDateBegin()); + Calendar calendar = DateUtil.addDay(cal, -1); + Date time = new Date(calendar.getTime().getTime()); + getGroupTriggerMapper().deleteMap(0, jclOrgMap.getFDateBegin()); + getGroupTriggerMapper().updateMap(0, jclOrgMap.getFDateBegin(), time); + + MapperProxyFactory.getProxy(JclOrgMapper.class).insertMap(jclOrgMap); + } + + private Integer parseString2Int(Object args) { + String s = Util.null2String(args); + if (StringUtils.isBlank(s)) { + return null; + } + return Integer.parseInt(s); + } +} diff --git a/src/com/engine/organization/thread/HrmResourceTriggerRunnable.java b/src/com/engine/organization/thread/HrmResourceTriggerRunnable.java new file mode 100644 index 00000000..6ea82ab4 --- /dev/null +++ b/src/com/engine/organization/thread/HrmResourceTriggerRunnable.java @@ -0,0 +1,88 @@ +package com.engine.organization.thread; + +import com.alibaba.fastjson.JSONObject; +import com.engine.organization.entity.map.JclOrgMap; +import com.engine.organization.mapper.jclorgmap.JclOrgMapper; +import com.engine.organization.mapper.trigger.CompTriggerMapper; +import com.engine.organization.mapper.trigger.HrmResourceTriggerMapper; +import com.engine.organization.util.OrganizationDateUtil; +import com.engine.organization.util.db.MapperProxyFactory; +import org.apache.commons.lang.StringUtils; +import weaver.common.DateUtil; +import weaver.hrm.passwordprotection.domain.HrmResource; + +import java.sql.Date; +import java.util.Calendar; + +/** + * @author:dxfeng + * @createTime: 2022/09/01 + * @version: 1.0 + */ +public class HrmResourceTriggerRunnable implements Runnable { + Long userId; + + private CompTriggerMapper getCompTriggerMapper() { + return MapperProxyFactory.getProxy(CompTriggerMapper.class); + } + + private HrmResourceTriggerMapper getHrmResourceTriggerMapper() { + return MapperProxyFactory.getProxy(HrmResourceTriggerMapper.class); + } + + public HrmResourceTriggerRunnable(Long id) { + this.userId = id; + } + + @Override + public void run() { + int st = 100000000; + int sj = 200000000; + int sk = 300000000; + Integer delete = null; + JclOrgMap jclMap = new JclOrgMap(); + jclMap.setFType(4); + // 查询当前人员信息数据 + HrmResource hrmResource = getHrmResourceTriggerMapper().getHrmResource(userId); + if (null != hrmResource) { + jclMap.setFObjId(hrmResource.getId()); + jclMap.setId(hrmResource.getId() + sk); + jclMap.setFNumber(hrmResource.getWorkcode()); + jclMap.setFName(hrmResource.getLastname()); + delete = hrmResource.getStatus() <= 3 ? 0 : 1; + jclMap.setFLeaderImg(hrmResource.getMessagerurl()); + jclMap.setFLeaderName(hrmResource.getLastname()); + jclMap.setFLeaderJobId(hrmResource.getJobtitle()); + JSONObject cusFieldDataById = getHrmResourceTriggerMapper().getCusFieldDataById(jclMap.getFObjId()); + if (null != cusFieldDataById) { + String field100002 = cusFieldDataById.getString("field100002"); + if (StringUtils.isNotBlank(field100002)) { + int index = field100002.indexOf('_'); + jclMap.setFObjParentId(Integer.parseInt(field100002.substring(index + 1))); + jclMap.setFParentId(jclMap.getFObjParentId() + sj); + } + jclMap.setFLeaderSt(cusFieldDataById.getString("field100008")); + jclMap.setFLeaderLv(cusFieldDataById.getString("field100007")); + } + jclMap.setFClass(0); + jclMap.setFClassName("行政维度"); + jclMap.setFLeaderJob(getCompTriggerMapper().getJobTitleMarkById(jclMap.getFLeaderJobId())); + jclMap.setFDateBegin(new Date(System.currentTimeMillis())); + jclMap.setFDateEnd(new Date(OrganizationDateUtil.stringToDate("2099-12-31").getTime())); + jclMap.setFIsVitual(0); + + Calendar cal = Calendar.getInstance(); + cal.setTime(jclMap.getFDateBegin()); + Calendar calendar = DateUtil.addDay(cal, -1); + Date time = new Date(calendar.getTime().getTime()); + + getCompTriggerMapper().deleteMap(jclMap.getFType(), jclMap.getFObjId(), jclMap.getFDateBegin()); + getCompTriggerMapper().updateMap(jclMap.getFType(), jclMap.getFObjId(), jclMap.getFDateBegin(), time); + if (0 == delete) { + MapperProxyFactory.getProxy(JclOrgMapper.class).insertMap(jclMap); + } + } + + + } +} diff --git a/src/com/engine/organization/thread/JobTriggerRunnable.java b/src/com/engine/organization/thread/JobTriggerRunnable.java new file mode 100644 index 00000000..e2448159 --- /dev/null +++ b/src/com/engine/organization/thread/JobTriggerRunnable.java @@ -0,0 +1,101 @@ +package com.engine.organization.thread; + +import com.engine.organization.entity.job.po.JobPO; +import com.engine.organization.entity.logview.bo.FieldBaseEquator; +import com.engine.organization.entity.map.JclOrgMap; +import com.engine.organization.mapper.jclorgmap.JclOrgMapper; +import com.engine.organization.mapper.job.JobMapper; +import com.engine.organization.mapper.trigger.CompTriggerMapper; +import com.engine.organization.mapper.trigger.JobTriggerMapper; +import com.engine.organization.util.OrganizationDateUtil; +import com.engine.organization.util.db.MapperProxyFactory; +import org.apache.commons.collections.CollectionUtils; +import weaver.common.DateUtil; + +import java.sql.Date; +import java.util.Calendar; +import java.util.List; + +/** + * @author:dxfeng + * @createTime: 2022/08/30 + * @version: 1.0 + */ +public class JobTriggerRunnable implements Runnable { + + private final JobPO oldJob; + private final JobPO newJob; + + private CompTriggerMapper getCompTriggerMapper() { + return MapperProxyFactory.getProxy(CompTriggerMapper.class); + } + + private JobTriggerMapper getJobTriggerMapper() { + return MapperProxyFactory.getProxy(JobTriggerMapper.class); + } + + public JobTriggerRunnable(JobPO oldJob, JobPO newJob) { + this.oldJob = oldJob; + this.newJob = newJob; + } + + public JobTriggerRunnable(Long jobId) { + this.oldJob = new JobPO(); + this.newJob = MapperProxyFactory.getProxy(JobMapper.class).getJobById(jobId); + } + + public JobTriggerRunnable(JobPO newJob) { + this.oldJob = new JobPO(); + this.newJob = newJob; + this.newJob.setDeleteType(1); + } + + @Override + public void run() { + FieldBaseEquator fieldBaseEquator = new FieldBaseEquator(); + List diffFields = fieldBaseEquator.getDiffFieldList(oldJob, newJob); + if (CollectionUtils.isEmpty(diffFields)) { + return; + } + // 判断 + if (diffFields.contains("jobName") || diffFields.contains("parentDept") || diffFields.contains("parentJob") || diffFields.contains("forbiddenTag") || diffFields.contains("deleteType")) { + JclOrgMap jclMap = new JclOrgMap(); + int st = 100000000; + int sj = 200000000; + jclMap.setFType(3); + // 更新逻辑 + jclMap.setFObjId(newJob.getId().intValue()); + jclMap.setId(newJob.getId().intValue() + sj); + jclMap.setFNumber(newJob.getJobNo()); + jclMap.setFName(newJob.getJobName()); + jclMap.setFParentId(null == newJob.getParentJob() ? newJob.getParentDept().intValue() + st : newJob.getParentJob().intValue() + sj); + jclMap.setFObjParentId(null == newJob.getParentJob() ? newJob.getParentDept().intValue() : newJob.getParentJob().intValue()); + Integer parentdept = newJob.getParentDept().intValue(); + + jclMap.setFClass(0); + jclMap.setFClassName("行政维度"); + + jclMap.setFDateBegin(new Date(System.currentTimeMillis())); + jclMap.setFDateEnd(new Date(OrganizationDateUtil.stringToDate("2099-12-31").getTime())); + + + jclMap.setFPlan(getJobTriggerMapper().sumStaffNum(jclMap.getFDateBegin(), jclMap.getFObjId())); + jclMap.setFOnJob(getJobTriggerMapper().countHrmResource(parentdept, jclMap.getFName())); + jclMap.setFIsVitual(0); + + Calendar cal = Calendar.getInstance(); + cal.setTime(jclMap.getFDateBegin()); + Calendar calendar = DateUtil.addDay(cal, -1); + Date time = new Date(calendar.getTime().getTime()); + getCompTriggerMapper().deleteMap(jclMap.getFType(), jclMap.getFObjId(), jclMap.getFDateBegin()); + getCompTriggerMapper().updateMap(jclMap.getFType(), jclMap.getFObjId(), jclMap.getFDateBegin(), time); + + + if (1 != newJob.getDeleteType() && 1 != newJob.getForbiddenTag()) { + MapperProxyFactory.getProxy(JclOrgMapper.class).insertMap(jclMap); + } + + + } + } +} diff --git a/src/com/engine/organization/thread/OrganizationSyncEc.java b/src/com/engine/organization/thread/OrganizationSyncEc.java index 461b6890..c182e6ec 100644 --- a/src/com/engine/organization/thread/OrganizationSyncEc.java +++ b/src/com/engine/organization/thread/OrganizationSyncEc.java @@ -82,7 +82,7 @@ public class OrganizationSyncEc { default: break; } - if (throwException) { + if (throwException && null != resultMap) { OrganizationAssert.isTrue("1".equals(Util.null2String(resultMap.get("status"))) || "1".equals(Util.null2String(resultMap.get("sign"))), Util.null2String(resultMap.get("message"))); } return resultMap; @@ -253,6 +253,9 @@ public class OrganizationSyncEc { private void cancelJob() { Map map = new HashMap<>(); RecordInfo hrmJobTitleByName = getSystemDataMapper().getHrmJobTitleByName(oldJobPO.getJobName()); + if (null == hrmJobTitleByName) { + return; + } if (0 == oldJobPO.getForbiddenTag()) { // 启用 map.put("ids", hrmJobTitleByName.getId()); @@ -325,7 +328,7 @@ public class OrganizationSyncEc { params.put("parent_comp", departmentPO.getParentComp()); params.put("parent_dept", departmentPO.getParentDept()); params.put("show_order", departmentPO.getShowOrder()); - params.put("dept_no", departmentPO.getDeptNo()); + params.put("dept_no", departmentPO.getDeptNo() + currentTimeMillis); params.put("dept_principal", departmentPO.getDeptPrincipal()); updateDepartment(); idList.add(EcHrmRelationUtil.getEcDepartmentId(s)); @@ -432,7 +435,7 @@ public class OrganizationSyncEc { // 更新名称为:名称+时间戳 CompPO comp = MapperProxyFactory.getProxy(CompMapper.class).listById(Long.parseLong(s)); params.put("parent_company", comp.getParentCompany()); - params.put("comp_no", comp.getCompNo()); + params.put("comp_no", comp.getCompNo() + currentTimeMillis); params.put("comp_name", comp.getCompName() + currentTimeMillis); params.put("comp_name_short", comp.getCompNameShort() + currentTimeMillis); params.put("show_order", comp.getShowOrder()); diff --git a/src/com/engine/organization/trigger/cusfielddata/CusFieldDataTrigger.java b/src/com/engine/organization/trigger/cusfielddata/CusFieldDataTrigger.java index 0f56e2fd..18a34cd9 100644 --- a/src/com/engine/organization/trigger/cusfielddata/CusFieldDataTrigger.java +++ b/src/com/engine/organization/trigger/cusfielddata/CusFieldDataTrigger.java @@ -19,6 +19,7 @@ import com.engine.organization.mapper.scheme.GradeMapper; import com.engine.organization.mapper.scheme.LevelMapper; import com.engine.organization.mapper.scheme.SchemeMapper; import com.engine.organization.mapper.sequence.SequenceMapper; +import com.engine.organization.thread.HrmResourceTriggerRunnable; import com.engine.organization.util.db.MapperProxyFactory; import org.apache.commons.lang3.StringUtils; @@ -82,7 +83,7 @@ public class CusFieldDataTrigger { } // field100002更新 - if (null != sourceField100002 && !sourceField100002.equals(directionData.getField100002())) { + if (StringUtils.isNotBlank(sourceField100002) && !sourceField100002.equals(directionData.getField100002())) { directionData.setField100002(sourceField100002); Long gwId = Long.parseLong(sourceField100002); JobPO jobById = MapperProxyFactory.getProxy(JobMapper.class).getJobById(gwId); @@ -118,5 +119,7 @@ public class CusFieldDataTrigger { if (updateFlag) { MapperProxyFactory.getProxy(SystemDataMapper.class).updateCusFieldData(directionData); } + // 刷新组织结构图 + new Thread(new HrmResourceTriggerRunnable(id)).start(); } } diff --git a/src/com/engine/organization/util/MenuBtn.java b/src/com/engine/organization/util/MenuBtn.java index 1125aa45..3e2b74df 100644 --- a/src/com/engine/organization/util/MenuBtn.java +++ b/src/com/engine/organization/util/MenuBtn.java @@ -51,7 +51,7 @@ public class MenuBtn { * @return */ public static MenuBtn topMenu_copy() { - return MenuBtn.builder().isBatch("1").isTop("1").menuFun("copy").menuIcon("icon-coms-form-copy").menuName("复制").type( "BTN_Copy").build(); + return MenuBtn.builder().isBatch("1").isTop("1").menuFun("copy").menuIcon("icon-coms-form-copy").menuName("批量复制").type( "BTN_Copy").build(); } /** diff --git a/src/com/engine/organization/util/RefreshIsUsedUtil.java b/src/com/engine/organization/util/RefreshIsUsedUtil.java index 74bfdc56..7786d2be 100644 --- a/src/com/engine/organization/util/RefreshIsUsedUtil.java +++ b/src/com/engine/organization/util/RefreshIsUsedUtil.java @@ -10,6 +10,7 @@ import com.engine.organization.mapper.staff.StaffMapper; import com.engine.organization.mapper.staff.StaffPlanMapper; import com.engine.organization.util.db.MapperProxyFactory; import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang.StringUtils; import java.util.Arrays; import java.util.List; @@ -47,7 +48,7 @@ public class RefreshIsUsedUtil { */ public static void RefreshLevel(String tableName) { List usedIds = MapperProxyFactory.getProxy(LevelMapper.class).listUsedId(); - usedIds.removeIf(Objects::isNull); + usedIds.removeIf(StringUtils::isBlank); RefreshIsUsedStatus(tableName, usedIds); } @@ -58,7 +59,8 @@ public class RefreshIsUsedUtil { */ public static void RefreshGrade(String tableName) { List usedIds = MapperProxyFactory.getProxy(GradeMapper.class).listUsedId(); - usedIds.removeIf(Objects::isNull); + //usedIds.forEach(System.out ::println); + usedIds.removeIf(StringUtils::isBlank); RefreshIsUsedStatus(tableName, usedIds); } @@ -69,7 +71,7 @@ public class RefreshIsUsedUtil { */ public static void RefreshSequence(String tableName) { List usedIds = MapperProxyFactory.getProxy(SequenceMapper.class).listUsedId(); - usedIds.removeIf(Objects::isNull); + usedIds.removeIf(StringUtils::isBlank); RefreshIsUsedStatus(tableName, usedIds); } @@ -80,7 +82,7 @@ public class RefreshIsUsedUtil { */ public static void RefreshStaffPlan(String tableName) { List usedIds = MapperProxyFactory.getProxy(StaffPlanMapper.class).listUsedId(); - usedIds.removeIf(Objects::isNull); + usedIds.removeIf(StringUtils::isBlank); RefreshIsUsedStatus(tableName, usedIds); } @@ -91,7 +93,7 @@ public class RefreshIsUsedUtil { */ public static void RefreshStaff(String tableName) { List usedIds = MapperProxyFactory.getProxy(StaffMapper.class).listUsedId(); - usedIds.removeIf(Objects::isNull); + usedIds.removeIf(StringUtils::isBlank); RefreshIsUsedStatus(tableName, usedIds); } @@ -103,7 +105,7 @@ public class RefreshIsUsedUtil { */ public static void RefreshPostInfo(String tableName) { List usedIds = MapperProxyFactory.getProxy(PostInfoMapper.class).listUsedId(); - usedIds.removeIf(Objects::isNull); + usedIds.removeIf(StringUtils::isBlank); RefreshIsUsedStatus(tableName, usedIds); } @@ -118,7 +120,7 @@ public class RefreshIsUsedUtil { List collect = Arrays.stream(String.join(",", usedIds).split(",")).collect(Collectors.toList()); getRefreshUseMapper().updateIsUsedByIds(tableName, collect, 0); getRefreshUseMapper().updateIsUsedByIds(tableName, collect, 1); - }else{ + } else { getRefreshUseMapper().initIsUseStatus(tableName); } } diff --git a/src/com/engine/organization/util/saveimport/hrmimport/HrmImportProcessE9.java b/src/com/engine/organization/util/saveimport/hrmimport/HrmImportProcessE9.java index c8f6dbd4..e9b0b219 100644 --- a/src/com/engine/organization/util/saveimport/hrmimport/HrmImportProcessE9.java +++ b/src/com/engine/organization/util/saveimport/hrmimport/HrmImportProcessE9.java @@ -13,6 +13,7 @@ import com.engine.hrm.util.face.bean.CheckItemBean; import com.engine.organization.entity.jclimport.po.JclImportHistoryDetailPO; import com.engine.organization.mapper.jclimport.JclImportHistoryDetailMapper; import com.engine.organization.mapper.jclimport.JclImportHistoryMapper; +import com.engine.organization.thread.HrmResourceTriggerRunnable; import com.engine.organization.trigger.cusfielddata.CusFieldDataTrigger; import com.engine.organization.util.db.MapperProxyFactory; import com.weaver.integration.ldap.sync.oa.OaSync; @@ -817,6 +818,8 @@ public class HrmImportProcessE9 extends BaseBean { HrmFaceCheckManager.sync(id + "", HrmFaceCheckManager.getOptInsert(), "hrm_e9_import_resource", HrmFaceCheckManager.getOaResource()); new HrmDateCheck().calWorkInfo("" + id); + // 刷新组织结构图 + new Thread(new HrmResourceTriggerRunnable((long) id)).start(); } @@ -1484,6 +1487,8 @@ public class HrmImportProcessE9 extends BaseBean { } else { resultList.add(createLog(vo, "更新", "失败", "系统错误,请联系管理员")); } + // 刷新组织结构图 + new Thread(new HrmResourceTriggerRunnable((long) keyMap.get(key))).start(); } } catch (Exception e) { //数据异常 diff --git a/src/com/engine/organization/web/NonStandardOptController.java b/src/com/engine/organization/web/NonStandardOptController.java new file mode 100644 index 00000000..1395f38a --- /dev/null +++ b/src/com/engine/organization/web/NonStandardOptController.java @@ -0,0 +1,46 @@ +package com.engine.organization.web; + +import com.engine.common.util.ParamUtil; +import com.engine.common.util.ServiceUtil; +import com.engine.organization.util.response.ReturnResult; +import com.engine.organization.wrapper.NonStandardOptWrapper; +import weaver.general.Util; +import weaver.hrm.HrmUserVarify; +import weaver.hrm.User; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.Context; +import javax.ws.rs.core.MediaType; +import java.util.Map; + +/** + * @author:dxfeng + * @createTime: 2022/09/01 + * @version: 1.0 + */ +public class NonStandardOptController { + public NonStandardOptWrapper getNonStandardOptWrapper(User user) { + return ServiceUtil.getService(NonStandardOptWrapper.class, user); + } + + @POST + @Path("/operation") + @Produces(MediaType.APPLICATION_JSON) + public ReturnResult operation(@Context HttpServletRequest request, @Context HttpServletResponse response) { + try { + User user = HrmUserVarify.getUser(request, response); + Map map = ParamUtil.request2Map(request); + String method = Util.null2String(map.get("method")); + String ids = Util.null2String(map.get("ids")); + getNonStandardOptWrapper(user).NonStandardOpt(method, ids); + return ReturnResult.successed(); + } catch (Exception e) { + return ReturnResult.exceptionHandle(e); + } + } + +} diff --git a/src/com/engine/organization/wrapper/CompWrapper.java b/src/com/engine/organization/wrapper/CompWrapper.java index 2abff738..b694a733 100644 --- a/src/com/engine/organization/wrapper/CompWrapper.java +++ b/src/com/engine/organization/wrapper/CompWrapper.java @@ -12,6 +12,7 @@ import com.engine.organization.enums.OperateTypeEnum; import com.engine.organization.mapper.comp.CompMapper; import com.engine.organization.service.CompService; import com.engine.organization.service.impl.CompServiceImpl; +import com.engine.organization.thread.CompanyTriggerRunnable; import com.engine.organization.util.OrganizationWrapper; import com.engine.organization.util.db.MapperProxyFactory; import weaver.hrm.User; @@ -57,6 +58,7 @@ public class CompWrapper extends OrganizationWrapper { Long companyId = getCompService(user).saveBaseComp(params); writeOperateLog(new Object() { }.getClass(), params.get("comp_name").toString(), JSON.toJSONString(params), "新增分部"); + new Thread(new CompanyTriggerRunnable(companyId)).start(); return companyId; } @@ -69,8 +71,10 @@ public class CompWrapper extends OrganizationWrapper { public int updateForbiddenTagById(CompSearchParam params) { CompPO compPO = getCompMapper().listById(params.getId()); int updateForbiddenTagById = getCompService(user).updateForbiddenTagById(params); + CompPO newCompPO = getCompMapper().listById(params.getId()); writeOperateLog(new Object() { - }.getClass(), compPO.getCompName(), JSON.toJSONString(params), compPO, getCompMapper().listById(params.getId())); + }.getClass(), compPO.getCompName(), JSON.toJSONString(params), compPO, newCompPO); + new Thread(new CompanyTriggerRunnable(compPO, newCompPO)).start(); return updateForbiddenTagById; } @@ -85,8 +89,10 @@ public class CompWrapper extends OrganizationWrapper { long id = Long.parseLong(params.get("id").toString()); CompPO compPO = getCompMapper().listById(id); Long companyId = getCompService(user).updateComp(params); + CompPO newCompPO = getCompMapper().listById(id); writeOperateLog(new Object() { - }.getClass(), compPO.getCompName(), JSON.toJSONString(params), compPO, getCompMapper().listById(id)); + }.getClass(), compPO.getCompName(), JSON.toJSONString(params), compPO, newCompPO); + new Thread(new CompanyTriggerRunnable(compPO, newCompPO)).start(); return companyId; } @@ -102,6 +108,7 @@ public class CompWrapper extends OrganizationWrapper { for (CompPO compsById : compsByIds) { writeOperateLog(new Object() { }.getClass(), compsById.getCompName(), JSON.toJSONString(ids), "删除分部信息"); + new Thread(new CompanyTriggerRunnable(compsById)).start(); } return deleteByIds; } @@ -116,8 +123,10 @@ public class CompWrapper extends OrganizationWrapper { public int moveCompany(DepartmentMoveParam moveParam) { CompPO compPO = getCompMapper().listById(moveParam.getId()); int moveCompany = getCompService(user).moveCompany(moveParam); + CompPO newCompPO = getCompMapper().listById(moveParam.getId()); writeOperateLog(new Object() { - }.getClass(), compPO.getCompName(), JSON.toJSONString(moveParam), compPO, getCompMapper().listById(moveParam.getId())); + }.getClass(), compPO.getCompName(), JSON.toJSONString(moveParam), compPO, newCompPO); + new Thread(new CompanyTriggerRunnable(compPO, newCompPO)).start(); return moveCompany; } diff --git a/src/com/engine/organization/wrapper/DepartmentWrapper.java b/src/com/engine/organization/wrapper/DepartmentWrapper.java index 904a5a09..b0903d5f 100644 --- a/src/com/engine/organization/wrapper/DepartmentWrapper.java +++ b/src/com/engine/organization/wrapper/DepartmentWrapper.java @@ -15,6 +15,7 @@ import com.engine.organization.enums.OperateTypeEnum; import com.engine.organization.mapper.department.DepartmentMapper; import com.engine.organization.service.DepartmentService; import com.engine.organization.service.impl.DepartmentServiceImpl; +import com.engine.organization.thread.DepartmentTriggerRunnable; import com.engine.organization.util.OrganizationWrapper; import com.engine.organization.util.db.MapperProxyFactory; import com.engine.organization.util.page.PageInfo; @@ -96,6 +97,7 @@ public class DepartmentWrapper extends OrganizationWrapper { Long departmentId = getDepartmentService(user).saveBaseForm(params); writeOperateLog(new Object() { }.getClass(), params.get("dept_name").toString(), JSON.toJSONString(params), "新增部门"); + new Thread(new DepartmentTriggerRunnable(departmentId)).start(); return departmentId; } @@ -109,8 +111,10 @@ public class DepartmentWrapper extends OrganizationWrapper { public int updateForbiddenTagById(DeptSearchParam params) { DepartmentPO deptById = getDepartmentMapper().getDeptById(params.getId()); int updateForbiddenTagById = getDepartmentService(user).updateForbiddenTagById(params); + DepartmentPO newDeptById = getDepartmentMapper().getDeptById(params.getId()); writeOperateLog(new Object() { - }.getClass(), deptById.getDeptName(), JSON.toJSONString(params), deptById, getDepartmentMapper().getDeptById(params.getId())); + }.getClass(), deptById.getDeptName(), JSON.toJSONString(params), deptById, newDeptById); + new Thread(new DepartmentTriggerRunnable(deptById, newDeptById)).start(); return updateForbiddenTagById; } @@ -125,8 +129,10 @@ public class DepartmentWrapper extends OrganizationWrapper { long id = Long.parseLong(params.get("id").toString()); DepartmentPO deptById = getDepartmentMapper().getDeptById(id); Long departmentId = getDepartmentService(user).updateForm(params); + DepartmentPO newDeptById = getDepartmentMapper().getDeptById(id); writeOperateLog(new Object() { - }.getClass(), deptById.getDeptName(), JSON.toJSONString(params), deptById, getDepartmentMapper().getDeptById(id)); + }.getClass(), deptById.getDeptName(), JSON.toJSONString(params), deptById, newDeptById); + new Thread(new DepartmentTriggerRunnable(deptById, newDeptById)).start(); return departmentId; } @@ -142,6 +148,8 @@ public class DepartmentWrapper extends OrganizationWrapper { for (DepartmentPO departmentPO : departmentPOS) { writeOperateLog(new Object() { }.getClass(), departmentPO.getDeptName(), JSON.toJSONString(ids), "删除部门"); + // 更新组织架构图 + new Thread(new DepartmentTriggerRunnable(departmentPO)).start(); } return deleteByIds; } diff --git a/src/com/engine/organization/wrapper/JclOrgWrapper.java b/src/com/engine/organization/wrapper/JclOrgWrapper.java index 1f75a4c9..d82e7ba2 100644 --- a/src/com/engine/organization/wrapper/JclOrgWrapper.java +++ b/src/com/engine/organization/wrapper/JclOrgWrapper.java @@ -55,6 +55,6 @@ public class JclOrgWrapper extends OrganizationWrapper { } public void syncCusFieldData(String id) { - new CusFieldDataTrigger().run(StringUtils.isNotBlank(id) ? Long.parseLong(id) : null); + CusFieldDataTrigger.run(StringUtils.isNotBlank(id) ? Long.parseLong(id) : null); } } diff --git a/src/com/engine/organization/wrapper/JobWrapper.java b/src/com/engine/organization/wrapper/JobWrapper.java index 9262b54a..e25794fb 100644 --- a/src/com/engine/organization/wrapper/JobWrapper.java +++ b/src/com/engine/organization/wrapper/JobWrapper.java @@ -16,6 +16,7 @@ import com.engine.organization.enums.OperateTypeEnum; import com.engine.organization.mapper.job.JobMapper; import com.engine.organization.service.JobService; import com.engine.organization.service.impl.JobServiceImpl; +import com.engine.organization.thread.JobTriggerRunnable; import com.engine.organization.util.OrganizationFormItemUtil; import com.engine.organization.util.OrganizationWrapper; import com.engine.organization.util.db.MapperProxyFactory; @@ -111,6 +112,8 @@ public class JobWrapper extends OrganizationWrapper { Long jobId = getJobService(user).saveBaseForm(params); writeOperateLog(new Object() { }.getClass(), params.get("job_name").toString(), JSON.toJSONString(params), "新增岗位"); + // 更新组织架构图 + new Thread(new JobTriggerRunnable(jobId)).start(); return jobId; } @@ -125,8 +128,11 @@ public class JobWrapper extends OrganizationWrapper { long id = Long.parseLong(params.get("id").toString()); JobPO jobById = getJobMapper().getJobById(id); Long jobId = getJobService(user).updateForm(params); + JobPO newJobById = getJobMapper().getJobById(id); writeOperateLog(new Object() { - }.getClass(), jobById.getJobName(), JSON.toJSONString(params), jobById, getJobMapper().getJobById(id)); + }.getClass(), jobById.getJobName(), JSON.toJSONString(params), jobById, newJobById); + // 更新组织架构图 + new Thread(new JobTriggerRunnable(jobById, newJobById)).start(); return jobId; } @@ -157,8 +163,11 @@ public class JobWrapper extends OrganizationWrapper { public int updateForbiddenTagById(JobSearchParam params) { JobPO jobById = getJobMapper().getJobById(params.getId()); int updateForbiddenTagById = getJobService(user).updateForbiddenTagById(params); + JobPO newJobById = getJobMapper().getJobById(params.getId()); writeOperateLog(new Object() { - }.getClass(), jobById.getJobNo(), JSON.toJSONString(params), jobById, getJobMapper().getJobById(params.getId())); + }.getClass(), jobById.getJobNo(), JSON.toJSONString(params), jobById, newJobById); + // 更新组织架构图 + new Thread(new JobTriggerRunnable(jobById, newJobById)).start(); return updateForbiddenTagById; } @@ -175,6 +184,8 @@ public class JobWrapper extends OrganizationWrapper { for (JobPO jobPO : jobPOS) { writeOperateLog(new Object() { }.getClass(), jobPO.getJobName(), JSON.toJSONString(ids), "删除岗位"); + // 更新组织架构图 + new Thread(new JobTriggerRunnable(jobPO)).start(); } return deleteByIds; } diff --git a/src/com/engine/organization/wrapper/NonStandardOptWrapper.java b/src/com/engine/organization/wrapper/NonStandardOptWrapper.java new file mode 100644 index 00000000..99086c55 --- /dev/null +++ b/src/com/engine/organization/wrapper/NonStandardOptWrapper.java @@ -0,0 +1,22 @@ +package com.engine.organization.wrapper; + +import com.engine.common.util.ServiceUtil; +import com.engine.core.impl.Service; +import com.engine.organization.service.NonStandardOptService; +import com.engine.organization.service.impl.NonStandardOptServiceImpl; +import weaver.hrm.User; + +/** + * @author:dxfeng + * @createTime: 2022/09/01 + * @version: 1.0 + */ +public class NonStandardOptWrapper extends Service { + private NonStandardOptService getNonStandardOptService(User user) { + return ServiceUtil.getService(NonStandardOptServiceImpl.class, user); + } + + public void NonStandardOpt(String method, String ids) { + getNonStandardOptService(user).NonStandardOpt(method, ids); + } +} diff --git a/src/com/engine/organization/wrapper/SchemeWrapper.java b/src/com/engine/organization/wrapper/SchemeWrapper.java index abec2fbf..19af0bb6 100644 --- a/src/com/engine/organization/wrapper/SchemeWrapper.java +++ b/src/com/engine/organization/wrapper/SchemeWrapper.java @@ -136,6 +136,10 @@ public class SchemeWrapper extends OrganizationWrapper { return getSchemeService(user).getTableBtn(); } + /** + * 等级方案树 + * @return + */ public List getTreeData() { return getSchemeService(user).getTreeData(); }