Merge remote-tracking branch 'origin/release/2.8.4.2306.02' into release/2.8.4.2306.02

This commit is contained in:
Harryxzy 2023-06-29 15:14:10 +08:00
commit d10d5da364
51 changed files with 3262 additions and 8 deletions

View File

@ -0,0 +1,340 @@
delete from HtmlLabelIndex where id = 537997 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 537997,'薪酬管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 537997 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 537997 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537997 as indexid ,'薪酬管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537997 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 537997 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537997 as indexid ,'Salary management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537997 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 537997 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537997 as indexid ,'薪酬管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537997 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 537998 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 537998,'我的薪资福利' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 537998 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 537998 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537998 as indexid ,'我的薪资福利' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537998 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 537998 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537998 as indexid ,'My salary and benefits' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537998 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 537998 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537998 as indexid ,'我的薪資福利' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537998 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 537996 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 537996,'个税扣缴义务人' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 537996 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 537996 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537996 as indexid ,'个税扣缴义务人' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537996 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 537996 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537996 as indexid ,'Individual income tax withholding agent' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537996 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 537996 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537996 as indexid ,'個稅扣繳義務人' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537996 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 537999 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 537999,'社保福利' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 537999 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 537999 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537999 as indexid ,'社保福利' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537999 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 537999 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537999 as indexid ,'Social security benefits' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537999 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 537999 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 537999 as indexid ,'社保福利' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 537999 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538000 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538000,'社保福利方案' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538000 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538000 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538000 as indexid ,'社保福利方案' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538000 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538000 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538000 as indexid ,'Social security welfare scheme' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538000 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538000 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538000 as indexid ,'社保福利方案' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538000 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538001 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538001,'社保福利档案' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538001 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538001 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538001 as indexid ,'社保福利档案' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538001 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538001 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538001 as indexid ,'Social security benefit file' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538001 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538001 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538001 as indexid ,'社保福利檔案' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538001 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538002 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538002,'社保福利台账' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538002 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538002 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538002 as indexid ,'社保福利台账' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538002 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538002 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538002 as indexid ,'Social security benefit account' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538002 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538002 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538002 as indexid ,'社保福利台賬' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538002 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538003 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538003,'薪资项目管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538003 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538003 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538003 as indexid ,'薪资项目管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538003 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538003 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538003 as indexid ,'Salary item management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538003 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538003 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538003 as indexid ,'薪資項目管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538003 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538004 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538004,'薪资档案' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538004 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538004 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538004 as indexid ,'薪资档案' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538004 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538004 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538004 as indexid ,'Salary file' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538004 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538004 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538004 as indexid ,'薪資檔案' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538004 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538005 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538005,'数据采集' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538005 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538005 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538005 as indexid ,'数据采集' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538005 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538005 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538005 as indexid ,'data acquisition' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538005 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538005 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538005 as indexid ,'數據採集' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538005 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538006 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538006,'累计专项附加扣除' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538006 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538006 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538006 as indexid ,'累计专项附加扣除' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538006 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538006 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538006 as indexid ,'Accumulated special additional deduction' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538006 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538006 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538006 as indexid ,'累計專項附加扣除' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538006 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538007 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538007,'其他免税扣除' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538007 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538007 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538007 as indexid ,'其他免税扣除' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538007 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538007 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538007 as indexid ,'Other tax exempt deductions' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538007 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538007 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538007 as indexid ,'其他免稅扣除' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538007 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538008 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538008,'往期累计情况' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538008 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538008 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538008 as indexid ,'往期累计情况' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538008 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538008 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538008 as indexid ,'Cumulative situation in previous periods' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538008 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538008 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538008 as indexid ,'往期累計情況' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538008 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538009 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538009,'考勤引用' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538009 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538009 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538009 as indexid ,'考勤引用' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538009 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538009 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538009 as indexid ,'Attendance reference' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538009 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538009 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538009 as indexid ,'考勤引用' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538009 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538010 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538010,'薪资账套' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538010 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538010 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538010 as indexid ,'薪资账套' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538010 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538010 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538010 as indexid ,'Salary a / C set' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538010 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538010 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538010 as indexid ,'薪資賬套' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538010 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538011 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538011,'薪资核算' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538011 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538011 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538011 as indexid ,'薪资核算' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538011 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538011 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538011 as indexid ,'Salary accounting' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538011 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538011 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538011 as indexid ,'薪資核算' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538011 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538012 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538012,'工资单发放' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538012 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538012 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538012 as indexid ,'工资单发放' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538012 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538012 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538012 as indexid ,'Payroll payment' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538012 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538012 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538012 as indexid ,'工資單發放' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538012 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538013 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538013,'个税申报表' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538013 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538013 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538013 as indexid ,'个税申报表' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538013 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538013 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538013 as indexid ,'Individual income tax return' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538013 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538013 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538013 as indexid ,'個稅申報表' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538013 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 538014 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 538014,'个税税率表' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 538014 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538014 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538014 as indexid ,'个税税率表' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538014 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 538014 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538014 as indexid ,'Individual income tax rate table' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538014 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 538014 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 538014 as indexid ,'個稅稅率表' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 538014 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;

View File

@ -0,0 +1,197 @@
Delete from LeftMenuInfo where id=100118
;
Delete from LeftMenuConfig where infoid=100118
;
select LMConfig_U_ByInfoInsert (1,0,-1)
;
select LMInfo_Insert (100118,537997,NULL,NULL,1,0,-1,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='' where id = 100118
;
Delete from LeftMenuInfo where id=100132
;
Delete from LeftMenuConfig where infoid=100132
;
select LMConfig_U_ByInfoInsert (2,100118,5)
;
select LMInfo_Insert (100132,538011,'','',2,100118,5,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/calculate' where id = 100132
;
Delete from LeftMenuInfo where id=100125
;
Delete from LeftMenuConfig where infoid=100125
;
select LMConfig_U_ByInfoInsert (2,100118,2)
;
select LMInfo_Insert (100125,538004,'','',2,100118,2,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/salaryFile' where id = 100125
;
Delete from LeftMenuInfo where id=100130
;
Delete from LeftMenuConfig where infoid=100130
;
select LMConfig_U_ByInfoInsert (2,100126,0)
;
select LMInfo_Insert (100130,538009,'','',2,100126,0,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/dataAcquisition/attendance' where id = 100130
;
Delete from LeftMenuInfo where id=100129
;
Delete from LeftMenuConfig where infoid=100129
;
select LMConfig_U_ByInfoInsert (2,100126,0)
;
select LMInfo_Insert (100129,538008,'','',2,100126,0,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/dataAcquisition/cumSituation' where id = 100129
;
Delete from LeftMenuInfo where id=100120
;
Delete from LeftMenuConfig where infoid=100120
;
select LMConfig_U_ByInfoInsert (2,100118,0)
;
select LMInfo_Insert (100120,537999,'','',2,100118,0,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='' where id = 100120
;
Delete from LeftMenuInfo where id=100123
;
Delete from LeftMenuConfig where infoid=100123
;
select LMConfig_U_ByInfoInsert (2,100120,1)
;
select LMInfo_Insert (100123,538002,'','',2,100120,1,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/socialSecurityBenefits/standingBook' where id = 100123
;
Delete from LeftMenuInfo where id=100122
;
Delete from LeftMenuConfig where infoid=100122
;
select LMConfig_U_ByInfoInsert (2,100120,0)
;
select LMInfo_Insert (100122,538001,'','',2,100120,0,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/socialSecurityBenefits/archives' where id = 100122
;
Delete from LeftMenuInfo where id=100135
;
Delete from LeftMenuConfig where infoid=100135
;
select LMConfig_U_ByInfoInsert (2,100118,8)
;
select LMInfo_Insert (100135,537996,'','',2,100118,8,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/taxAgent' where id = 100135
;
Delete from LeftMenuInfo where id=100121
;
Delete from LeftMenuConfig where infoid=100121
;
select LMConfig_U_ByInfoInsert (2,100120,-1)
;
select LMInfo_Insert (100121,538000,'','',2,100120,-1,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/socialSecurityBenefits/programme' where id = 100121
;
Delete from LeftMenuInfo where id=100126
;
Delete from LeftMenuConfig where infoid=100126
;
select LMConfig_U_ByInfoInsert (2,100118,3)
;
select LMInfo_Insert (100126,538005,'','',2,100118,3,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='' where id = 100126
;
Delete from LeftMenuInfo where id=100127
;
Delete from LeftMenuConfig where infoid=100127
;
select LMConfig_U_ByInfoInsert (2,100126,-1)
;
select LMInfo_Insert (100127,538006,'','',2,100126,-1,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/dataAcquisition/cumDeduct' where id = 100127
;
Delete from LeftMenuInfo where id=100133
;
Delete from LeftMenuConfig where infoid=100133
;
select LMConfig_U_ByInfoInsert (2,100118,6)
;
select LMInfo_Insert (100133,538012,'','',2,100118,6,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/payroll' where id = 100133
;
Delete from LeftMenuInfo where id=100128
;
Delete from LeftMenuConfig where infoid=100128
;
select LMConfig_U_ByInfoInsert (2,100126,0)
;
select LMInfo_Insert (100128,538007,'','',2,100126,0,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/dataAcquisition/otherDeduct' where id = 100128
;
Delete from LeftMenuInfo where id=100119
;
Delete from LeftMenuConfig where infoid=100119
;
select LMConfig_U_ByInfoInsert (2,100118,-1)
;
select LMInfo_Insert (100119,537998,'','',2,100118,-1,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/mySalary' where id = 100119
;
Delete from LeftMenuInfo where id=100131
;
Delete from LeftMenuConfig where infoid=100131
;
select LMConfig_U_ByInfoInsert (2,100118,4)
;
select LMInfo_Insert (100131,538010,'','',2,100118,4,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/ledger' where id = 100131
;
Delete from LeftMenuInfo where id=100124
;
Delete from LeftMenuConfig where infoid=100124
;
select LMConfig_U_ByInfoInsert (2,100118,1)
;
select LMInfo_Insert (100124,538003,'','',2,100118,1,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/salaryItem' where id = 100124
;
Delete from LeftMenuInfo where id=100134
;
Delete from LeftMenuConfig where infoid=100134
;
select LMConfig_U_ByInfoInsert (2,100118,7)
;
select LMInfo_Insert (100134,538013,'','',2,100118,7,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/declare' where id = 100134
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,9 @@
ALTER TABLE hrsa_add_up_situation
ADD COLUMN add_up_illness_medical varchar(255) NULL ,
ADD COLUMN add_up_tax_savings varchar(255) NULL ,
ADD COLUMN add_up_infant_care varchar(255) NULL ;
ALTER TABLE hrsa_add_up_deduction
ADD COLUMN add_up_illness_medical varchar(255) NULL ,
ADD COLUMN add_up_infant_care varchar(255) NULL ;

View File

@ -0,0 +1,26 @@
INSERT INTO hrsa_formula (id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1653993466778, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{累计专项附加扣除.累计住房贷款利息}', 'addUpDeductions_addUpHousingLoanInterest', 1, 0, '2022-05-31 18:37:47', '2022-05-31 18:37:47');
INSERT INTO hrsa_formula_var ( id , name , formula_id , field_id , field_name , field_type , source , order_index , creator , delete_type , create_time , update_time ) VALUES (1653993466787, '累计住房贷款利息', 1653993466778, 'addUpDeductions_addUpHousingLoanInterest', '{累计专项附加扣除.累计住房贷款利息}', 'number', 'addUpDeductions', 0, 1, 0, '2022-05-31 18:37:47', '2022-05-31 18:37:47');
INSERT INTO hrsa_formula ( id , name , description , module , use_for , reference_type , return_type , validate_type , extend_param , formula , formulaRunScript , creator , delete_type , create_time , update_time ) VALUES (1653993837931, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{累计专项附加扣除.累计住房租金}', 'addUpDeductions_addUpHousingRent', 1, 0, '2022-05-31 18:43:58', '2022-05-31 18:43:58');
INSERT INTO hrsa_formula_var ( id , name , formula_id , field_id , field_name , field_type , source , order_index , creator , delete_type , create_time , update_time ) VALUES (1653993837947, '累计住房租金', 1653993837931, 'addUpDeductions_addUpHousingRent', '{累计专项附加扣除.累计住房租金}', 'number', 'addUpDeductions', 0, 1, 0, '2022-05-31 18:43:58', '2022-05-31 18:43:58');
INSERT INTO hrsa_formula ( id , name , description , module , use_for , reference_type , return_type , validate_type , extend_param , formula , formulaRunScript , creator , delete_type , create_time , update_time ) VALUES (1653993954233, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{累计专项附加扣除.累计继续教育}', 'addUpDeductions_addUpContinuingEducation', 1, 0, '2022-05-31 18:45:54', '2022-05-31 18:45:54');
INSERT INTO hrsa_formula_var ( id , name , formula_id , field_id , field_name , field_type , source , order_index , creator , delete_type , create_time , update_time ) VALUES (1653993954257, '累计继续教育', 1653993954233, 'addUpDeductions_addUpContinuingEducation', '{累计专项附加扣除.累计继续教育}', 'number', 'addUpDeductions', 0, 1, 0, '2022-05-31 18:45:54', '2022-05-31 18:45:54');
INSERT INTO hrsa_formula ( id , name , description , module , use_for , reference_type , return_type , validate_type , extend_param , formula , formulaRunScript , creator , delete_type , create_time , update_time ) VALUES (1653994061764, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{累计专项附加扣除.累计赡养老人}', 'addUpDeductions_addUpSupportElderly', 1, 0, '2022-05-31 18:47:42', '2022-05-31 18:47:42');
INSERT INTO hrsa_formula_var ( id , name , formula_id , field_id , field_name , field_type , source , order_index , creator , delete_type , create_time , update_time ) VALUES (1653994061780, '累计赡养老人', 1653994061764, 'addUpDeductions_addUpSupportElderly', '{累计专项附加扣除.累计赡养老人}', 'number', 'addUpDeductions', 0, 1, 0, '2022-05-31 18:47:42', '2022-05-31 18:47:42');
update hrsa_sys_salary_item set formula_id = 1653993466778 where id = 674853617092214800;
update hrsa_sys_salary_item set formula_id = 1653993837931 where id = 674853617092214801;
update hrsa_sys_salary_item set formula_id = 1653993954233 where id = 674853617092214802;
update hrsa_sys_salary_item set formula_id = 1653994061764 where id = 674853617092214803;
update hrsa_salary_item set formula_id = 1653993466778 where sys_salary_item_id = 674853617092214800;
update hrsa_salary_item set formula_id = 1653993837931 where sys_salary_item_id = 674853617092214801;
update hrsa_salary_item set formula_id = 1653993954233 where sys_salary_item_id = 674853617092214802;
update hrsa_salary_item set formula_id = 1653994061764 where sys_salary_item_id = 674853617092214803;

View File

@ -0,0 +1,125 @@
CREATE TABLE hrsa_tax_agent_emp
(
id bigint NOT NULL ,
create_time timestamp NULL DEFAULT NULL ,
update_time timestamp NULL DEFAULT NULL ,
creator bigint NULL DEFAULT NULL ,
delete_type int NULL DEFAULT 0,
tenant_key varchar(10) NULL DEFAULT NULL ,
tax_agent_id bigint NULL DEFAULT NULL ,
employee_id bigint NULL DEFAULT NULL ,
employee_name varchar(255) NULL DEFAULT NULL,
PRIMARY KEY (id)
) ;
CREATE TABLE hrsa_tax_agent_emp_change
(
id bigint NOT NULL ,
create_time timestamp NULL DEFAULT NULL ,
update_time timestamp NULL DEFAULT NULL ,
creator bigint NULL DEFAULT NULL ,
delete_type int NULL DEFAULT 0 ,
tenant_key varchar(10) NULL DEFAULT NULL ,
tax_agent_id bigint NOT NULL ,
employee_id bigint NOT NULL ,
change_type int NOT NULL DEFAULT 0 ,
employee_name varchar(255) NULL DEFAULT NULL,
module_type int NOT NULL DEFAULT 0,
PRIMARY KEY (id)
) ;
CREATE TABLE hrsa_tax_agent_admin
(
id bigint NOT NULL ,
tax_agent_id bigint NOT NULL ,
employee_id bigint NOT NULL ,
create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP (0) ,
update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP (0) ,
creator bigint NOT NULL DEFAULT 0 ,
delete_type int NOT NULL DEFAULT 0 ,
tenant_key varchar(10) NOT NULL DEFAULT '' ,
PRIMARY KEY (id)
) ;
CREATE TABLE hrsa_tax_agent_manage_range
(
id bigint NOT NULL ,
tax_agent_id bigint NOT NULL DEFAULT 0 ,
employee_id bigint NOT NULL DEFAULT 0 ,
tax_agent_sub_admin_id bigint NOT NULL DEFAULT 0 ,
target_type smallint NOT NULL DEFAULT 1 ,
target_id bigint NOT NULL DEFAULT 0 ,
employee_status varchar(100) NOT NULL,
include_type int NOT NULL DEFAULT 1,
creator bigint NOT NULL DEFAULT 0 ,
create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP (0) ,
update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP (0) ,
delete_type int NOT NULL DEFAULT 0 ,
tenant_key varchar(10) NOT NULL DEFAULT '' ,
range_type int NOT NULL DEFAULT 0,
PRIMARY KEY (id)
) ;
CREATE TABLE hrsa_tax_agent_base
(
id bigint NOT NULL ,
devolution_status int NOT NULL DEFAULT 0 ,
create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP (0) ,
update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP (0) ,
creator bigint NOT NULL DEFAULT 0 ,
delete_type int NOT NULL DEFAULT 0 ,
tenant_key varchar(10) NOT NULL DEFAULT '' ,
PRIMARY KEY (id)
) ;
CREATE TABLE hrsa_tax_agent_sub_admin
(
id bigint NOT NULL ,
tax_agent_id bigint NOT NULL ,
employee_id bigint NOT NULL ,
description varchar(100) NULL DEFAULT NULL ,
create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
creator bigint NOT NULL DEFAULT 0 ,
delete_type int NOT NULL DEFAULT 0 ,
tenant_key varchar(10) NOT NULL DEFAULT '' ,
remark text NULL,
PRIMARY KEY (id)
) ;
CREATE TABLE hrsa_tax_agent_sub_admin_emp
(
id bigint NOT NULL ,
create_time timestamp NULL DEFAULT NULL ,
update_time timestamp NULL DEFAULT NULL ,
creator bigint NULL DEFAULT NULL ,
delete_type int NULL DEFAULT 0 ,
tenant_key varchar(10) NULL DEFAULT NULL ,
tax_agent_id bigint NOT NULL DEFAULT 0 ,
tax_agent_sub_admin_id bigint NOT NULL DEFAULT 0 ,
employee_id bigint NOT NULL DEFAULT 0 ,
employee_name varchar(255) NULL DEFAULT NULL ,
PRIMARY KEY (id)
) ;
ALTER TABLE hrsa_tax_agent ADD COLUMN payment_agency varchar(255) NULL ;
ALTER TABLE hrsa_salary_sob ADD COLUMN tax_agent_id bigint NULL ;
INSERT INTO hrsa_tax_agent_base(id, devolution_status, create_time, update_time, creator, delete_type, tenant_key) VALUES (1653303537239, 1, '2022-05-23 18:58:53', '2022-05-23 19:12:12', 1, 0, 'all_teams');
ALTER TABLE hrsa_bill_detail_temp ADD COLUMN payment_organization bigint NULL ;
ALTER TABLE hrsa_bill_detail ADD COLUMN payment_organization bigint NULL ;
ALTER TABLE hrsa_bill_batch ADD COLUMN payment_organization bigint NULL ;

View File

@ -0,0 +1,3 @@
ALTER TABLE hrsa_tax_declaration ADD COLUMN income_category int NOT NULL ;
ALTER TABLE hrsa_tax_declaration_detail ADD COLUMN employee_type int NOT NULL ;

View File

@ -0,0 +1,21 @@
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (705641858303836162, '累计婴幼儿照护', 'addUpInfantCare', 1, 7, 1, 1, 0, 2, 2, 2, 0, 1655196897860, '', 0, 1, 0, 0, 'all_teams', '2022-05-31 17:36:04', '2022-05-31 17:36:04', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (703419929857687552, '当前累计免税收入', 'addUpTaxFreeIncome', 1, 7, 1, 1, 0, 2, 2, 2, 0, 1655197296054, '', 0, 1, 0, 0, 'all_teams', '2022-03-11 13:50:17', '2022-03-17 16:13:27', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (705641858303836161, '累计大病医疗', 'addUpIllnessMedical', 1, 7, 1, 1, 0, 2, 2, 2, 0, 1655197430967, '', 0, 1, 0, 0, 'all_teams', '2022-03-17 13:30:57', '2022-03-18 17:06:46', 'number');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1655196897860, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{累计专项附加扣除.累计婴幼儿照护}', 'addUpDeductions_addUpInfantCare', 92, 0, '2022-06-14 16:54:58', '2022-06-14 16:54:58');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1655197296054, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.本月(次)免税收入}+{往期累计情况.累计免税收入}', 'salaryItem_taxFreeIncome+addUpSituation_addUpTaxExemptIncome', 92, 0, '2022-06-14 17:01:36', '2022-06-14 17:01:36');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1655197430967, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{累计专项附加扣除.累计大病医疗}', 'addUpDeductions_addUpIllnessMedical', 92, 0, '2022-06-14 17:03:51', '2022-06-14 17:03:51');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1655196897869, '累计婴幼儿照护', 1655196897860, 'addUpDeductions_addUpInfantCare', '{累计专项附加扣除.累计婴幼儿照护}', 'number', 'addUpDeductions', 0, 92, 0, '2022-06-14 16:54:58', '2022-06-14 16:54:58');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1655197296059, '本月(次)免税收入', 1655197296054, 'salaryItem_taxFreeIncome', '{薪资项目.本月(次)免税收入}', 'number', 'salaryItem', 0, 92, 0, '2022-06-14 17:01:36', '2022-06-14 17:01:36');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1655197296063, '累计免税收入', 1655197296054, 'addUpSituation_addUpTaxExemptIncome', '{往期累计情况.累计免税收入}', 'number', 'addUpSituation', 1, 92, 0, '2022-06-14 17:01:36', '2022-06-14 17:01:36');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1655197430986, '累计大病医疗', 1655197430967, 'addUpDeductions_addUpIllnessMedical', '{累计专项附加扣除.累计大病医疗}', 'number', 'addUpDeductions', 0, 92, 0, '2022-06-14 17:03:51', '2022-06-14 17:03:51');
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (728615865977528321, 1, 705641858303836162, 1, 0, 0, '2022-05-31 17:36:04', '2022-05-31 17:36:04', 0, 'all_teams', 703433961629614103, 7);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845569, 1, 674853617092214787, 1, 1, 0, '2022-06-14 14:52:53', '2022-06-14 14:52:53', 0, 'all_teams', 703433961629614083, 8);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845572, 1, 674853617092214788, 1, 1, 0, '2022-06-14 14:52:53', '2022-06-14 14:52:53', 0, 'all_teams', 703433961629614083, 9);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845578, 1, 674853617092214789, 1, 1, 0, '2022-06-14 14:52:53', '2022-06-14 14:52:53', 0, 'all_teams', 703433961629614083, 10);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845567, 1, 733975748932845568, 1, 1, 0, '2022-06-14 14:52:53', '2022-06-14 14:52:53', 0, 'all_teams', 703433961629614083, 11);

View File

@ -0,0 +1,30 @@
delete from SystemRightDetail where rightid =2693
;
delete from SystemRightsLanguage where id =2693
;
delete from SystemRights where id =2693
;
delete from SystemRightToGroup where rightid =2693
;
delete from SystemRightType where id =36
;
delete from SystemRightGroups where id =-22
;
insert into SystemRights (id,rightdesc,righttype,detachable) values (2693,'薪酬管理权限','36',0)
;
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2693,8,'Salary management authority','Salary management authority')
;
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2693,9,'薪酬管理權限','薪酬管理權限')
;
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2693,7,'薪酬管理权限','薪酬管理权限')
;
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (43969,'薪酬总管理员','Salary:Chief',2693)
;
insert into SystemRightToGroup(rightid,groupid) values (2693,-22)
;
insert into SystemRightGroups (id,rightgroupmark, rightgroupname, rightgroupremark) values(-22,'SALARY','薪酬管理权限组','薪酬管理')
;
insert into SystemRightType(id,rightTypeName,rightTypeDesc) VALUES (36,'薪酬管理','薪酬管理')
;

View File

@ -0,0 +1,15 @@
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1655976865885, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.累计子女教育}+{薪资项目.累计住房贷款利息}+{薪资项目.累计住房租金}+{薪资项目.累计继续教育}+{薪资项目.累计赡养老人}+{薪资项目.累计大病医疗}+{薪资项目.累计婴幼儿照护}', 'salaryItem_addUpChildEducation+salaryItem_addUpHousingLoanInterest+salaryItem_addUpHousingRent+salaryItem_addUpContinuingEducation+salaryItem_addUpSupportElderly+salaryItem_addUpIllnessMedical+salaryItem_addUpInfantCare', 92, 0, '2022-06-23 17:34:26', '2022-06-23 17:34:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1655976865909, '累计赡养老人', 1655976865885, 'salaryItem_addUpSupportElderly', '{薪资项目.累计赡养老人}', 'number', 'salaryItem', 4, 92, 0, '2022-06-23 17:34:26', '2022-06-23 17:34:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1655976865913, '累计继续教育', 1655976865885, 'salaryItem_addUpContinuingEducation', '{薪资项目.累计继续教育}', 'number', 'salaryItem', 3, 92, 0, '2022-06-23 17:34:26', '2022-06-23 17:34:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1655976865917, '累计住房租金', 1655976865885, 'salaryItem_addUpHousingRent', '{薪资项目.累计住房租金}', 'number', 'salaryItem', 2, 92, 0, '2022-06-23 17:34:26', '2022-06-23 17:34:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1655976865921, '累计住房贷款利息', 1655976865885, 'salaryItem_addUpHousingLoanInterest', '{薪资项目.累计住房贷款利息}', 'number', 'salaryItem', 1, 92, 0, '2022-06-23 17:34:26', '2022-06-23 17:34:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1655976865924, '累计子女教育', 1655976865885, 'salaryItem_addUpChildEducation', '{薪资项目.累计子女教育}', 'number', 'salaryItem', 0, 92, 0, '2022-06-23 17:34:26', '2022-06-23 17:34:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1655976865929, '累计大病医疗', 1655976865885, 'salaryItem_addUpIllnessMedical', '{薪资项目.累计大病医疗}', 'number', 'salaryItem', 5, 92, 0, '2022-06-23 17:34:26', '2022-06-23 17:34:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1655976865933, '累计婴幼儿照护', 1655976865885, 'salaryItem_addUpInfantCare', '{薪资项目.累计婴幼儿照护}', 'number', 'salaryItem', 6, 92, 0, '2022-06-23 17:34:26', '2022-06-23 17:34:26');
update hrsa_sys_salary_item set formula_id = 1655976865885 where id = 674853617092214804;
update hrsa_salary_item set formula_id = 1655976865885 where sys_salary_item_id = 674853617092214804;

View File

@ -0,0 +1,22 @@
CREATE TABLE hrsa_salary_acct_result_report
(
id bigint NOT NULL,
salary_sob_id bigint NOT NULL DEFAULT 0 ,
salary_acct_emp_id varchar(200) NOT NULL DEFAULT '' ,
salary_acct_record_id bigint NOT NULL DEFAULT 0 ,
employee_id varchar(200) NULL DEFAULT '' ,
tax_agent_id bigint NOT NULL DEFAULT 0 ,
salary_item_id bigint NOT NULL DEFAULT 0 ,
result_value varchar(1000) NOT NULL DEFAULT '' ,
creator bigint NOT NULL DEFAULT 0 ,
create_time timestamp NULL DEFAULT NULL ,
update_time timestamp NULL DEFAULT NULL ,
delete_type int NOT NULL DEFAULT 0 ,
tenant_key varchar(10) NOT NULL DEFAULT '' ,
department_id bigint NULL DEFAULT NULL ,
subcompany_id bigint NULL DEFAULT NULL ,
costcenter_id bigint NULL DEFAULT NULL ,
jobtitle_id bigint NULL DEFAULT NULL ,
location_id bigint NULL DEFAULT NULL ,
PRIMARY KEY (id)
);

View File

@ -0,0 +1,14 @@
CREATE TABLE hrsa_salary_sys_conf
(
id bigint NOT NULL,
conf_key varchar(200) NOT NULL ,
conf_value varchar(500) NOT NULL ,
title varchar(200) NULL DEFAULT NULL ,
module varchar(200) NULL DEFAULT NULL ,
order_weight int NULL DEFAULT NULL ,
description varchar(200) NULL DEFAULT NULL ,
delete_type int NULL DEFAULT NULL ,
create_time timestamp NULL DEFAULT NULL ,
update_time timestamp NULL DEFAULT NULL ,
PRIMARY KEY (id)
) ;

View File

@ -0,0 +1,4 @@
ALTER TABLE hrsa_salary_archive
ADD COLUMN tax_agent_id bigint NULL ,
ADD COLUMN pay_start_date timestamp NULL DEFAULT NULL ,
ADD COLUMN pay_end_date timestamp NULL DEFAULT NULL ;

View File

@ -0,0 +1,97 @@
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (700599184238075904, '社保个人合计', 'socialSecurityTotal', 1, 7, 1, 1, 0, 2, 2, 2, 7, 1659339100298, '', 0, 1, 0, 0, 'all_teams', '2022-06-17 09:01:56', '2022-08-01 17:01:24', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (700599446244319233, '公积金个人合计', 'accumulationFundTotal', 1, 7, 1, 1, 0, 2, 2, 2, 7, 1659339063868, '', 0, 1, 0, 0, 'all_teams', '2022-06-17 09:01:56', '2022-08-01 17:01:26', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (703458434280095745, '劳务收入', 'laborIncome', 1, 7, 4, 1, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-06-17 09:01:56', '2022-08-01 16:55:45', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (703458558739300353, '劳务免税收入', 'laborTaxFreeIncome', 1, 7, 4, 1, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-06-17 09:01:57', '2022-08-01 16:55:54', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (703459151591383041, '备注', 'description', 1, 7, 1, 1, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-06-17 09:01:57', '2022-06-17 09:01:57', 'string')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (703459464954929153, '所得项目', 'incomeItems', 1, 7, 1, 1, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-06-17 09:01:57', '2022-06-17 09:01:57', 'string')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (704467747234045953, '劳务税减除费用', 'laborSubtraction', 1, 7, 4, 1, 0, 2, 2, 2, 1, 1659340673739, '', 0, 1, 0, 0, 'all_teams', '2022-06-17 09:01:57', '2022-08-01 17:03:47', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (704468391612751873, '劳务税应纳税所得额', 'laborTaxableIncome', 1, 7, 4, 1, 0, 2, 2, 2, 1, 1659340916981, '', 0, 1, 0, 0, 'all_teams', '2022-06-17 09:01:58', '2022-08-01 17:03:51', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (704468443048992769, '劳务税税率', 'laborTaxRate', 1, 7, 4, 1, 0, 2, 2, 2, 1, 1659341397524, '', 0, 1, 0, 0, 'all_teams', '2022-06-17 09:01:58', '2022-08-01 17:03:53', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (704468490269204481, '劳务税速算扣除数', 'laborQuickDeductionFactor', 1, 7, 4, 1, 0, 2, 2, 2, 1, 1659341564390, '', 0, 1, 0, 0, 'all_teams', '2022-06-17 09:01:58', '2022-08-01 17:03:54', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (704468528928063488, '劳务税应纳税额', 'laborTaxPayable', 1, 7, 4, 1, 0, 2, 2, 2, 1, 1659341811881, '', 0, 1, 0, 0, 'all_teams', '2022-06-17 09:01:59', '2022-08-01 17:03:55', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (733975748932845568, '个税调差', 'taxAdjustment', 1, 7, 1, 1, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-06-17 09:01:59', '2022-06-17 09:01:59', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629570, '商业健康保险劳务', 'commercialHealthInsurance4', 1, 7, 4, 0, 0, 2, 2, 2, 8, 1659341909423, '', 0, 1, 0, 0, 'all_teams', '2022-07-21 14:00:00', '2022-08-01 17:00:38', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629571, '税延养老保险劳务', 'taxDeferredEndowmentInsurance4', 1, 7, 4, 0, 0, 2, 2, 2, 8, 1659341966905, '', 0, 1, 0, 0, 'all_teams', '2022-07-21 14:00:00', '2022-08-01 17:00:40', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629572, '其他劳务', 'other4', 1, 7, 4, 0, 0, 2, 2, 2, 8, 1659341993723, '', 0, 1, 0, 0, 'all_teams', '2022-07-21 14:00:00', '2022-08-01 17:00:41', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629573, '本月(次)准予扣除的捐赠额劳务', 'allowedDonation4', 1, 7, 4, 0, 0, 2, 2, 2, 8, 1659342041963, '', 0, 1, 0, 0, 'all_teams', '2022-07-21 14:00:00', '2022-08-01 17:00:42', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629574, '备注劳务', 'description4', 1, 7, 4, 1, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-07-21 14:00:00', '2022-08-01 16:56:25', 'string')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629575, '已发薪资合计', 'issuedTotal', 1, 7, 1, 0, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2022-08-01 16:59:28', 'number')
;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629576, '补发薪资合计', 'ressueTotal', 1, 7, 1, 0, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2022-08-01 16:59:40', 'number')
;
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1659339063868, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{社保福利.公积金个人合计}', 'welfare_fundPerSum', 92, 0, '2022-08-01 15:31:04', '2022-08-01 15:31:04')
;
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1659339100298, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{社保福利.社保个人合计}', 'welfare_socialPerSum', 92, 0, '2022-08-01 15:31:40', '2022-08-01 15:31:40')
;
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1659340673739, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', 'if({薪资项目.劳务收入}-{薪资项目.劳务免税收入}<=4000){800;}else{0.2*({薪资项目.劳务收入}-{薪资项目.劳务免税收入})}', 'if(salaryItem_laborIncome-salaryItem_laborTaxFreeIncome<=4000){800;}else{0.2*(salaryItem_laborIncome-salaryItem_laborTaxFreeIncome)}', 92, 0, '2022-08-01 15:57:54', '2022-08-01 15:57:54')
;
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1659340916981, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.劳务收入}-{薪资项目.劳务免税收入}-{薪资项目.劳务税减除费用}', 'salaryItem_laborIncome-salaryItem_laborTaxFreeIncome-salaryItem_laborSubtraction', 92, 0, '2022-08-01 16:01:57', '2022-08-01 16:01:57')
;
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1659341397524, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', 'if({薪资项目.劳务税应纳税所得额}<=20000){0.2;}else if({薪资项目.劳务税应纳税所得额}<=50000){0.3;}else{0.4;}', 'if(salaryItem_laborTaxableIncome<=20000){0.2;}else if(salaryItem_laborTaxableIncome<=50000){0.3;}else{0.4;}', 92, 0, '2022-08-01 16:09:57', '2022-08-01 16:09:57')
;
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1659341564390, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', 'if({薪资项目.劳务税应纳税所得额}<=20000){0;}else if({薪资项目.劳务税应纳税所得额}<=50000){2000;}else{7000;}', 'if(salaryItem_laborTaxableIncome<=20000){0;}else if(salaryItem_laborTaxableIncome<=50000){2000;}else{7000;}', 92, 0, '2022-08-01 16:12:44', '2022-08-01 16:12:44')
;
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1659341811881, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', 'if({薪资项目.劳务税应纳税所得额}<=0){0;}else{{薪资项目.劳务税应纳税所得额}*{薪资项目.劳务税税率}-{薪资项目.劳务税速算扣除数}}', 'if(salaryItem_laborTaxableIncome<=0){0;}else{salaryItem_laborTaxableIncome*salaryItem_laborTaxRate-salaryItem_laborQuickDeductionFactor}', 92, 0, '2022-08-01 16:16:52', '2022-08-01 16:16:52')
;
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1659341909423, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{其他免税扣除.商业健康保险}', 'otherDeduction_businessHealthyInsurance', 92, 0, '2022-08-01 16:18:29', '2022-08-01 16:18:29')
;
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1659341966905, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{其他免税扣除.税延养老保险}', 'otherDeduction_taxDelayEndowmentInsurance', 92, 0, '2022-08-01 16:19:27', '2022-08-01 16:19:27')
;
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1659341993723, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{其他免税扣除.其他}', 'otherDeduction_otherDeduction', 92, 0, '2022-08-01 16:19:54', '2022-08-01 16:19:54')
;
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1659342041963, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{其他免税扣除.准予扣除的捐赠额}', 'otherDeduction_deductionAllowedDonation', 92, 0, '2022-08-01 16:20:42', '2022-08-01 16:20:42')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659339063886, '公积金个人合计', 1659339063868, 'welfare_fundPerSum', '{社保福利.公积金个人合计}', 'number', 'welfare', 1, 92, 0, '2022-08-01 15:31:04', '2022-08-01 15:31:04')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659339100354, '社保个人合计', 1659339100298, 'welfare_socialPerSum', '{社保福利.社保个人合计}', 'number', 'welfare', 2, 92, 0, '2022-08-01 15:31:40', '2022-08-01 15:31:40')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659340673751, '劳务收入', 1659340673739, 'salaryItem_laborIncome', '{薪资项目.劳务收入}', 'number', 'salaryItem', 0, 92, 0, '2022-08-01 15:57:54', '2022-08-01 15:57:54')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659340673754, '劳务免税收入', 1659340673739, 'salaryItem_laborTaxFreeIncome', '{薪资项目.劳务免税收入}', 'number', 'salaryItem', 1, 92, 0, '2022-08-01 15:57:54', '2022-08-01 15:57:54')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659340917032, '劳务收入', 1659340916981, 'salaryItem_laborIncome', '{薪资项目.劳务收入}', 'number', 'salaryItem', 0, 92, 0, '2022-08-01 16:01:57', '2022-08-01 16:01:57')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659340917035, '劳务免税收入', 1659340916981, 'salaryItem_laborTaxFreeIncome', '{薪资项目.劳务免税收入}', 'number', 'salaryItem', 1, 92, 0, '2022-08-01 16:01:57', '2022-08-01 16:01:57')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659340917039, '劳务税减除费用', 1659340916981, 'salaryItem_laborSubtraction', '{薪资项目.劳务税减除费用}', 'number', 'salaryItem', 2, 92, 0, '2022-08-01 16:01:57', '2022-08-01 16:01:57')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659341397539, '劳务税应纳税所得额', 1659341397524, 'salaryItem_laborTaxableIncome', '{薪资项目.劳务税应纳税所得额}', 'number', 'salaryItem', 0, 92, 0, '2022-08-01 16:09:57', '2022-08-01 16:09:57')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659341564447, '劳务税应纳税所得额', 1659341564390, 'salaryItem_laborTaxableIncome', '{薪资项目.劳务税应纳税所得额}', 'number', 'salaryItem', 0, 92, 0, '2022-08-01 16:12:44', '2022-08-01 16:12:44')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659341811897, '劳务税应纳税所得额', 1659341811881, 'salaryItem_laborTaxableIncome', '{薪资项目.劳务税应纳税所得额}', 'number', 'salaryItem', 0, 92, 0, '2022-08-01 16:16:52', '2022-08-01 16:16:52')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659341811901, '劳务税税率', 1659341811881, 'salaryItem_laborTaxRate', '{薪资项目.劳务税税率}', 'number', 'salaryItem', 3, 92, 0, '2022-08-01 16:16:52', '2022-08-01 16:16:52')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659341811904, '劳务税速算扣除数', 1659341811881, 'salaryItem_laborQuickDeductionFactor', '{薪资项目.劳务税速算扣除数}', 'number', 'salaryItem', 4, 92, 0, '2022-08-01 16:16:52', '2022-08-01 16:16:52')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659341909473, '商业健康保险', 1659341909423, 'otherDeduction_businessHealthyInsurance', '{其他免税扣除.商业健康保险}', 'number', 'otherDeduction', 0, 92, 0, '2022-08-01 16:18:29', '2022-08-01 16:18:29')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659341966920, '税延养老保险', 1659341966905, 'otherDeduction_taxDelayEndowmentInsurance', '{其他免税扣除.税延养老保险}', 'number', 'otherDeduction', 0, 92, 0, '2022-08-01 16:19:27', '2022-08-01 16:19:27')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659341993736, '其他', 1659341993723, 'otherDeduction_otherDeduction', '{其他免税扣除.其他}', 'number', 'otherDeduction', 0, 92, 0, '2022-08-01 16:19:54', '2022-08-01 16:19:54')
;
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1659342041967, '准予扣除的捐赠额', 1659342041963, 'otherDeduction_deductionAllowedDonation', '{其他免税扣除.准予扣除的捐赠额}', 'number', 'otherDeduction', 0, 92, 0, '2022-08-01 16:20:42', '2022-08-01 16:20:42')
;

View File

@ -0,0 +1,40 @@
Alter table hrsa_bill_detail alter social_payment_base_string type varchar(1500)
;
Alter table hrsa_bill_detail alter fund_payment_base_string type varchar(1500)
;
Alter table hrsa_bill_detail alter other_payment_base_string type varchar(1500)
;
Alter table hrsa_bill_detail alter social_per_json type varchar(1500)
;
Alter table hrsa_bill_detail alter fund_per_json type varchar(1500)
;
Alter table hrsa_bill_detail alter other_per_json type varchar(1500)
;
Alter table hrsa_bill_detail alter social_com_json type varchar(1500)
;
Alter table hrsa_bill_detail alter fund_com_json type varchar(1500)
;
Alter table hrsa_bill_detail alter other_com_json type varchar(1500)
;
Alter table hrsa_bill_detail_temp alter social_payment_base_string type varchar(1500)
;
Alter table hrsa_bill_detail_temp alter fund_payment_base_string type varchar(1500)
;
Alter table hrsa_bill_detail_temp alter other_payment_base_string type varchar(1500)
;
Alter table hrsa_bill_detail_temp alter social_per_json type varchar(1500)
;
Alter table hrsa_bill_detail_temp alter fund_per_json type varchar(1500)
;
Alter table hrsa_bill_detail_temp alter other_per_json type varchar(1500)
;
Alter table hrsa_bill_detail_temp alter social_com_json type varchar(1500)
;
Alter table hrsa_bill_detail_temp alter fund_com_json type varchar(1500)
;
Alter table hrsa_bill_detail_temp alter other_com_json type varchar(1500)
;

View File

@ -0,0 +1,3 @@
ALTER TABLE hrsa_social_security_scheme
ADD COLUMN shared_type varchar(255) NULL ,
ADD COLUMN tax_agent_ids varchar(500) NULL ;

View File

@ -0,0 +1,13 @@
CREATE TABLE hrsa_salary_item_hide (
id bigint NOT NULL,
salary_sob_id bigint NOT NULL,
salary_item_id bigint NOT NULL,
is_group int NOT NULL,
item_hide bigint NULL DEFAULT 0,
creator bigint NOT NULL DEFAULT 0,
delete_type int NOT NULL DEFAULT 0,
tenant_key varchar(10),
create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
update_time timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id)
);

View File

@ -0,0 +1,93 @@
CREATE TABLE hrsa_excel_bill_detail (
id bigint NOT NULL,
employee_id bigint NOT NULL,
bill_month varchar(30) NOT NULL,
bill_status int NOT NULL,
payment_status int NOT NULL,
supplementary_month varchar(50) NULL,
supplementary_projects varchar(50) NULL,
resource_from int NOT NULL,
social_pay_org int NULL,
social_account varchar(50) NULL,
social_scheme_id bigint NULL,
social_payment_base_string text NULL,
fund_pay_org int NULL,
fund_account varchar(50) NULL,
supplement_fund_account varchar(50) NULL,
fund_scheme_id int NULL,
fund_payment_base_string text NULL,
other_pay_org int NULL,
other_scheme_id bigint NULL,
other_payment_base_string text NULL,
social_per_json text NULL,
social_per_sum text NULL,
fund_per_json text NULL,
fund_per_sum text NULL,
other_per_json text NULL,
other_per_sum text NULL,
per_sum text NULL,
social_com_json text NULL,
social_com_sum text NULL,
fund_com_json text NULL,
fund_com_sum text NULL,
other_com_json text NULL,
other_com_sum text NULL,
com_sum text NULL,
social_sum text NULL,
fund_sum text NULL,
other_sum text NULL,
total text NULL,
creator bigint NOT NULL DEFAULT 0 ,
create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
delete_type int NOT NULL DEFAULT 0 ,
tenant_key varchar(10) NOT NULL ,
payment_organization bigint NULL,
PRIMARY KEY (id)
);

View File

@ -0,0 +1,4 @@
ALTER TABLE hrsa_salary_archive
ADD COLUMN run_status varchar(255) NULL,
ADD COLUMN add_type varchar(255) NULL,
ADD COLUMN stop_type varchar(255) NULL;

View File

@ -0,0 +1,29 @@
CREATE TABLE hrsa_insurance_base_info (
id bigint NOT NULL,
employee_id bigint NOT NULL ,
payment_organization int NULL ,
social_archives_id bigint NULL ,
fund_archives_id bigint NULL ,
other_archives_id bigint NULL ,
tenant_key varchar(10) NOT NULL,
creator int NOT NULL,
delete_type int NOT NULL,
create_time timestamp NOT NULL,
update_time timestamp NOT NULL,
run_status varchar(20) NOT NULL ,
PRIMARY KEY ( id )
);

View File

@ -0,0 +1,4 @@
ALTER TABLE hrsa_salary_sob_range ADD employee_statuses VARCHAR(255);
ALTER TABLE hrsa_salary_sob_range ALTER employee_status type int;
ALTER TABLE hrsa_salary_sob_range ALTER employee_status drop not null;

View File

@ -0,0 +1,25 @@
create table hrsa_special_add_deduction
(
id bigserial not null ,
employee_id bigint not null ,
tax_agent_id bigint not null ,
children_education varchar(255) default '' null ,
continuing_education varchar(255) default '' null ,
housing_loan_interest varchar(255) default '' null ,
housing_rent varchar(255) default '' null ,
supporting_elder varchar(255) default '' null ,
serious_illness_treatment varchar(255) default '' null ,
infant_care varchar(255) default '' null ,
create_time timestamp default CURRENT_TIMESTAMP not null ,
update_time timestamp default CURRENT_TIMESTAMP not null ,
creator bigint default 0 not null ,
delete_type int default 0 not null ,
tenant_key varchar(10) default '' not null ,
PRIMARY KEY ( id )
);
create index idx_employee_id
on hrsa_special_add_deduction (employee_id);
create index idx_tenant_key
on hrsa_special_add_deduction (tenant_key);

View File

@ -0,0 +1,86 @@
delete from HtmlLabelIndex where id = 539971 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 539971,'规则设置' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539971 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 539971 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539971 as indexid ,'规则设置' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539971 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 539971 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539971 as indexid ,'Rule Settings' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539971 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 539971 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539971 as indexid ,'規則設置' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539971 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlModuleLabel where indexId = 539971 and moduleCode = 'HRM' and type = 'label'
;
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',539971)
;
delete from HtmlLabelIndex where id = 539970 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 539970,'应用设置' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539970 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 539970 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539970 as indexid ,'应用设置' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539970 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 539970 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539970 as indexid ,'Apply Settings' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539970 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 539970 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539970 as indexid ,'應用設置' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539970 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlModuleLabel where indexId = 539970 and moduleCode = 'HRM' and type = 'label'
;
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',539970)
;
delete from HtmlLabelIndex where id = 539968 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 539968,'设置' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539968 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 539968 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539968 as indexid ,'设置' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539968 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 539968 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539968 as indexid ,'set up' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539968 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 539968 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539968 as indexid ,'設置' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539968 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlModuleLabel where indexId = 539968 and moduleCode = 'HRM' and type = 'label'
;
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',539968)
;
delete from HtmlLabelIndex where id = 539967 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 539967,'专项附加扣除' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539967 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 539967 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539967 as indexid ,'专项附加扣除' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539967 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 539967 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539967 as indexid ,'Special additional deduction' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539967 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 539967 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539967 as indexid ,'專項附加扣除' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539967 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlModuleLabel where indexId = 539967 and moduleCode = 'HRM' and type = 'label'
;
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',539967)
;

View File

@ -0,0 +1,43 @@
Delete from LeftMenuInfo where id=100183
;
Delete from LeftMenuConfig where infoid=100183
;
select LMConfig_U_ByInfoInsert (2,100181,0)
;
select LMInfo_Insert (100183,539970,'','',2,100181,0,18)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/appconfig' where id = 100183
;
Delete from LeftMenuInfo where id=100182
;
Delete from LeftMenuConfig where infoid=100182
;
select LMConfig_U_ByInfoInsert (2,100181,-1)
;
select LMInfo_Insert (100182,539971,'','',2,100181,-1,18)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/sysconfig-1' where id = 100182
;
Delete from LeftMenuInfo where id=100180
;
Delete from LeftMenuConfig where infoid=100180
;
select LMConfig_U_ByInfoInsert (2,100126,0)
;
select LMInfo_Insert (100180,539967,'','',2,100126,0,18)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/dataAcquisition/specialAddDeduction' where id = 100180
;
Delete from LeftMenuInfo where id=100181
;
Delete from LeftMenuConfig where infoid=100181
;
select LMConfig_U_ByInfoInsert (2,100118,9)
;
select LMInfo_Insert (100181,539968,'','',2,100118,9,18)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='' where id = 100181
;

View File

@ -0,0 +1,5 @@
alter table hrsa_salary_item add shared_type int ;
alter table hrsa_salary_item add tax_agent_ids varchar(1024) null;
ALTER TABLE hrsa_salary_acct_record ADD COLUMN lock_salary_item_ids varchar(2000);

View File

@ -0,0 +1,68 @@
CREATE TABLE hrsa_compensation_log (
id bigint NOT NULL,
payment_agency bigint NULL ,
payment_organization bigint NULL ,
employee_id bigint NULL ,
welfare_type int NULL ,
category_type varchar(100) NULL ,
country_total text NULL ,
company_total text NULL ,
adjustment_total text NULL ,
adjust_to bigint NULL ,
bill_month varchar(30) NULL ,
creator bigint NULL ,
delete_type int NULL ,
create_time timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
update_time timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
tenant_key varchar(10) NULL ,
PRIMARY KEY ( id )
);
CREATE TABLE hrsa_compensation_config (
id bigint NOT NULL,
payment_agency bigint NULL ,
payment_organization bigint NULL ,
employee_id bigint NULL ,
welfare_type int NULL ,
category_type varchar(100) NULL ,
adjust_to bigint NULL ,
creator bigint NULL ,
delete_type int NULL ,
create_time timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
update_time timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
tenant_key varchar(10) NULL ,
PRIMARY KEY ( id )
);

View File

@ -0,0 +1,30 @@
create table hrsa_salary_send_range
(
id bigserial not null ,
salary_send_id bigint default 0 not null ,
grant_type varchar(64) not null ,
creator bigint default 0 not null ,
create_time timestamp default CURRENT_TIMESTAMP not null ,
update_time timestamp default CURRENT_TIMESTAMP not null ,
delete_type int default 0 not null ,
tenant_key varchar(10) default '' not null ,
PRIMARY KEY (id)
)
;
create table hrsa_salary_send_range_obj
(
id bigserial not null ,
salary_send_id bigint default 0 not null ,
salary_send_range_id bigint default 0 not null ,
range_type int not null ,
target_type int not null ,
target_id bigint not null ,
creator bigint default 0 not null ,
create_time timestamp default CURRENT_TIMESTAMP not null ,
update_time timestamp default CURRENT_TIMESTAMP not null ,
delete_type int default 0 not null ,
tenant_key varchar(10) default '' not null ,
PRIMARY KEY (id)
)
;

View File

@ -0,0 +1,29 @@
CREATE TABLE hrsa_salary_sob_back_item(
id bigint NOT NULL ,
salary_sob_id bigint NULL DEFAULT NULL ,
salary_item_id bigint NULL DEFAULT NULL ,
salary_item_code varchar(255) NULL DEFAULT NULL ,
data_type varchar(255) NULL DEFAULT NULL ,
rounding_mode int NULL DEFAULT NULL ,
pattern int NULL DEFAULT NULL ,
value_type int NULL DEFAULT NULL ,
formula_id bigint NULL DEFAULT NULL ,
back_calc_type int NULL DEFAULT NULL ,
tenant_key varchar(255) NULL DEFAULT NULL ,
creator bigint NULL DEFAULT NULL ,
delete_type int NULL DEFAULT NULL ,
create_time timestamp NULL DEFAULT NULL ,
update_time timestamp NULL DEFAULT NULL ,
PRIMARY KEY (id)
) ;
alter table hrsa_salary_acct_record add back_calc_status int null ;
alter table hrsa_salary_acct_result add origin_result_value VARCHAR(1000) null ;
alter table hrsa_salary_acct_result_report add origin_result_value VARCHAR(1000) null ;
alter table hrsa_salary_send add salary_acct_type int null ;
alter table hrsa_salary_send add send_status int null ;
alter table hrsa_salary_send_info add salary_acct_type int null ;
alter table hrsa_salary_template add replenish_name VARCHAR(100) null ;
alter table hrsa_salary_template add replenish_rule VARCHAR(255) null ;
alter table hrsa_salary_template add replenish_salary_item_setting text null ;
alter table hrsa_acct_result_temp add origin_result_value VARCHAR(1000) null ;

View File

@ -0,0 +1,41 @@
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629577, '年终奖收入', 'annualIncome', 1, 7, 1, 0, 0, 2, 2, 1, 0, 0, ' ', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2022-07-28 17:26:52', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629578, '年终奖税率', 'annualTaxRate', 1, 7, 1, 0, 0, 2, 2, 2, 0, 1675043440772, ' ', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2023-01-30 09:51:43', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629579, '年终奖速算扣除数', 'annualQuickDeductionFactor', 1, 7, 1, 0, 0, 2, 2, 2, 0, 1674894163247, ' ', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2022-07-28 17:26:52', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629580, '年终奖应纳税额', 'annualTax', 1, 7, 1, 0, 0, 2, 2, 2, 0, 1674896933031, ' ', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2022-07-28 17:26:52', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629581, '应发年终奖', 'annualPayable', 1, 7, 1, 0, 0, 2, 2, 2, 0, 1674897014605, ' ', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2022-07-28 17:26:52', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629600, '年终奖免税收入', 'annualTaxFreeIncome', 1, 7, 1, 0, 0, 2, 2, 1, 0, 0, ' ', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2022-07-28 17:26:52', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629601, '其他(年终奖)', 'annualOther', 1, 7, 1, 0, 0, 2, 2, 1, 0, 0, ' ', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2023-01-30 15:33:47', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629602, '准予扣除的捐赠额(年终奖)', 'annualDonateTax', 1, 7, 1, 0, 0, 2, 2, 1, 0, 0, ' ', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2022-07-28 17:26:52', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629603, '减免税额(年终奖)', 'annualTaxSavings', 1, 7, 1, 0, 0, 2, 2, 1, 0, 0, ' ', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2022-07-28 17:26:52', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629604, '备注(年终奖)', 'annualRemark', 1, 7, 1, 0, 0, 2, 2, 1, 0, 0, ' ', 1, 1, 0, 0, 'all_teams', '2022-07-28 17:26:52', '2023-01-30 15:33:31', 'string');
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845590, 2, 746777981115629577, 1, 0, 0, '2022-06-17 09:33:41', '2022-06-17 09:33:41', 0, 'all_teams', 0, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845591, 2, 746777981115629578, 1, 0, 0, '2022-06-17 09:33:41', '2022-06-17 09:33:41', 0, 'all_teams', 0, 1);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845592, 2, 746777981115629579, 1, 0, 0, '2022-06-17 09:33:41', '2022-06-17 09:33:41', 0, 'all_teams', 0, 2);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845593, 2, 746777981115629580, 1, 0, 0, '2022-06-17 09:33:41', '2022-06-17 09:33:41', 0, 'all_teams', 0, 3);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845595, 2, 746777981115629600, 1, 0, 0, '2022-06-17 09:33:41', '2022-06-17 09:33:41', 0, 'all_teams', 0, 4);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845596, 2, 746777981115629601, 1, 0, 0, '2022-06-17 09:33:41', '2022-06-17 09:33:41', 0, 'all_teams', 0, 5);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845597, 2, 746777981115629602, 1, 0, 0, '2022-06-17 09:33:41', '2022-06-17 09:33:41', 0, 'all_teams', 0, 6);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845598, 2, 746777981115629603, 1, 0, 0, '2022-06-17 09:33:41', '2022-06-17 09:33:41', 0, 'all_teams', 0, 7);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845599, 2, 746777981115629604, 1, 0, 0, '2022-06-17 09:33:41', '2022-06-17 09:33:41', 0, 'all_teams', 0, 8);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845594, 2, 746777981115629581, 1, 0, 0, '2022-06-17 09:33:41', '2022-06-17 09:33:41', 0, 'all_teams', 0, 9);
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1674894163247, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{\"sqlReturnKey\":\"\",\"openDecrypt\":\"0\",\"datasource\":{\"datasourceId\":\"\"}}', 'if({薪资项目.年终奖收入}<=36000){0;}else if({薪资项目.年终奖收入}<=144000){210;}else if({薪资项目.年终奖收入}<=300000){1410;}else if({薪资项目.年终奖收入}<=420000){2660;}else if({薪资项目.年终奖收入}<=660000){4410;}else if({薪资项目.年终奖收入}<=960000){7160;}else{15160;}', 'if(salaryItem_annualIncome<=36000){0;}else if(salaryItem_annualIncome<=144000){210;}else if(salaryItem_annualIncome<=300000){1410;}else if(salaryItem_annualIncome<=420000){2660;}else if(salaryItem_annualIncome<=660000){4410;}else if(salaryItem_annualIncome<=960000){7160;}else{15160;}', 92, 0, '2023-01-28 16:22:43', '2023-01-28 16:22:43');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1674896933031, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{\"sqlReturnKey\":\"\",\"openDecrypt\":\"0\",\"datasource\":{\"datasourceId\":\"\"}}', '{薪资项目.年终奖收入}*{薪资项目.年终奖税率}-{薪资项目.年终奖速算扣除数}', 'salaryItem_annualIncome*salaryItem_annualTaxRate-salaryItem_annualQuickDeductionFactor', 92, 0, '2023-01-28 17:08:53', '2023-01-28 17:08:53');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1674897014605, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{\"sqlReturnKey\":\"\",\"openDecrypt\":\"0\",\"datasource\":{\"datasourceId\":\"\"}}', '{薪资项目.年终奖收入}-{薪资项目.年终奖应纳税额}', 'salaryItem_annualIncome-salaryItem_annualTax', 92, 0, '2023-01-28 17:10:15', '2023-01-28 17:10:15');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1675043440772, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{\"sqlReturnKey\":\"\",\"openDecrypt\":\"0\",\"datasource\":{\"datasourceId\":\"\"}}', 'if({薪资项目.年终奖收入}<=0){0;}else if({薪资项目.年终奖收入}<=36000){0.03;}else if({薪资项目.年终奖收入}<=144000){0.1;}else if({薪资项目.年终奖收入}<=300000){0.2;}else if({薪资项目.年终奖收入}<=420000){0.25;}else if({薪资项目.年终奖收入}<=660000){0.3;}else if({薪资项目.年终奖收入}<=960000){0.35;}else{0.45;}', 'if(salaryItem_annualIncome<=0){0;}else if(salaryItem_annualIncome<=36000){0.03;}else if(salaryItem_annualIncome<=144000){0.1;}else if(salaryItem_annualIncome<=300000){0.2;}else if(salaryItem_annualIncome<=420000){0.25;}else if(salaryItem_annualIncome<=660000){0.3;}else if(salaryItem_annualIncome<=960000){0.35;}else{0.45;}', 92, 0, '2023-01-30 09:50:41', '2023-01-30 09:50:41');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1674894163265, '年终奖收入', 1674894163247, 'salaryItem_annualIncome', '{薪资项目.年终奖收入}', 'number', 'salaryItem', 0, 92, 0, '2023-01-28 16:22:43', '2023-01-28 16:22:43');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1674896933036, '年终奖收入', 1674896933031, 'salaryItem_annualIncome', '{薪资项目.年终奖收入}', 'number', 'salaryItem', 0, 92, 0, '2023-01-28 17:08:53', '2023-01-28 17:08:53');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1674896933041, '年终奖税率', 1674896933031, 'salaryItem_annualTaxRate', '{薪资项目.年终奖税率}', 'number', 'salaryItem', 1, 92, 0, '2023-01-28 17:08:53', '2023-01-28 17:08:53');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1674896933045, '年终奖速算扣除数', 1674896933031, 'salaryItem_annualQuickDeductionFactor', '{薪资项目.年终奖速算扣除数}', 'number', 'salaryItem', 2, 92, 0, '2023-01-28 17:08:53', '2023-01-28 17:08:53');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1674897014622, '年终奖收入', 1674897014605, 'salaryItem_annualIncome', '{薪资项目.年终奖收入}', 'number', 'salaryItem', 0, 92, 0, '2023-01-28 17:10:15', '2023-01-28 17:10:15');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1674897014626, '年终奖应纳税额', 1674897014605, 'salaryItem_annualTax', '{薪资项目.年终奖应纳税额}', 'number', 'salaryItem', 1, 92, 0, '2023-01-28 17:10:15', '2023-01-28 17:10:15');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1675043440796, '年终奖收入', 1675043440772, 'salaryItem_annualIncome', '{薪资项目.年终奖收入}', 'number', 'salaryItem', 1, 92, 0, '2023-01-30 09:50:41', '2023-01-30 09:50:41');

View File

@ -0,0 +1,34 @@
delete from HtmlLabelIndex where id = 540871 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 540871,'档案管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 540871 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 540871 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 540871 as indexid ,'档案管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540871 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 540871 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 540871 as indexid ,'file management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540871 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 540871 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 540871 as indexid ,'檔案管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540871 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 540869 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 540869,'字段管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 540869 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 540869 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 540869 as indexid ,'字段管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540869 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 540869 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 540869 as indexid ,'Field management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540869 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 540869 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 540869 as indexid ,'字段管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 540869 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;

View File

@ -0,0 +1,34 @@
Delete from LeftMenuInfo where id=100125
;
Delete from LeftMenuConfig where infoid=100125
;
select LMConfig_U_ByInfoInsert (2,100118,2)
;
select LMInfo_Insert (100125,538004,'','',2,100118,2,18)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='' where id = 100125
;
Delete from LeftMenuInfo where id=100185
;
Delete from LeftMenuConfig where infoid=100185
;
select LMConfig_U_ByInfoInsert (2,100125,0)
;
select LMInfo_Insert (100185,540871,'','',2,100125,0,18)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/salaryFile' where id = 100185
;
Delete from LeftMenuInfo where id=100184
;
Delete from LeftMenuConfig where infoid=100184
;
select LMConfig_U_ByInfoInsert (2,100125,-1)
;
select LMInfo_Insert (100184,540869,'','',2,100125,-1,18)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/fieldManagement' where id = 100184
;

View File

@ -0,0 +1,3 @@
ALTER TABLE hrsa_scheme_detail ADD COLUMN payment_cycle int NULL;
ALTER TABLE hrsa_scheme_detail ADD COLUMN account_type int NULL;
ALTER TABLE hrsa_scheme_detail ADD COLUMN cycle_setting varchar(255) NULL;

View File

@ -0,0 +1 @@
ALTER TABLE hrsa_salary_item ALTER shared_type TYPE int ;

View File

@ -0,0 +1,33 @@
ALTER TABLE hrsa_other_deduction ADD COLUMN private_pension varchar(255) NULL;
ALTER TABLE hrsa_add_up_situation ADD COLUMN add_up_private_pension varchar(255) NULL;
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629605, '个人养老金', 'privatePension', 1, 2, 12, 0, 0, 2, 2, 2, 8, 1680746056549, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (746777981115629698, '累计个人养老金', 'addUpPrivatePension', 1, 2, 12, 0, 0, 2, 2, 2, 8, 1681201555316, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1680746056549, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{\"sqlReturnKey\":\"\",\"openDecrypt\":\"0\",\"datasource\":{\"datasourceId\":\"\"}}', '{其他免税扣除.个人养老金}', 'otherDeduction_privatePension', 92, 0, '2023-04-06 09:54:16', '2023-04-06 09:54:16');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1680746056577, '个人养老金', 1680746056549, 'otherDeduction_privatePension', '{其他免税扣除.个人养老金}', 'number', 'otherDeduction', 0, 92, 0, '2023-04-06 09:54:16', '2023-04-06 09:54:16');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1681201555316, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{\"sqlReturnKey\":\"\",\"openDecrypt\":\"0\",\"datasource\":{\"datasourceId\":\"\"}}', '{薪资项目.个人养老金}+{往期累计情况.累计个人养老金}', 'salaryItem_privatePension+addUpSituation_addUpPrivatePension', 92, 0, '2023-04-11 16:25:55', '2023-04-11 16:25:55');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1681201555332, '个人养老金', 1681201555316, 'salaryItem_privatePension', '{薪资项目.个人养老金}', 'number', 'salaryItem', 0, 92, 0, '2023-04-11 16:25:55', '2023-04-11 16:25:55');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1681201555338, '累计个人养老金', 1681201555316, 'addUpSituation_addUpPrivatePension', '{往期累计情况.累计个人养老金}', 'number', 'addUpSituation', 1, 92, 0, '2023-04-11 16:25:55', '2023-04-11 16:25:55');
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845610, 1, 746777981115629605, 1, 0, 0, '2022-03-18 16:30:21', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614110, 10);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (733975748932845611, 1, 746777981115629698, 1, 0, 0, '2022-03-18 16:30:21', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614110, 11);
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1681265757380, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{\"datasource\":{\"datasourceId\":\"\"}}', '{薪资项目.当前累计应税收入合计}-{薪资项目.当前累计专项扣除合计}-{薪资项目.当前累计专项附加扣除合计}-{薪资项目.当前累计其他扣除合计}-{薪资项目.当前累计减除费用}-{薪资项目.当前累计准备扣除的捐赠额}-{薪资项目.累计个人养老金}', 'salaryItem_addUpIncome-salaryItem_addUpSpecialDeduction-salaryItem_addUpSpeAddiDeduction-salaryItem_addUpOtherDeduction-salaryItem_addUpSubtraction-salaryItem_addUpAllowedDonation-salaryItem_addUpPrivatePension', 92, 0, '2023-04-12 10:15:57', '2023-04-12 10:15:57');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1681265757404, '当前累计准备扣除的捐赠额', 1681265757380, 'salaryItem_addUpAllowedDonation', '{薪资项目.当前累计准备扣除的捐赠额}', 'number', 'salaryItem', 5, 92, 0, '2023-04-12 10:15:57', '2023-04-12 10:15:57');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1681265757408, '当前累计减除费用', 1681265757380, 'salaryItem_addUpSubtraction', '{薪资项目.当前累计减除费用}', 'number', 'salaryItem', 4, 92, 0, '2023-04-12 10:15:57', '2023-04-12 10:15:57');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1681265757413, '当前累计其他扣除合计', 1681265757380, 'salaryItem_addUpOtherDeduction', '{薪资项目.当前累计其他扣除合计}', 'number', 'salaryItem', 3, 92, 0, '2023-04-12 10:15:57', '2023-04-12 10:15:57');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1681265757417, '当前累计专项附加扣除合计', 1681265757380, 'salaryItem_addUpSpeAddiDeduction', '{薪资项目.当前累计专项附加扣除合计}', 'number', 'salaryItem', 2, 92, 0, '2023-04-12 10:15:57', '2023-04-12 10:15:57');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1681265757421, '当前累计专项扣除合计', 1681265757380, 'salaryItem_addUpSpecialDeduction', '{薪资项目.当前累计专项扣除合计}', 'number', 'salaryItem', 1, 92, 0, '2023-04-12 10:15:57', '2023-04-12 10:15:57');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1681265757424, '当前累计应税收入合计', 1681265757380, 'salaryItem_addUpIncome', '{薪资项目.当前累计应税收入合计}', 'number', 'salaryItem', 0, 92, 0, '2023-04-12 10:15:57', '2023-04-12 10:15:57');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1681265757428, '累计个人养老金', 1681265757380, 'salaryItem_addUpPrivatePension', '{薪资项目.累计个人养老金}', 'number', 'salaryItem', 6, 92, 0, '2023-04-12 10:15:57', '2023-04-12 10:15:57');
update hrsa_sys_salary_item set formula_id = 1681265757380 where name = '当前累计应纳税所得额' ;
update hrsa_salary_item set formula_id = 1681265757380 where name = '当前累计应纳税所得额';

View File

@ -0,0 +1 @@
update hrsa_sys_salary_item set use_in_employee_salary = 1 where code in ('baseSalary','postSalary');

View File

@ -0,0 +1,249 @@
create table hrsa_sub_table
(
id bigint primary key ,
create_time timestamp ,
update_time timestamp ,
creator bigint ,
delete_type int default 0 ,
tenant_key varchar(10) ,
sub_table_name varchar(100) not null ,
dimension varchar(20) not null ,
start_month varchar(10) ,
end_month varchar(10) ,
pay_org_string varchar(500) ,
pay_agency_string varchar(500) ,
sub_company_string varchar(500) ,
depart_string varchar(500) ,
grade_string varchar(500) ,
position_string varchar(500) ,
status_string varchar(500) ,
employee_type varchar(500) ,
employee_string varchar(500) ,
payment_type_string varchar(100)
)
;
create table hrsa_sub_table_item
(
id bigint primary key ,
create_time timestamp ,
update_time timestamp ,
creator bigint ,
delete_type int default 0 ,
tenant_key varchar(10) ,
table_id bigint not null ,
item_name varchar(50) not null ,
item_value varchar(500) not null ,
index_value int not null ,
total_rule varchar(500) ,
count_rule varchar(500) ,
unit_type int default 2
)
;
alter table hrsa_sub_table add table_type int
;
alter table hrsa_sub_table ALTER table_type TYPE int
;
alter table hrsa_sub_table ALTER COLUMN table_type set DEFAULT 0
;
create table hrsa_salary_stats_dim
(
id bigint primary key ,
create_time timestamp ,
update_time timestamp ,
creator bigint ,
delete_type int default 0 ,
tenant_key varchar(10) ,
dim_name varchar(100) ,
dim_type varchar(20) ,
remark varchar(500) ,
setting varchar(2000) ,
is_default int ,
dim_code varchar(50)
)
;
create table hrsa_salary_stats_report
(
id bigint primary key ,
create_time timestamp ,
update_time timestamp ,
creator bigint ,
delete_type int default 0 ,
tenant_key varchar(10) ,
report_name varchar(100) ,
dimension varchar(1000) ,
tax_agent_setting varchar(1000) ,
income_category_setting varchar(20) ,
sub_company_setting varchar(1000) ,
depart_setting varchar(1000) ,
grade_setting varchar(1000) ,
position_setting varchar(1000) ,
status_setting varchar(1000) ,
employee_setting varchar(1000) ,
hiredate_setting varchar(1000) ,
leavedate_setting varchar(1000) ,
salary_start_month timestamp ,
salary_end_month timestamp
)
;
create table hrsa_salary_statistics_item
(
id bigint primary key ,
create_time timestamp ,
update_time timestamp ,
creator bigint ,
delete_type int default 0 ,
tenant_key varchar(10) ,
item_name varchar(50) ,
item_value varchar(1000) ,
count_rule varchar(500) ,
sum_rule varchar(500) ,
avg_rule varchar(500) ,
max_rule varchar(500) ,
min_rule varchar(500) ,
median_rule varchar(500) ,
index_value int ,
unit_type int ,
stat_report_id bigint
)
;
create table hrsa_charts_setting
(
id bigint primary key ,
create_time timestamp ,
update_time timestamp ,
creator bigint ,
delete_type int default 0 ,
tenant_key varchar(10) ,
table_id bigint not null ,
charts_type int not null ,
item_values varchar(500) ,
item_col_value varchar(50) not null ,
dimension_range int not null ,
item_sort_value varchar(500) ,
item_col_sort_value varchar(50) ,
sort_type int ,
sort_num int
)
;
create table hrsa_salary_echarts_setting
(
id bigint primary key ,
create_time timestamp ,
update_time timestamp ,
creator bigint ,
delete_type int default 0 ,
tenant_key varchar(10) ,
report_id bigint not null ,
charts_type int not null ,
item_values varchar(500) ,
item_col_value varchar(50) not null ,
dimension_range int not null ,
item_sort_value varchar(500) ,
item_col_sort_value varchar(50) ,
sort_type int ,
sort_num int
)
;
alter table hrsa_salary_stats_dim alter dim_type TYPE varchar(30)
;
alter table hrsa_salary_stats_report alter income_category_setting TYPE varchar(1000)
;
create table hrsa_statreportlogs_detail
(
id bigint primary key ,
create_time timestamp ,
update_time timestamp ,
creator bigint ,
delete_type int default 0 ,
tenant_key varchar(10) ,
uuid varchar(36) not null ,
mainid varchar(36) not null ,
dataid varchar(50) not null ,
belongdataid varchar(50) not null ,
tablename varchar(200) not null ,
tablenamelabelid varchar(50) default '-1' not null ,
tablenamedesc varchar(50) not null ,
fieldname varchar(200) not null ,
fieldnamelabelid varchar(50) default '-1' not null ,
newvalue text not null ,
oldvalue text not null ,
newrealvalue text not null ,
oldrealvalue text not null ,
fielddesc varchar(200) not null ,
showorder int not null ,
isdetail int NOT NULL DEFAULT 0
)
;
create table hrsa_statreportlogs
(
id bigint primary key ,
create_time timestamp ,
update_time timestamp ,
creator bigint ,
delete_type int default 0 ,
tenant_key varchar(10) ,
uuid varchar(36) not null ,
log_date timestamp not null ,
device varchar(500) not null ,
log_operator bigint not null ,
operatorname varchar(100) ,
targetid bigint NOT NULL DEFAULT -1 ,
targetname text not null ,
modulename varchar(100) not null ,
functionname varchar(100) not null ,
interfacename varchar(100) not null ,
requesturl varchar(200) not null ,
requesturi varchar(200) not null ,
operatetype varchar(50) not null ,
operatetypename varchar(100) not null ,
operatedesc varchar(3000) not null ,
params text not null ,
belongmainid varchar(36) not null ,
clientip varchar(50) not null ,
groupid varchar(50) not null ,
groupnamelabel varchar(1000) not null ,
redoservice varchar(200) not null ,
redocontext text not null ,
cancelservice varchar(200) not null ,
cancelcontext text not null ,
totalruntime bigint NOT NULL DEFAULT 0 ,
mainruntime bigint NOT NULL DEFAULT 0 ,
log_result varchar(100) not null ,
fromterminal varchar(100) not null ,
resultdesc text not null ,
old_content varchar(3000) not null ,
link_type varchar(20) not null ,
link_id bigint NOT NULL DEFAULT 0 ,
old_link_id bigint NOT NULL DEFAULT 0
)
;
alter table hrsa_salary_stats_report add remark varchar(100)
;
alter table hrsa_salary_stats_report add second_dimension varchar(100)
;
alter table hrsa_salary_stats_report add sort_index varchar(100)
;
alter table hrsa_salary_stats_report add sort_type varchar(100)
;
alter table hrsa_salary_stats_dim add label_id int
;

View File

@ -0,0 +1,7 @@
INSERT INTO datashowset(SHOWNAME, SHOWCLASS, DATAFROM, DATASOURCEID, SQLTEXT, WSURL, WSOPERATION, XMLTEXT, INPARA, SHOWTYPE, KEYFIELD, PARENTFIELD, SHOWFIELD, DETAILPAGEURL, TYPENAME, SELECTTYPE, SHOWPAGEURL, BROWSERFROM, NAME, CUSTOMID, CUSTOMHREF, SQLTEXT1, SQLTEXT2, NAMEHEADER, DESCRIPTIONHEADER, WSWORKNAME, SEARCHBYID, CREATEDATE, CREATETIME, MODIFYDATE, MODIFYTIME, SEARCHBYNAME, onlylowestnode, characterset, uuid, isSupportPaging, ESBID, ESBSHOWID, mobiledetailpageurl, isPhyPage, subcompanyid, unconditionalQuery) VALUES ('salaryItemBrowser', '1', '1', '', 'select * from hrsa_salary_item where delete_type = 0', '', '', '', '', '1', 'id', '', '', '', '', '', '', 2, 'н×ÊÏîÄ¿', NULL, '', NULL, NULL, NULL, NULL, '', '', '2020-01-01', '19:12:12', NULL, NULL, '', '', '0',uuid(), '', '', '', '', '1', 0, 1);
INSERT INTO datashowcacheset(showname, subcompanyid, isopencache, Createdate, createtime, Updatedate, Updatetime) VALUES ('salaryItemBrowser', '0', 0, '2020-01-01', '19:12:12', NULL, NULL);
INSERT INTO datashowparam(MAINID, FIELDNAME, SEARCHNAME, TRANSQL, ISSHOWNAME, dsporder, uuid, width) VALUES ((select max(id) from datashowparam), 'Ãû³Æ', 'name', '', 1, 1, uuid(), NULL);
INSERT INTO datasearchparam(MAINID, FIELDNAME, SEARCHNAME, FIELDTYPE, WOKFLOWFIELDNAME, dsporder, uuid, isshowfield) VALUES ((select max(id) from datasearchparam), 'Ãû³Æ', 'name', '2', '', 1, uuid(), '');

View File

@ -0,0 +1,16 @@
delete from HtmlLabelIndex where id = 542781 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 542781,'薪酬统计报表' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 542781 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 542781 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 542781 as indexid ,'薪酬统计报表' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 542781 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 542781 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 542781 as indexid ,'Salary Statistics Report' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 542781 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 542781 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 542781 as indexid ,'薪酬統計報表' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 542781 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;

View File

@ -0,0 +1,10 @@
Delete from LeftMenuInfo where id=100187
;
Delete from LeftMenuConfig where infoid=100187
;
select LMConfig_U_ByInfoInsert (2,100118,9)
;
select LMInfo_Insert (100187,542781,'','',2,100118,9,18)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/analysisOfSalaryStatistics' where id = 100187
;

View File

@ -0,0 +1,14 @@
CREATE TABLE hrsa_salary_acct_result_log (
id bigint NOT NULL,
datasource int NOT NULL,
salary_acct_record_id bigint NOT NULL,
salary_acct_result_id bigint NOT NULL,
salary_acct_emp_id bigint NOT NULL,
salary_item_id bigint NOT NULL,
employee_id bigint NOT NULL,
operator bigint NOT NULL,
operate_time timestamp NOT NULL,
delete_type int NOT NULL,
update_time timestamp NOT NULL,
PRIMARY KEY (id)
);

View File

@ -0,0 +1 @@
ALTER TABLE hrsa_salary_item ADD COLUMN sorted_index int NULL;

View File

@ -0,0 +1,3 @@
ALTER TABLE hrsa_salary_template ADD COLUMN sms_status int;
UPDATE hrsa_salary_template SET msg_status = 1;

View File

@ -0,0 +1 @@
ALTER TABLE hrsa_tax_agent ADD COLUMN sorted_index int ;

View File

@ -0,0 +1,4 @@
update hrsa_formula set formula = '{薪资项目.本月(次)其他扣除合计}+{往期累计情况.累计其他免税扣除}' , formulaRunScript='salaryItem_otherDeduction+addUpSituation_addUpOtherDeduction' where id = 1651740238860
;
update hrsa_formula_var set delete_type = 1 where id = 1651740241717
;

View File

@ -0,0 +1,12 @@
CREATE TABLE hrsa_salary_bill_watermark (
id bigint NOT NULL,
watermark_status int NULL DEFAULT NULL,
watermark_type varchar(255) NULL DEFAULT NULL,
watermark_setting text NULL,
create_time timestamp NULL DEFAULT NULL,
update_time timestamp NULL DEFAULT NULL,
creator bigint NULL DEFAULT NULL,
delete_type int NULL DEFAULT NULL,
tenant_key varchar(255) NULL DEFAULT NULL,
PRIMARY KEY (id)
) ;

View File

@ -55,6 +55,7 @@ public class InsuranceAccountBO {
.accountant(e.getAccountant())
.billMonth(e.getBillMonth())
.billStatus(queryLabelId(e.getBillStatus()).getDefaultLabel())
// .billStatus(e.getBillStatus().toString())
.fundNum(e.getFundNum())
.fundPay(SalaryEntityUtil.thousandthConvert(e.getFundPay()))
.lastTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(e.getUpdateTime()))

View File

@ -449,6 +449,26 @@
</foreach>
</update>
<update id="batchUpdate" parameterType="java.util.List" databaseId="postgresql">
<foreach collection="collection" item="item" separator=";">
UPDATE hrsa_salary_archive
<set>
<if test="item.runStatus != null">
run_status=#{item.runStatus},
</if>
<if test="item.payStartDate != null">
pay_start_date=#{item.payStartDate},
</if>
<if test="item.payEndDate != null">
pay_end_date=#{item.payEndDate},
</if>
</set>
WHERE id = #{item.id} AND delete_type = 0
</foreach>
</update>
<select id="getHistoryData" resultMap="BaseResultMap">
SELECT
<include refid="baseColumns"/>

View File

@ -441,6 +441,23 @@
</foreach>
</update>
<update id="updateNameByCode" parameterType="java.util.List" databaseId="postgresql">
<foreach collection="updates" item="item" separator=";">
UPDATE hrsa_attend_quote_field
<set>
<if test="item.fieldName != null">
field_name=#{item.fieldName},
</if>
<if test="item.updateTime != null">
update_time=#{item.updateTime},
</if>
</set>
WHERE code = #{item.code}
</foreach>
</update>
<select id="listSome" resultMap="BaseResultMap">
SELECT
<include refid="baseColumns"/>

View File

@ -1,9 +1,7 @@
package com.engine.salary.mapper.siarchives;
import com.engine.salary.entity.salarysob.po.SalarySobEmpFieldPO;
import com.engine.salary.entity.siarchives.param.InsuranceArchivesListParam;
import com.engine.salary.entity.siarchives.po.InsuranceArchivesBaseInfoPO;
import com.engine.salary.entity.siarchives.po.InsuranceArchivesOtherSchemePO;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;

View File

@ -202,11 +202,11 @@
WHERE t.delete_type = 0
AND t.run_status = '3'
AND (
(social.social_end_time is not null and social.social_end_time <![CDATA[ <> ]]> ' ' and social.social_end_time <![CDATA[ > ]]> #{today})
(social.social_end_time is not null and social.social_end_time <![CDATA[ > ]]> #{today})
OR
(fund.fund_end_time is not null and fund.fund_end_time <![CDATA[ <> ]]> ' ' and fund.fund_end_time <![CDATA[ > ]]> #{today})
(fund.fund_end_time is not null and fund.fund_end_time <![CDATA[ > ]]> #{today})
OR
(other.other_end_time is not null and other.other_end_time <![CDATA[ <> ]]> ' ' and other.other_end_time <![CDATA[ > ]]> #{today})
(other.other_end_time is not null and other.other_end_time <![CDATA[ > ]]> #{today})
)
</select>
@ -219,9 +219,9 @@
LEFT JOIN( SELECT other.payment_organization, other.employee_id, other.other_end_time, other.other_scheme_id FROM hrsa_other_archives other WHERE other.delete_type = 0 )other ON t.employee_id = other.employee_id AND t.payment_organization = other.payment_organization
WHERE t.delete_type = 0
AND t.run_status = '2'
AND (social.social_scheme_id is null or (social.social_end_time is not null and social.social_end_time <![CDATA[ <> ]]> ' ' and social.social_end_time <![CDATA[ <= ]]> #{today}))
AND (fund.fund_scheme_id is null or (fund.fund_end_time is not null and fund.fund_end_time <![CDATA[ <> ]]> ' ' and fund.fund_end_time <![CDATA[ <= ]]> #{today}))
AND (other.other_scheme_id is null or (other.other_end_time is not null and other.other_end_time <![CDATA[ <> ]]> ' ' and other.other_end_time <![CDATA[ <= ]]> #{today}))
AND (social.social_scheme_id is null or (social.social_end_time is not null and social.social_end_time <![CDATA[ <= ]]> #{today}))
AND (fund.fund_scheme_id is null or (fund.fund_end_time is not null and fund.fund_end_time <![CDATA[ <= ]]> #{today}))
AND (other.other_scheme_id is null or (other.other_end_time is not null and other.other_end_time <![CDATA[ <= ]]> #{today}))
</select>
<select id="getAbnormalList" resultType="com.engine.salary.entity.siarchives.po.InsuranceArchivesBaseInfoPO">

View File

@ -1099,11 +1099,15 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
String socialStartDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91319, "社保起始缴纳月")).get(SalaryI18nUtil.getI18nLabel(91319, "社保起始缴纳月"));
if (StringUtils.isNotBlank(socialStartDate) && socialStartDate.length() > 7) {
socialStartDate = socialStartDate.substring(0, 7);
} else if (StringUtils.isBlank(socialStartDate)){
socialStartDate = null;
}
insuranceArchivesSocialSchemePO.setSocialStartTime(socialStartDate);
String socialEndDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91320, "社保最后缴纳月")).get(SalaryI18nUtil.getI18nLabel(91320, "社保最后缴纳月"));
if (StringUtils.isNotBlank(socialEndDate) && socialEndDate.length() > 7) {
socialEndDate = socialEndDate.substring(0, 7);
} else if (StringUtils.isBlank(socialEndDate)){
socialEndDate = null;
}
insuranceArchivesSocialSchemePO.setSocialEndTime(socialEndDate);
insuranceArchivesSocialSchemePO.setTenantKey("");
@ -1154,12 +1158,16 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
String fundStartDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91483, "公积金起始缴纳月")).get(SalaryI18nUtil.getI18nLabel(91483, "公积金起始缴纳月"));
if (StringUtils.isNotBlank(fundStartDate) && fundStartDate.length() > 7) {
fundStartDate = fundStartDate.substring(0, 7);
} else if (StringUtils.isBlank(fundStartDate)){
fundStartDate = null;
}
insuranceArchivesFundSchemePO.setFundStartTime(fundStartDate);
String fundEndDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91484, "公积金最后缴纳月")).get(SalaryI18nUtil.getI18nLabel(91484, "公积金最后缴纳月"));
if (StringUtils.isNotBlank(fundEndDate) && fundEndDate.length() > 7) {
fundEndDate = fundEndDate.substring(0, 7);
} else if (StringUtils.isBlank(fundEndDate)){
fundEndDate = null;
}
insuranceArchivesFundSchemePO.setFundEndTime(fundEndDate);
insuranceArchivesFundSchemePO.setWelfareType(WelfareTypeEnum.ACCUMULATION_FUND.getValue());
@ -1204,11 +1212,15 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
String otherStartDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91490, "其他福利起始缴纳月")).get(SalaryI18nUtil.getI18nLabel(91490, "其他福利起始缴纳月"));
if (StringUtils.isNotBlank(otherStartDate) && otherStartDate.length() > 7) {
otherStartDate = otherStartDate.substring(0, 7);
} else if (StringUtils.isBlank(otherStartDate)){
otherStartDate = null;
}
insuranceArchivesOtherSchemePO.setOtherStartTime(otherStartDate);
String otherEndDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91494, "其他福利最后缴纳月")).get(SalaryI18nUtil.getI18nLabel(91494, "其他福利最后缴纳月"));
if (StringUtils.isNotBlank(otherEndDate) && otherEndDate.length() > 7) {
otherEndDate = otherEndDate.substring(0, 7);
} else if (StringUtils.isBlank(otherEndDate)){
otherEndDate = null;
}
insuranceArchivesOtherSchemePO.setOtherEndTime(otherEndDate);
insuranceArchivesOtherSchemePO.setPaymentOrganization(paymentNameIdMap.get((String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91497, "个税扣缴义务人")).get(SalaryI18nUtil.getI18nLabel(91497, "个税扣缴义务人"))));