insert into jcl_org_cardbutton (name, status, url, sys_default, creator, delete_type, create_time, update_time) values ('ÈËÔ±¼òÀú', 1, '/spa/organization/static/index.html#/main/organization/personnelResume/${id}', 0, 1, 0, GETDATE(), GETDATE())
GO


CREATE TABLE [dbo].[JCL_ORG_SEARCH_TEMPLATE] (
[id] int  IDENTITY(1,1) NOT NULL,
[name] varchar(255) NOT NULL,
[basic_fields] text NULL,
[personal_fields] text NULL,
[work_fields] text NULL,
[isused] int  NULL,
[creator] int  NULL,
[create_time] datetime  NULL,
[update_time] datetime  NULL
)
GO

ALTER TABLE [dbo].[JCL_ORG_SEARCH_TEMPLATE] SET (LOCK_ESCALATION = TABLE)
GO

ALTER TABLE [dbo].[JCL_ORG_SEARCH_TEMPLATE] ADD CONSTRAINT [JCL_ORG_SEARCH_TEMPLATE_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


CREATE TABLE [dbo].[JCL_ORG_CUSTOM_TEMPLATE] (
[id] int  IDENTITY(1,1) NOT NULL,
[name] varchar(255) NOT NULL,
[basic_fields] text NULL,
[personal_fields] text NULL,
[work_fields] text NULL,
[isused] int  NULL,
[creator] int  NULL,
[create_time] datetime  NULL,
[update_time] datetime  NULL
)
GO

ALTER TABLE [dbo].[JCL_ORG_CUSTOM_TEMPLATE] SET (LOCK_ESCALATION = TABLE)
GO

ALTER TABLE [dbo].[JCL_ORG_CUSTOM_TEMPLATE] ADD CONSTRAINT [JCL_ORG_CUSTOM_TEMPLATE_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

alter table jcl_org_cardaccess alter column type_name varchar(1000)
GO

UPDATE datashowset SET SQLTEXT ='select * from jcl_org_grade where delete_type = 0 and forbidden_tag = 0 ' WHERE SHOWNAME ='gradeBrowser'
GO

update WORKFLOW_BROWSERURL set tablename ='JCL_ORG_JOB a inner join HrmJobTitles b on a.ec_jobTitle = b.id',columname ='jobtitlename',keycolumname ='a.id' where id = 666
GO