!179 SqlServer脚本完善

Merge pull request !179 from dxfeng/feature/dxf
pull/180/MERGE
dxfeng 3 years ago committed by Gitee
commit ec6dd50672
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -18,13 +18,8 @@ inner join JCL_ORG_COMP as t3 on t2.parentuuid=t3.uuid
go go
insert into JCL_ORG_DEPT(dept_no, dept_name, dept_name_short,parent_comp, insert into JCL_ORG_DEPT(dept_no, dept_name, dept_name_short,parent_comp,show_order,forbidden_tag,creator,delete_type,create_time,uuid)
dept_principal,show_order,forbidden_tag,creator,delete_type,create_time,uuid) select a.departmentcode,a.departmentname,a.departmentmark,a.subcompanyid1,a.showorder,isnull(a.canceled,0),1,0,getdate(),uuid
select a.departmentcode,a.departmentname,a.departmentmark,a.subcompanyid1,
cast(case charindex(',',b.bmfzr)
when 0 then cast(b.bmfzr as varchar(2000))
else left(cast(b.bmfzr as varchar(2000)),charindex(',',b.bmfzr)-1)
end as int) ,a.showorder,isnull(a.canceled,0),1,0,getdate(),uuid
from HrmDepartment as a from HrmDepartment as a
left join HrmDepartmentDefined as b on a.id=b.deptid left join HrmDepartmentDefined as b on a.id=b.deptid
go go

@ -432,6 +432,8 @@ CREATE TABLE [dbo].[JCL_ORG_JOB] (
[work_authority] text COLLATE Chinese_PRC_CI_AS NULL, [work_authority] text COLLATE Chinese_PRC_CI_AS NULL,
[forbidden_tag] int NULL, [forbidden_tag] int NULL,
[show_order] int NULL, [show_order] int NULL,
[grade_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL,
[level_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL,
[is_used] int NULL, [is_used] int NULL,
[creator] int NULL, [creator] int NULL,
[delete_type] int NULL, [delete_type] int NULL,
@ -496,7 +498,11 @@ CREATE TABLE [dbo].[JCL_ORG_JOBEXT_DT1] (
[creator] int NULL, [creator] int NULL,
[delete_type] int NULL, [delete_type] int NULL,
[create_time] datetime NULL, [create_time] datetime NULL,
[update_time] datetime NULL [update_time] datetime NULL,
[post_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL,
[post_idspan] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL,
[post_info_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL,
[post_info_idspan] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL
) )
GO GO

Loading…
Cancel
Save