Merge branch 'release/3.0.2.2504.01' into custom/福建罗德数字科技有限公司
# Conflicts: # src/com/engine/salary/service/impl/AddUpDeductionServiceImpl.java
This commit is contained in:
commit
de04d5979b
Binary file not shown.
|
|
@ -1,5 +1,5 @@
|
|||
log=false
|
||||
defaultCloseNonStandard149=true
|
||||
AESEncryptScrect=990EB004A1C862721C1513AE90038C9E
|
||||
version=3.0.1.2503.01
|
||||
version=3.0.2.2510.01
|
||||
openFormulaForcedEditing=false
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
CREATE TABLE hrsa_push_setting
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
name varchar2(200),
|
||||
able number,
|
||||
salary_sob_ids varchar2(2000),
|
||||
mode_id number,
|
||||
mode_name varchar2(200),
|
||||
table_name varchar2(200),
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_push_setting_item
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
setting_id NUMBER(38,0),
|
||||
source varchar2(100),
|
||||
item varchar2(200),
|
||||
item_name varchar2(200),
|
||||
field_name varchar2(200),
|
||||
field_type number,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
CREATE TABLE hrsa_push_record
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
name varchar2(200),
|
||||
setting_id NUMBER(38,0),
|
||||
mode_id number,
|
||||
table_name varchar2(100),
|
||||
acct_record_id NUMBER(38,0),
|
||||
type number,
|
||||
status number,
|
||||
start_time date,
|
||||
end_time date,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_push_record_detail
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
record_id NUMBER(38,0),
|
||||
acct_emp_id NUMBER(38,0),
|
||||
formula CLOB,
|
||||
execute_time date,
|
||||
status number,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record ADD fail_reason varchar2(4000);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD fail_reason varchar2(4000);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE hrsa_push_setting_item ADD sorted_index NUMBER;
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD data_id NUMBER(38,0);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
CREATE TABLE hrsa_push_setting
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
name varchar2(200),
|
||||
able number,
|
||||
salary_sob_ids varchar2(2000),
|
||||
mode_id number,
|
||||
mode_name varchar2(200),
|
||||
table_name varchar2(200),
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_push_setting_item
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
setting_id NUMBER(38,0),
|
||||
source varchar2(100),
|
||||
item varchar2(200),
|
||||
item_name varchar2(200),
|
||||
field_name varchar2(200),
|
||||
field_type number,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
CREATE TABLE hrsa_push_record
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
name varchar2(200),
|
||||
setting_id NUMBER(38,0),
|
||||
mode_id number,
|
||||
table_name varchar2(100),
|
||||
acct_record_id NUMBER(38,0),
|
||||
type number,
|
||||
status number,
|
||||
start_time date,
|
||||
end_time date,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_push_record_detail
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
record_id NUMBER(38,0),
|
||||
acct_emp_id NUMBER(38,0),
|
||||
formula CLOB,
|
||||
execute_time date,
|
||||
status number,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record ADD fail_reason varchar2(4000);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD fail_reason varchar2(4000);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE hrsa_push_setting_item ADD sorted_index NUMBER;
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD data_id NUMBER(38,0);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
CREATE TABLE hrsa_push_setting
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
name varchar2(200),
|
||||
able number,
|
||||
salary_sob_ids varchar2(2000),
|
||||
mode_id number,
|
||||
mode_name varchar2(200),
|
||||
table_name varchar2(200),
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_push_setting_item
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
setting_id NUMBER(38,0),
|
||||
source varchar2(100),
|
||||
item varchar2(200),
|
||||
item_name varchar2(200),
|
||||
field_name varchar2(200),
|
||||
field_type number,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
CREATE TABLE hrsa_push_record
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
name varchar2(200),
|
||||
setting_id NUMBER(38,0),
|
||||
mode_id number,
|
||||
table_name varchar2(100),
|
||||
acct_record_id NUMBER(38,0),
|
||||
type number,
|
||||
status number,
|
||||
start_time date,
|
||||
end_time date,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_push_record_detail
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
record_id NUMBER(38,0),
|
||||
acct_emp_id NUMBER(38,0),
|
||||
formula CLOB,
|
||||
execute_time date,
|
||||
status number,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record ADD fail_reason varchar2(4000);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD fail_reason varchar2(4000);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE hrsa_push_setting_item ADD sorted_index NUMBER;
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD data_id NUMBER(38,0);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
CREATE TABLE hrsa_push_record
|
||||
(
|
||||
id bigint(0) NOT NULL,
|
||||
name varchar(200),
|
||||
setting_id bigint(0),
|
||||
mode_id int(0),
|
||||
table_name varchar(100),
|
||||
acct_record_id bigint(0),
|
||||
type int(0),
|
||||
status int(0),
|
||||
start_time datetime(0),
|
||||
end_time datetime(0),
|
||||
creator bigint(0),
|
||||
create_time datetime(0),
|
||||
update_time datetime(0),
|
||||
delete_type int(0),
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id) USING BTREE
|
||||
);
|
||||
|
||||
CREATE TABLE hrsa_push_record_detail
|
||||
(
|
||||
id bigint(0) NOT NULL,
|
||||
record_id bigint(0),
|
||||
acct_emp_id bigint(0),
|
||||
formula text,
|
||||
execute_time datetime(0),
|
||||
status int(0),
|
||||
creator bigint(0),
|
||||
create_time datetime(0),
|
||||
update_time datetime(0),
|
||||
delete_type int(0),
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id) USING BTREE
|
||||
);
|
||||
|
||||
ALTER TABLE hrsa_push_record ADD COLUMN fail_reason varchar(4000);
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD COLUMN fail_reason varchar(4000) ;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE hrsa_push_setting_item ADD COLUMN sorted_index int(0);
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD COLUMN data_id bigint(0);
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
CREATE TABLE hrsa_push_setting
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
name varchar2(200),
|
||||
able number,
|
||||
salary_sob_ids varchar2(2000),
|
||||
mode_id number,
|
||||
mode_name varchar2(200),
|
||||
table_name varchar2(200),
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
)
|
||||
/
|
||||
|
||||
|
||||
CREATE TABLE hrsa_push_setting_item
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
setting_id NUMBER(38,0),
|
||||
source varchar2(100),
|
||||
item varchar2(200),
|
||||
item_name varchar2(200),
|
||||
field_name varchar2(200),
|
||||
field_type number,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
)
|
||||
/
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
CREATE TABLE hrsa_push_record
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
name varchar2(200),
|
||||
setting_id NUMBER(38,0),
|
||||
mode_id number,
|
||||
table_name varchar2(100),
|
||||
acct_record_id NUMBER(38,0),
|
||||
type number,
|
||||
status number,
|
||||
start_time date,
|
||||
end_time date,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
)
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_push_record_detail
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
record_id NUMBER(38,0),
|
||||
acct_emp_id NUMBER(38,0),
|
||||
formula CLOB,
|
||||
execute_time date,
|
||||
status number,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
)
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record ADD fail_reason varchar2(4000)
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD fail_reason varchar2(4000)
|
||||
/
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
ALTER TABLE hrsa_push_setting_item ADD sorted_index NUMBER
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD data_id NUMBER(38,0)
|
||||
/
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
CREATE TABLE hrsa_push_setting
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
name varchar(200),
|
||||
able int,
|
||||
salary_sob_ids varchar(2000),
|
||||
mode_id int,
|
||||
mode_name varchar(200),
|
||||
table_name varchar(200),
|
||||
creator bigint,
|
||||
create_time timestamp,
|
||||
update_time timestamp,
|
||||
delete_type int,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_push_setting_item
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
setting_id bigint,
|
||||
source varchar(100),
|
||||
item varchar(200),
|
||||
item_name varchar(200),
|
||||
field_name varchar(200),
|
||||
field_type int,
|
||||
creator bigint,
|
||||
create_time timestamp,
|
||||
update_time timestamp,
|
||||
delete_type int,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
|
@ -1,41 +1,42 @@
|
|||
CREATE TABLE hrsa_hrm_snapshot (
|
||||
ID bigint(0) NOT NULL,
|
||||
CREATE TABLE hrsa_hrm_snapshot
|
||||
(
|
||||
ID bigint NOT NULL,
|
||||
snapshot_time timestamp,
|
||||
employee_id bigint(0),
|
||||
employee_id bigint,
|
||||
loginid varchar(100),
|
||||
LASTNAME varchar(60),
|
||||
SEX char(1),
|
||||
BIRTHDAY char(10) ,
|
||||
NATIONALITY int(0) ,
|
||||
NATIONALITY int ,
|
||||
MARITALSTATUS char(1) ,
|
||||
TELEPHONE varchar(60),
|
||||
MOBILE varchar(60) ,
|
||||
MOBILECALL varchar(60) ,
|
||||
EMAIL varchar(60),
|
||||
LOCATIONID int(0),
|
||||
LOCATIONID int,
|
||||
WORKROOM varchar(60),
|
||||
HOMEADDRESS varchar(100),
|
||||
RESOURCETYPE char(1) ,
|
||||
STARTDATE char(10) ,
|
||||
ENDDATE char(10),
|
||||
JOBTITLE int(0) ,
|
||||
JOBTITLE int ,
|
||||
JOBTITLENAME varchar(200) ,
|
||||
JOBACTIVITYDESC varchar(200),
|
||||
JOBLEVEL int(0) ,
|
||||
SECLEVEL int(0) ,
|
||||
DEPARTMENTID int(0) ,
|
||||
JOBLEVEL int ,
|
||||
SECLEVEL int ,
|
||||
DEPARTMENTID int ,
|
||||
DEPARTMENTNAME varchar(200) ,
|
||||
SUBCOMPANYID1 int(0) ,
|
||||
SUBCOMPANYID1 int ,
|
||||
SUBCOMPANYNAME varchar(200) ,
|
||||
COSTCENTERID int(0) ,
|
||||
MANAGERID int(0) ,
|
||||
ASSISTANTID int(0),
|
||||
BANKID1 int(0) ,
|
||||
COSTCENTERID int ,
|
||||
MANAGERID int ,
|
||||
ASSISTANTID int,
|
||||
BANKID1 int ,
|
||||
ACCOUNTID1 varchar(100) ,
|
||||
LASTLOGINDATE char(10) ,
|
||||
CERTIFICATENUM varchar(60) ,
|
||||
NATIVEPLACE varchar(100) ,
|
||||
EDUCATIONLEVEL int(0) ,
|
||||
EDUCATIONLEVEL int ,
|
||||
BEMEMBERDATE char(10) ,
|
||||
BEPARTYDATE char(10) ,
|
||||
WORKCODE varchar(60) ,
|
||||
|
|
@ -44,8 +45,8 @@ CREATE TABLE hrsa_hrm_snapshot (
|
|||
RESIDENTPLACE varchar(200) ,
|
||||
POLICY varchar(30) ,
|
||||
DEGREE varchar(30) ,
|
||||
USEKIND int(0) ,
|
||||
JOBCALL int(0) ,
|
||||
USEKIND int ,
|
||||
JOBCALL int ,
|
||||
jobcallname varchar(200) ,
|
||||
ACCUMFUNDACCOUNT varchar(30),
|
||||
BIRTHPLACE varchar(60) ,
|
||||
|
|
@ -54,14 +55,14 @@ CREATE TABLE hrsa_hrm_snapshot (
|
|||
RESIDENTPOSTCODE varchar(60) ,
|
||||
EXTPHONE varchar(50) ,
|
||||
MANAGERSTR varchar(500),
|
||||
STATUS int(0) ,
|
||||
STATUS int ,
|
||||
FAX varchar(60) ,
|
||||
ISLABOUUNION char(1),
|
||||
TEMPRESIDENTNUMBER varchar(60),
|
||||
PROBATIONENDDATE char(10),
|
||||
COUNTRYID int(0) ,
|
||||
ACCOUNTTYPE int(0) ,
|
||||
BELONGTO int(0) ,
|
||||
COUNTRYID int ,
|
||||
ACCOUNTTYPE int ,
|
||||
BELONGTO int ,
|
||||
ACCOUNTNAME varchar(200) ,
|
||||
companystartdate varchar(10),
|
||||
workstartdate varchar(10) ,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
CREATE TABLE hrsa_push_record
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
name varchar(200),
|
||||
setting_id bigint,
|
||||
mode_id int,
|
||||
table_name varchar(100),
|
||||
acct_record_id bigint,
|
||||
type int,
|
||||
status int,
|
||||
start_time timestamp,
|
||||
end_time timestamp,
|
||||
creator bigint,
|
||||
create_time timestamp,
|
||||
update_time timestamp,
|
||||
delete_type int,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
CREATE TABLE hrsa_push_record_detail
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
record_id bigint,
|
||||
acct_emp_id bigint,
|
||||
formula text,
|
||||
execute_time timestamp,
|
||||
status int,
|
||||
creator bigint,
|
||||
create_time timestamp,
|
||||
update_time timestamp,
|
||||
delete_type int,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
alter table hrsa_push_record add fail_reason VARCHAR(4000) ;
|
||||
|
||||
alter table hrsa_push_record_detail add fail_reason VARCHAR(4000) ;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
alter table hrsa_push_setting_item add sorted_index int ;
|
||||
|
||||
alter table hrsa_push_record_detail add data_id bigint ;
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
CREATE TABLE hrsa_push_setting
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
name varchar(200),
|
||||
able int,
|
||||
salary_sob_ids varchar(2000),
|
||||
mode_id int,
|
||||
mode_name varchar(200),
|
||||
table_name varchar(200),
|
||||
creator bigint,
|
||||
create_time datetime,
|
||||
update_time datetime,
|
||||
delete_type int,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
)
|
||||
GO
|
||||
|
||||
|
||||
CREATE TABLE hrsa_push_setting_item
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
setting_id bigint,
|
||||
source varchar(100),
|
||||
item varchar(200),
|
||||
item_name varchar(200),
|
||||
field_name varchar(200),
|
||||
field_type int,
|
||||
creator bigint,
|
||||
create_time datetime,
|
||||
update_time datetime,
|
||||
delete_type int,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
)
|
||||
GO
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
CREATE TABLE hrsa_push_record
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
name varchar(200),
|
||||
setting_id bigint,
|
||||
mode_id int,
|
||||
table_name varchar(100),
|
||||
acct_record_id bigint,
|
||||
type int,
|
||||
status int,
|
||||
start_time datetime,
|
||||
end_time datetime,
|
||||
creator bigint,
|
||||
create_time datetime,
|
||||
update_time datetime,
|
||||
delete_type int,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
)
|
||||
GO
|
||||
|
||||
CREATE TABLE hrsa_push_record_detail
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
record_id bigint,
|
||||
acct_emp_id bigint,
|
||||
formula text,
|
||||
execute_time datetime,
|
||||
status int,
|
||||
creator bigint,
|
||||
create_time datetime,
|
||||
update_time datetime,
|
||||
delete_type int,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
)
|
||||
GO
|
||||
|
||||
alter table hrsa_push_record add fail_reason VARCHAR(4000)
|
||||
go
|
||||
|
||||
alter table hrsa_push_record_detail add fail_reason VARCHAR(4000)
|
||||
go
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
alter table hrsa_push_setting_item add sorted_index int
|
||||
go
|
||||
|
||||
alter table hrsa_push_record_detail add data_id bigint
|
||||
go
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
CREATE TABLE hrsa_push_setting
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
name varchar2(200),
|
||||
able number,
|
||||
salary_sob_ids varchar2(2000),
|
||||
mode_id number,
|
||||
mode_name varchar2(200),
|
||||
table_name varchar2(200),
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_push_setting_item
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
setting_id NUMBER(38,0),
|
||||
source varchar2(100),
|
||||
item varchar2(200),
|
||||
item_name varchar2(200),
|
||||
field_name varchar2(200),
|
||||
field_type number,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
CREATE TABLE hrsa_push_record
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
name varchar2(200),
|
||||
setting_id NUMBER(38,0),
|
||||
mode_id number,
|
||||
table_name varchar2(100),
|
||||
acct_record_id NUMBER(38,0),
|
||||
type number,
|
||||
status number,
|
||||
start_time date,
|
||||
end_time date,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_push_record_detail
|
||||
(
|
||||
id NUMBER(38,0) NOT NULL,
|
||||
record_id NUMBER(38,0),
|
||||
acct_emp_id NUMBER(38,0),
|
||||
formula CLOB,
|
||||
execute_time date,
|
||||
status number,
|
||||
creator NUMBER(38,0),
|
||||
create_time date,
|
||||
update_time date,
|
||||
delete_type number,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record ADD fail_reason varchar2(4000);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD fail_reason varchar2(4000);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE hrsa_push_setting_item ADD sorted_index NUMBER;
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_push_record_detail ADD data_id NUMBER(38,0);
|
||||
/
|
||||
|
||||
|
|
@ -6,5 +6,5 @@ and employee_id not in
|
|||
where tax_agent_id =扣缴义务人id and delete_type = 0)
|
||||
|
||||
|
||||
update hrsa_tax_agent_emp set delete_type = 3
|
||||
update hrsa_tax_agent_emp set delete_type = 3 where delete_type = 0
|
||||
where tax_agent_id=扣缴义务人id and delete_type = 0 and employee_id not in (select employee_id from hrsa_salary_archive where tax_agent_id =扣缴义务人id and delete_type = 0)
|
||||
|
|
@ -18,7 +18,8 @@ update hrsa_salary_archive set delete_type=3 where tax_agent_id=扣缴义务人
|
|||
|
||||
|
||||
二、删除停薪员工档案
|
||||
update hrsa_salary_archive set delete_type=3 where run_status in ('STOP_FROM_PENDING','STOP_FROM_SUSPEND')
|
||||
update hrsa_salary_archive set delete_type=3 where delete_type=0 and run_status in ('STOP_FROM_PENDING','STOP_FROM_SUSPEND')
|
||||
update hrsa_salary_archive_item set delete_type=3 where delete_type=0
|
||||
|
||||
二、删除停薪员工社保档案
|
||||
update hrsa_insurance_base_info set delete_type=3 where run_status in ('4','5')
|
||||
|
|
@ -28,10 +29,10 @@ update hrsa_insurance_base_info set delete_type=3 where run_status in ('4','5')
|
|||
|
||||
|
||||
--删除社保福利档案
|
||||
update hrsa_insurance_base_info set delete_type=3 WHERE employee_id = ? and payment_organization =?
|
||||
update hrsa_social_archives set delete_type=3 WHERE employee_id = ? and payment_organization =?
|
||||
update hrsa_fund_archives set delete_type=3 WHERE employee_id = ? and payment_organization =?
|
||||
update hrsa_other_archives set delete_type=3 WHERE employee_id = ? and payment_organization =?
|
||||
update hrsa_insurance_base_info set delete_type=3 WHERE delete_type=0 and employee_id = ? and payment_organization =?
|
||||
update hrsa_social_archives set delete_type=3 WHERE delete_type=0 and employee_id = ? and payment_organization =?
|
||||
update hrsa_fund_archives set delete_type=3 WHERE delete_type=0 and employee_id = ? and payment_organization =?
|
||||
update hrsa_other_archives set delete_type=3 WHERE delete_type=0 and employee_id = ? and payment_organization =?
|
||||
|
||||
-- 删除薪资档案
|
||||
update hrsa_salary_archive set delete_type=3 where employee_id = ? and tax_agent_id=?
|
||||
|
|
@ -45,4 +46,13 @@ update hrsa_other_archives set delete_type=3;
|
|||
update hrsa_tax_agent_emp set delete_type=3;
|
||||
|
||||
|
||||
-- 删除核算记录
|
||||
update hrsa_salary_acct_record set delete_type=3 where delete_type=0 and id= 核算记录id;
|
||||
update hrsa_salary_acct_emp set delete_type=3 where delete_type=0 and salary_acct_record_id=核算记录id;
|
||||
update hrsa_salary_acct_result set delete_type=3 where delete_type=0 and salary_acct_record_id = 核算记录id;
|
||||
|
||||
--删除工资单信息
|
||||
update hrsa_salary_send set delete_type=3 where delete_type=0 and salary_accounting_id = 核算记录id;
|
||||
update hrsa_salary_send_info set delete_type=3 where delete_type=0 and salary_acct_record_id = 核算记录id;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -80,6 +80,8 @@ public class CheckEditSIArchiveAction implements Action {
|
|||
}
|
||||
List<Map<String, Object>> importData = new ArrayList<>();
|
||||
importData.add(SalaryEntityUtil.convert2Map(list, CheckEditSIArchiveAction.SalaryField::getSalaryName, CheckEditSIArchiveAction.SalaryField::getValue));
|
||||
log.info("CheckEditSIArchiveAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importData);
|
||||
|
||||
//福利执行状态
|
||||
String runStatus = list.stream().filter(f -> f.salaryName.equals("档案状态")).findFirst().map(CheckEditSIArchiveAction.SalaryField::getValue).orElse("1");
|
||||
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ public class CheckEditSalaryAction implements Action {
|
|||
List<Map<String, Object>> importData = new ArrayList<>();
|
||||
importData.add(SalaryEntityUtil.convert2Map(list, SalaryField::getSalaryName, SalaryField::getValue));
|
||||
|
||||
log.info("CheckEditSalaryAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importData);
|
||||
SalaryArchiveImportActionParam build = SalaryArchiveImportActionParam.builder()
|
||||
.importDatas(importData)
|
||||
.build();
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ public class CheckInitSalaryAction implements Action {
|
|||
list.add(new SalaryField(processField, salaryName, value));
|
||||
}
|
||||
Map<String, Object> importDataMap = SalaryEntityUtil.convert2Map(list, SalaryField::getSalaryName, SalaryField::getValue);
|
||||
|
||||
log.info("CheckInitSalaryAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importDataMap);
|
||||
return doSalaryArchiveInit(requestInfo, importDataMap);
|
||||
} catch (Exception e) {
|
||||
log.error("定薪检查异常", e);
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ public class CheckStayAddToPaySIArchiveAction implements Action {
|
|||
}
|
||||
// 流程数据
|
||||
Map<String, Object> importDataMap = SalaryEntityUtil.convert2Map(list, CheckStayAddToPaySIArchiveAction.SalaryField::getSalaryName, CheckStayAddToPaySIArchiveAction.SalaryField::getValue);
|
||||
log.info("CheckStayAddToPaySIArchiveAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importDataMap);
|
||||
String taxAgentName = importDataMap.getOrDefault("个税扣缴义务人", "").toString();
|
||||
List<TaxAgentPO> taxAgentPOS = getTaxAgentMapper().listByName(taxAgentName);
|
||||
if(CollectionUtils.isEmpty(taxAgentPOS)){
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ public class CheckStayDelToStopSIArchiveAction implements Action {
|
|||
}
|
||||
// 流程数据
|
||||
Map<String, Object> importDataMap = SalaryEntityUtil.convert2Map(list, CheckStayDelToStopSIArchiveAction.SalaryField::getSalaryName, CheckStayDelToStopSIArchiveAction.SalaryField::getValue);
|
||||
log.info("CheckStayDelToStopSIArchiveAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importDataMap);
|
||||
String taxAgentName = importDataMap.getOrDefault("个税扣缴义务人", "").toString();
|
||||
List<TaxAgentPO> taxAgentPOS = getTaxAgentMapper().listByName(taxAgentName);
|
||||
if(CollectionUtils.isEmpty(taxAgentPOS)){
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ public class CheckStopSalaryAction implements Action {
|
|||
}
|
||||
// 流程数据
|
||||
Map<String, Object> importDataMap = SalaryEntityUtil.convert2Map(list, CheckStopSalaryAction.SalaryField::getSalaryName, CheckStopSalaryAction.SalaryField::getValue);
|
||||
log.info("CheckStopSalaryAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importDataMap);
|
||||
String taxAgentName = importDataMap.getOrDefault("个税扣缴义务人", "").toString();
|
||||
List<TaxAgentPO> taxAgentPOS = getTaxAgentMapper().listByName(taxAgentName);
|
||||
if(CollectionUtils.isEmpty(taxAgentPOS)){
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ public class CopyToPaySIArchiveAction implements Action {
|
|||
}
|
||||
List<Map<String, Object>> importData = new ArrayList<>();
|
||||
importData.add(SalaryEntityUtil.convert2Map(list, CopyToPaySIArchiveAction.SalaryField::getSalaryName, CopyToPaySIArchiveAction.SalaryField::getValue));
|
||||
log.info("CopyToPaySIArchiveAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importData);
|
||||
//操作人
|
||||
String uid = list.stream().filter(f -> f.salaryName.equals("操作人")).findFirst().map(CopyToPaySIArchiveAction.SalaryField::getValue).orElse("1");
|
||||
//增员
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ public class EditSIArchiveAction implements Action {
|
|||
}
|
||||
List<Map<String, Object>> importData = new ArrayList<>();
|
||||
importData.add(SalaryEntityUtil.convert2Map(list, EditSIArchiveAction.SalaryField::getSalaryName, EditSIArchiveAction.SalaryField::getValue));
|
||||
log.info("EditSIArchiveAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importData);
|
||||
//福利执行状态
|
||||
String runStatus = list.stream().filter(f -> f.salaryName.equals("档案状态")).findFirst().map(EditSIArchiveAction.SalaryField::getValue).orElse("1");
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ public class EditSalaryAction implements Action {
|
|||
}
|
||||
List<Map<String, Object>> importData = new ArrayList<>();
|
||||
importData.add(SalaryEntityUtil.convert2Map(list, SalaryField::getSalaryName, SalaryField::getValue));
|
||||
|
||||
log.info("EditSalaryAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importData);
|
||||
SalaryArchiveImportActionParam build = SalaryArchiveImportActionParam.builder()
|
||||
.importDatas(importData)
|
||||
.build();
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ public class EditToPaySIArchiveAction implements Action {
|
|||
}
|
||||
List<Map<String, Object>> importData = new ArrayList<>();
|
||||
importData.add(SalaryEntityUtil.convert2Map(list, EditToPaySIArchiveAction.SalaryField::getSalaryName, EditToPaySIArchiveAction.SalaryField::getValue));
|
||||
log.info("EditToPaySIArchiveAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importData);
|
||||
//福利执行状态
|
||||
String runStatus = EmployeeStatusEnum.STAY_ADD.getValue();
|
||||
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ public class EditToStopSIArchiveAction implements Action {
|
|||
}
|
||||
List<Map<String, Object>> importData = new ArrayList<>();
|
||||
importData.add(SalaryEntityUtil.convert2Map(list, EditToStopSIArchiveAction.SalaryField::getSalaryName, EditToStopSIArchiveAction.SalaryField::getValue));
|
||||
log.info("EditToStopSIArchiveAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importData);
|
||||
//福利执行状态
|
||||
String runStatus = EmployeeStatusEnum.PAYING.getValue();
|
||||
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ public class InitSalaryAction implements Action {
|
|||
}
|
||||
|
||||
Map<String, Object> importDataMap = SalaryEntityUtil.convert2Map(list, SalaryField::getSalaryName, SalaryField::getValue);
|
||||
|
||||
log.info("InitSalaryAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importDataMap);
|
||||
return doSalaryArchiveInit(requestInfo, importDataMap);
|
||||
} catch (Exception e) {
|
||||
log.error("定薪异常", e);
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ public class RehireAction implements Action {
|
|||
list.add(new SalaryField(processField, salaryName, value));
|
||||
}
|
||||
Map<String, Object> salaryFieldMap = SalaryEntityUtil.convert2Map(list, SalaryField::getSalaryName, SalaryField::getValue);
|
||||
log.info("RehireAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), salaryFieldMap);
|
||||
String taxAgentName = salaryFieldMap.getOrDefault("个税扣缴义务人", "").toString();
|
||||
String empIdStr = salaryFieldMap.getOrDefault("员工id", "").toString();
|
||||
if (StringUtils.isBlank(taxAgentName) || StringUtils.isBlank(empIdStr)) {
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ public class StayAddToPaySIArchiveAction implements Action {
|
|||
}
|
||||
// 流程数据
|
||||
Map<String, Object> importDataMap = SalaryEntityUtil.convert2Map(list, StayAddToPaySIArchiveAction.SalaryField::getSalaryName, StayAddToPaySIArchiveAction.SalaryField::getValue);
|
||||
log.info("StayAddToPaySIArchiveAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importDataMap);
|
||||
String taxAgentName = importDataMap.getOrDefault("个税扣缴义务人", "").toString();
|
||||
List<TaxAgentPO> taxAgentPOS = getTaxAgentMapper().listByName(taxAgentName);
|
||||
if(CollectionUtils.isEmpty(taxAgentPOS)){
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ public class StayDelToStopSIArchiveAction implements Action {
|
|||
}
|
||||
// 流程数据
|
||||
Map<String, Object> importDataMap = SalaryEntityUtil.convert2Map(list, StayDelToStopSIArchiveAction.SalaryField::getSalaryName, StayDelToStopSIArchiveAction.SalaryField::getValue);
|
||||
log.info("StayDelToStopSIArchiveAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importDataMap);
|
||||
String taxAgentName = importDataMap.getOrDefault("个税扣缴义务人", "").toString();
|
||||
List<TaxAgentPO> taxAgentPOS = getTaxAgentMapper().listByName(taxAgentName);
|
||||
if(CollectionUtils.isEmpty(taxAgentPOS)){
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ public class StopSalaryAction implements Action {
|
|||
}
|
||||
// 流程数据
|
||||
Map<String, Object> importDataMap = SalaryEntityUtil.convert2Map(list, StopSalaryAction.SalaryField::getSalaryName, StopSalaryAction.SalaryField::getValue);
|
||||
log.info("StopSalaryAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importDataMap);
|
||||
//操作人
|
||||
String uid = importDataMap.getOrDefault("操作人","1").toString();
|
||||
User user = new User(Integer.parseInt(uid));
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@ public class UpdateSISchemeDetailAction implements Action {
|
|||
rs.beforFirst();
|
||||
// 流程数据
|
||||
Map<String, Object> importDataMap = SalaryEntityUtil.convert2Map(list, UpdateSISchemeDetailAction.SalaryField::getSalaryName, UpdateSISchemeDetailAction.SalaryField::getValue);
|
||||
log.info("UpdateSISchemeDetailAction,tableName :{},workflowid:{},流程参数:{}",tableName, requestInfo.getWorkflowid(), importDataMap);
|
||||
//设置更新对象元素
|
||||
String schemeId = importDataMap.getOrDefault("福利方案id", "").toString();
|
||||
String schemeName = importDataMap.getOrDefault("福利方案名称", "").toString();
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ import com.engine.salary.entity.taxagent.dto.TaxAgentEmployeeTaxAgentDTO;
|
|||
import com.engine.salary.mapper.salarybill.SalarySendRangeObjMapper;
|
||||
import com.engine.salary.service.TaxAgentService;
|
||||
import com.engine.salary.service.impl.TaxAgentServiceImpl;
|
||||
import com.engine.salary.util.db.MapperProxyFactory;
|
||||
import com.google.common.collect.Lists;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.ibatis.session.SqlSession;
|
||||
import weaver.conn.mybatis.MyBatisFactory;
|
||||
|
|
@ -23,6 +25,10 @@ public class SalarySendRangeObjBiz {
|
|||
return ServiceUtil.getService(TaxAgentServiceImpl.class);
|
||||
}
|
||||
|
||||
private SalarySendRangeObjMapper getSalarySendRangeObjMapper() {
|
||||
return MapperProxyFactory.getProxy(SalarySendRangeObjMapper.class);
|
||||
}
|
||||
|
||||
public <R> R applyMapper(Function<SalarySendRangeObjMapper, R> mapper) {
|
||||
try (SqlSession sqlSession = MyBatisFactory.sqlSessionFactory.openSession()) {
|
||||
final SalarySendRangeObjMapper salarySendRangeObjMapper = sqlSession.getMapper(SalarySendRangeObjMapper.class);
|
||||
|
|
@ -41,7 +47,13 @@ public class SalarySendRangeObjBiz {
|
|||
}
|
||||
|
||||
public List<SalarySendUserInfoDTO> getSalarySendUserInfoDTOs(List<Long> employees) {
|
||||
List<SalarySendUserInfoDTO> userDTOs = applyMapper(mapper -> mapper.getUserInfoByEmployeeIds(employees));
|
||||
List<SalarySendUserInfoDTO> userDTOs = new ArrayList<>();
|
||||
List<List<Long>> partition = Lists.partition(employees, 500);
|
||||
partition.forEach(l->{
|
||||
List<SalarySendUserInfoDTO> userInfos = getSalarySendRangeObjMapper().getUserInfoByEmployeeIds(l);
|
||||
userDTOs.addAll(userInfos);
|
||||
});
|
||||
|
||||
Map<Long, SalarySendUserInfoDTO> userMap = userDTOs.stream()
|
||||
.collect(Collectors.toMap(SalarySendUserInfoDTO::getResourceId, Function.identity()));
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package com.engine.salary.entity.push.dto;
|
|||
import com.engine.hrmelog.annotation.ElogTransform;
|
||||
import com.engine.salary.annotation.TableTitle;
|
||||
import com.engine.salary.enums.push.PushRecordStatusEnum;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
|
@ -50,7 +51,7 @@ public class PushRecordDTO {
|
|||
/**
|
||||
* 数据库表名
|
||||
*/
|
||||
@TableTitle(title = "记录名", dataIndex = "name", key = "name")
|
||||
@TableTitle(title = "数据表名", dataIndex = "tableName", key = "tableName")
|
||||
private String tableName;
|
||||
|
||||
|
||||
|
|
@ -59,56 +60,53 @@ public class PushRecordDTO {
|
|||
*
|
||||
* @see PushRecordStatusEnum
|
||||
*/
|
||||
@TableTitle(title = "推送状态", dataIndex = "status", key = "status")
|
||||
@TableTitle(title = "推送状态", dataIndex = "statusName", key = "statusName")
|
||||
private String statusName;
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 执行时间
|
||||
*/
|
||||
@TableTitle(title = "执行时间", dataIndex = "startTime", key = "startTime")
|
||||
@TableTitle(title = "执行开始时间", dataIndex = "startTime", key = "startTime")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@ElogTransform(name = "结束时间")
|
||||
@TableTitle(title = "执行结束时间", dataIndex = "endTime", key = "endTime")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date endTime;
|
||||
|
||||
|
||||
/**
|
||||
* 推送类型,0推送,1撤回
|
||||
*/
|
||||
@ElogTransform(name = "推送类型")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ElogTransform(name = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ElogTransform(name = "创建人")
|
||||
private Long creator;
|
||||
|
||||
/**
|
||||
* 是否已删除。0:未删除、1:已删除
|
||||
*/
|
||||
@ElogTransform(name = "是否已删除。0:未删除、1:已删除")
|
||||
private Integer deleteType;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
@ElogTransform(name = "租户ID")
|
||||
private String tenantKey;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ElogTransform(name = "更新时间")
|
||||
private Date updateTime;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -33,18 +33,22 @@ public class PushRecordDetailDTO {
|
|||
*/
|
||||
private Long acctEmpId;
|
||||
|
||||
@TableTitle(title = "人员", dataIndex = "username",key = "username")
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 执行状态
|
||||
* @see com.engine.salary.enums.push.PushRecordDetailStatusEnum
|
||||
*/
|
||||
@TableTitle(title = "执行状态", dataIndex = "status",key = "status")
|
||||
@TableTitle(title = "执行状态", dataIndex = "statusName",key = "statusName")
|
||||
private String statusName;
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 失败原因
|
||||
*/
|
||||
@TableTitle(title = "失败原因", dataIndex = "fail_reason",key = "status")
|
||||
private String fail_reason;
|
||||
private String failReason;
|
||||
|
||||
/**
|
||||
* 执行sql
|
||||
|
|
|
|||
|
|
@ -59,4 +59,7 @@ public class PushSettingItemDTO {
|
|||
@TableTitle(title = "字段类型", dataIndex = "fieldTypeName", key = "fieldTypeName")
|
||||
private String fieldTypeName;
|
||||
|
||||
@TableTitle(title = "排序", dataIndex = "sortedIndex", key = "sortedIndex")
|
||||
private Integer sortedIndex;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.engine.salary.entity.push.param;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 创建推送记录
|
||||
* <p>Copyright: Copyright (c) 2024</p>
|
||||
* <p>Company: 泛微软件</p>
|
||||
*
|
||||
* @author qiantao
|
||||
* @version 1.0
|
||||
**/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CreatePushParam {
|
||||
|
||||
|
||||
private List<Long> salaryAcctRecordIds;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -5,6 +5,8 @@ import lombok.Builder;
|
|||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
|
|
@ -13,7 +15,6 @@ import lombok.NoArgsConstructor;
|
|||
public class PushParam {
|
||||
|
||||
|
||||
private Long salaryAcctRecordId;
|
||||
|
||||
private List<Long> ids;
|
||||
|
||||
}
|
||||
|
|
@ -59,6 +59,11 @@ public class PushSettingItemSaveParam {
|
|||
@DataCheck(require = true, message = "字段类型为空")
|
||||
private PushItemFieldEnum fieldType;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sortedIndex;
|
||||
|
||||
|
||||
//主键id集合
|
||||
private Collection<Long> ids;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
package com.engine.salary.entity.push.param;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WithdrawParam {
|
||||
|
||||
|
||||
private List<Long> ids;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.engine.salary.entity.push.param;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 创建推送记录
|
||||
* <p>Copyright: Copyright (c) 2024</p>
|
||||
* <p>Company: 泛微软件</p>
|
||||
*
|
||||
* @author qiantao
|
||||
* @version 1.0
|
||||
**/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WithdrawPushParam {
|
||||
|
||||
|
||||
private List<Long> ids;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -34,6 +34,11 @@ public class PushRecordDetailPO {
|
|||
@ElogTransform(name = "核算人员id")
|
||||
private Long acctEmpId;
|
||||
|
||||
/**
|
||||
* 核算人员id
|
||||
*/
|
||||
private Long dataId;
|
||||
|
||||
/**
|
||||
* 执行状态
|
||||
* @see com.engine.salary.enums.push.PushRecordDetailStatusEnum
|
||||
|
|
@ -45,13 +50,13 @@ public class PushRecordDetailPO {
|
|||
* 失败原因
|
||||
*/
|
||||
@ElogTransform(name = "失败原因")
|
||||
private String fail_reason;
|
||||
private String failReason;
|
||||
|
||||
/**
|
||||
* 执行sql
|
||||
*/
|
||||
@ElogTransform(name = "执行sql")
|
||||
private String execute;
|
||||
private String formula;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public class PushRecordPO {
|
|||
* 失败原因
|
||||
*/
|
||||
@ElogTransform(name = "失败原因")
|
||||
private String fail_reason;
|
||||
private String failReason;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
|
|
|
|||
|
|
@ -62,6 +62,10 @@ public class PushSettingItemPO {
|
|||
@ElogTransform(name = "字段类型")
|
||||
private Integer fieldType;
|
||||
|
||||
|
||||
@ElogTransform(name = "排序")
|
||||
private Integer sortedIndex;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -630,7 +630,8 @@ public class SalaryBillBO {
|
|||
} else {
|
||||
for (Object keyName : e.keySet()) {
|
||||
if ((salaryItem.getId() + SalaryArchiveConstant.DYNAMIC_SUFFIX).equals(keyName.toString())) {
|
||||
boolean isHide = (isHideNull && StringUtils.isEmpty(e.getOrDefault(keyName.toString(), StringUtils.EMPTY).toString()))
|
||||
String itemValue = Util.null2String(e.get(keyName.toString()));
|
||||
boolean isHide = (isHideNull && StringUtils.isEmpty(itemValue))
|
||||
||
|
||||
(isHideZero && NumberUtils.isCreatable(e.getOrDefault(keyName.toString(), "0").toString())
|
||||
&& BigDecimal.ZERO.compareTo(new BigDecimal(e.getOrDefault(keyName.toString(), "0").toString())) == 0);
|
||||
|
|
@ -641,7 +642,7 @@ public class SalaryBillBO {
|
|||
emailContent.append("</th>");
|
||||
|
||||
emailContent.append("<td style=\"padding: 16px 24px;display: table-cell;flex: 1;color: #000000d9;font-size: 12px;line-height: 1.5715;word-break: break-word;overflow-wrap: break-word;border-collapse: collapse;border: 1px solid rgba(0,0,0,.06);\">");
|
||||
emailContent.append(e.get(keyName.toString()));
|
||||
emailContent.append(itemValue.replaceAll("null", ""));
|
||||
emailContent.append("</td>");
|
||||
}
|
||||
break;
|
||||
|
|
@ -710,7 +711,8 @@ public class SalaryBillBO {
|
|||
SalaryTemplateSalaryItemListDTO salaryItem = itemPartition.get(i);
|
||||
for (Object keyName : e.keySet()) {
|
||||
if ((salaryItem.getId() + SalaryArchiveConstant.DYNAMIC_SUFFIX).equals(keyName.toString())) {
|
||||
boolean isHide = (isHideNull && StringUtils.isEmpty(e.getOrDefault(keyName.toString(), StringUtils.EMPTY).toString()))
|
||||
String itemValue = Util.null2String(e.get(keyName.toString()));
|
||||
boolean isHide = (isHideNull && StringUtils.isEmpty(itemValue))
|
||||
||
|
||||
(isHideZero && NumberUtils.isCreatable(e.getOrDefault(keyName.toString(), "0").toString())
|
||||
&& BigDecimal.ZERO.compareTo(new BigDecimal(e.getOrDefault(keyName.toString(), "0").toString())) == 0);
|
||||
|
|
@ -721,7 +723,7 @@ public class SalaryBillBO {
|
|||
emailContent.append("</th>");
|
||||
|
||||
emailContent.append("<td style=\"padding: 16px 24px;display: table-cell;flex: 1;color: #000000d9;font-size: 12px;line-height: 1.5715;word-break: break-word;overflow-wrap: break-word;border-collapse: collapse;border: 1px solid rgba(0,0,0,.06);\">");
|
||||
emailContent.append(e.get(keyName.toString()));
|
||||
emailContent.append(itemValue.replaceAll("null", ""));
|
||||
emailContent.append("</td>");
|
||||
}
|
||||
break;
|
||||
|
|
@ -848,7 +850,7 @@ public class SalaryBillBO {
|
|||
if ("text".equals(wmClassify)) {
|
||||
wmTextFieldIds = (List<String>) salaryBillWatermark.getWmSetting().getOrDefault("wmSelectedFieldIds", Collections.emptyList());
|
||||
|
||||
List<String> empFields = Arrays.asList(HRM_Name, HRM_Num, HRM_Mobile, HRM_Email, HRM_CurrentOperatorId, HRM_Department);
|
||||
List<String> empFields = Arrays.asList(HRM_Name, HRM_Num, HRM_Mobile, HRM_Email, HRM_CurrentOperatorId, HRM_Department, HRM_SecondDepartment);
|
||||
if (wmTextFieldIds.contains(HRM_SecondDepartment)) {
|
||||
// 需要查分部
|
||||
salaryBillWatermark.getWmSetting().put("needQuerySubDepart", true);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
package com.engine.salary.entity.salaryBill.param;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 工资单批量操作参数
|
||||
* <p>Copyright: Copyright (c) 2024</p>
|
||||
* <p>Company: 泛微软件</p>
|
||||
*
|
||||
* @author qiantao
|
||||
* @version 1.0
|
||||
**/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SalarySendBatParam {
|
||||
|
||||
// 工资单发放Id
|
||||
private List<Long> salarySendIds;
|
||||
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
package com.engine.salary.entity.salaryacct.bo;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.engine.salary.constant.TaxDeclarationDataIndexConstant;
|
||||
import com.engine.salary.entity.salaryacct.po.SalaryAcctResultPO;
|
||||
import com.engine.salary.entity.salaryitem.po.SalaryItemPO;
|
||||
|
|
@ -73,6 +74,9 @@ public class SalaryAcctConsolidatedTaxBO {
|
|||
.filter(e -> Objects.equals(e.getSalaryItemId(), optional.get()))
|
||||
.map(e -> SalaryEntityUtil.empty2Zero(e.getResultValue()))
|
||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
if (StrUtil.isBlank(resultValue)) {
|
||||
resultValue = "0.00";
|
||||
}
|
||||
return new BigDecimal(resultValue).add(income).toPlainString();
|
||||
}
|
||||
// 个税调差为0
|
||||
|
|
@ -98,6 +102,9 @@ public class SalaryAcctConsolidatedTaxBO {
|
|||
.map(e -> SalaryEntityUtil.empty2Zero(e.getResultValue()))
|
||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
}
|
||||
if (StrUtil.isBlank(resultValue)) {
|
||||
resultValue = "0.00";
|
||||
}
|
||||
return new BigDecimal(resultValue).add(refundedOrSupplementedTax).subtract(taxAdjustment).toPlainString();
|
||||
}
|
||||
return resultValue;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,34 @@
|
|||
package com.engine.salary.entity.salaryacct.param;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 批量操作参数
|
||||
* <p>Copyright: Copyright (c) 2024</p>
|
||||
* <p>Company: 泛微软件</p>
|
||||
*
|
||||
* @author qiantao
|
||||
* @version 1.0
|
||||
**/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SalaryAcctBatParam {
|
||||
|
||||
//薪资所属月
|
||||
private Date salaryMonth;
|
||||
//薪资账套id
|
||||
private List<Long> salarySobIds;
|
||||
//备注
|
||||
private String description;
|
||||
|
||||
|
||||
private List<Long> salaryAcctRecordIds;
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@ import java.util.Collection;
|
|||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SalaryAcctCalculateParam {
|
||||
public class SalaryAcctCalculateParam {
|
||||
|
||||
//核算人员的id,不是employeeId而是salaryAcctEmpId
|
||||
private Collection<Long> ids;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import lombok.Data;
|
|||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.YearMonth;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 薪资核算列表查询参数
|
||||
|
|
@ -31,6 +32,11 @@ public class SalaryAcctRecordQueryParam extends BaseQueryParam {
|
|||
//账套名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 扣缴义务人id集合
|
||||
*/
|
||||
private List<Long> taxAgentIds;
|
||||
|
||||
private String startMonthStr;
|
||||
private String endMonthStr;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ public class SalarySobItemAggregateBO {
|
|||
.canEdit(openFormulaForcedEditing || Objects.equals(salaryItemPO.getCanEdit(), 1))
|
||||
.canDelete(openFormulaForcedEditing || salaryItemPO.getCanDelete() == null || Objects.equals(salaryItemPO.getCanDelete(), 1))
|
||||
.width(salaryItemPO.getWidth())
|
||||
.defaultValue(salaryItemPO.getDefaultValue())
|
||||
.defaultValue(salarySobItemPO.getDefaultValue())
|
||||
.build());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,4 +28,6 @@ public class SalarySobQueryParam extends BaseQueryParam {
|
|||
* 数据过滤级别
|
||||
*/
|
||||
private AuthFilterTypeEnum filterType;
|
||||
|
||||
private boolean isShare;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,40 @@
|
|||
package com.engine.salary.entity.siaccount.param;
|
||||
|
||||
|
||||
import com.engine.salary.util.valid.DataCheck;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AccountBatParam {
|
||||
|
||||
//账单月份")
|
||||
//@NotNull
|
||||
@DataCheck(require = true,message = "账单月份不能为空")
|
||||
private String billMonth;
|
||||
|
||||
//备注")
|
||||
//@Length(max = 60)
|
||||
@DataCheck(max = 60,message = "备注长度不能超过60个字符")
|
||||
private String remarks;
|
||||
|
||||
|
||||
/**
|
||||
* 个税扣缴义务人id
|
||||
*/
|
||||
@DataCheck(require = true,message = "个税扣缴义务人不能为空")
|
||||
private List<Long> paymentOrganizations;
|
||||
|
||||
|
||||
|
||||
private List<Long> ids;
|
||||
|
||||
}
|
||||
|
|
@ -26,4 +26,6 @@ public class TaxAgentQueryParam extends BaseQueryParam {
|
|||
|
||||
//个税扣缴义务人名称
|
||||
private String name;
|
||||
|
||||
private boolean isShare;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,6 +38,10 @@ public class TaxDeclarationListDTO {
|
|||
@TableTitle(title = "薪资类型", dataIndex = "incomeCategory", key = "incomeCategory")
|
||||
private String incomeCategory;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
|
||||
@TableTitle(title = "税款所属期", dataIndex = "taxCycle", key = "taxCycle")
|
||||
private Date taxCycle;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
|
||||
@TableTitle(title = "薪资所属月", dataIndex = "salaryMonth", key = "salaryMonth")
|
||||
private Date salaryMonth;
|
||||
|
|
@ -48,10 +52,6 @@ public class TaxDeclarationListDTO {
|
|||
@TableTitle(title = "个税扣缴义务人", dataIndex = "taxAgentName", key = "taxAgentName")
|
||||
private String taxAgentName;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
|
||||
@TableTitle(title = "税款所属期", dataIndex = "taxCycle", key = "taxCycle")
|
||||
private Date taxCycle;
|
||||
|
||||
//@TableTitle(title = "操作人id", dataIndex = "operateEmployeeId", key = "operateEmployeeId")
|
||||
private Long operateEmployeeId;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,54 @@
|
|||
package com.engine.salary.entity.taxdeclaration.param;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.YearMonth;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 生成个税申报表参数
|
||||
* <p>Copyright: Copyright (c) 2022</p>
|
||||
* <p>Company: 泛微软件</p>
|
||||
*
|
||||
* @author qiantao
|
||||
* @version 1.0
|
||||
**/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class TaxDeclarationBatParam {
|
||||
|
||||
/**
|
||||
* 个税申报id
|
||||
*/
|
||||
private Long taxDeclarationId;
|
||||
|
||||
/**
|
||||
* 薪资所属月
|
||||
*/
|
||||
private YearMonth salaryMonth;
|
||||
|
||||
/**
|
||||
* 个税扣缴义务人
|
||||
*/
|
||||
private List<Long> taxAgentIds;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String description;
|
||||
|
||||
private String salaryMonthStr;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
private Date taxCycle;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
private Date salaryDate;
|
||||
}
|
||||
|
|
@ -1,9 +1,14 @@
|
|||
package com.engine.salary.entity.taxdeclaration.param;
|
||||
|
||||
import com.engine.salary.common.BaseQueryParam;
|
||||
import lombok.*;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.YearMonth;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 个税申报记录查询条件
|
||||
|
|
@ -20,12 +25,13 @@ import java.time.YearMonth;
|
|||
public class TaxDeclarationListQueryParam extends BaseQueryParam {
|
||||
|
||||
//薪资所属月范围起点
|
||||
private YearMonth fromSalaryMonth;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
private Date fromSalaryMonth;
|
||||
|
||||
//薪资所属月范围终点
|
||||
private YearMonth endSalaryMonth;
|
||||
//薪资所属月范围终点
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
private Date endSalaryMonth;
|
||||
|
||||
private String fromSalaryMonthStr;
|
||||
|
||||
private String endSalaryMonthStr;
|
||||
//个税扣缴义务人菜单")
|
||||
private String taxAgentName;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,6 +90,13 @@ public class TaxDeclarationPO {
|
|||
LocalDateRange salaryMonths;
|
||||
|
||||
|
||||
//"开始日期
|
||||
private Date taxCycleFromDate;
|
||||
|
||||
//结束日期
|
||||
private Date taxCycleEndDate;
|
||||
|
||||
|
||||
|
||||
private Collection<Long> taxAgentIds;
|
||||
private Set<String> opts;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,8 @@ public enum PushRecordDetailStatusEnum implements BaseEnum<Integer> {
|
|||
PREPARE(0, "待推送", 87625),
|
||||
SUCCESS(1, "推送成功", 85393),
|
||||
FAIL(2, "推送失败", 85393),
|
||||
WITHDRAW(3, "已撤回", 85393);
|
||||
WITHDRAW_SUCCESS(3, "已撤回", 85393),
|
||||
WITHDRAW_FAIL(4, "撤回失败", 85393);
|
||||
|
||||
private int value;
|
||||
|
||||
|
|
@ -52,7 +53,7 @@ public enum PushRecordDetailStatusEnum implements BaseEnum<Integer> {
|
|||
return salaryDataSourceEnum;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return PREPARE;
|
||||
}
|
||||
|
||||
public static String getDefaultLabelByValue(Integer value) {
|
||||
|
|
|
|||
|
|
@ -14,13 +14,14 @@ import java.util.Objects;
|
|||
* @version 1.0
|
||||
**/
|
||||
public enum PushRecordStatusEnum implements BaseEnum<Integer> {
|
||||
DATA_PREPARE(0, "数据构建", 87625),
|
||||
DATA_FINISH(1, "构建完毕", 87625),
|
||||
RUN_WAITING(2, "等待执行", 87625),
|
||||
RUN_PROGRESS(3, "执行中", 85393),
|
||||
RUN_COMPLETE(4, "执行完毕", 85393),
|
||||
RUN_SUCCESS(5, "执行成功", 85393),
|
||||
RUN_FAIL(6, "执行失败", 85393);
|
||||
DATA_PREPARE(0, "准备中", 87625),
|
||||
DATA_FINISH(1, "准备完毕", 87625),
|
||||
RUN_PROGRESS(2, "推送中", 85393),
|
||||
RUN_SUCCESS(3, "推送成功", 85393),
|
||||
RUN_FAIL(4, "推送失败", 85393),
|
||||
WITHDRAW(5, "撤回中", 85393),
|
||||
WITHDRAW_SUCCESS(6, "已撤回", 85393),
|
||||
WITHDRAW_FAIL(7, "撤回失败", 85393);
|
||||
|
||||
private int value;
|
||||
|
||||
|
|
@ -55,7 +56,7 @@ public enum PushRecordStatusEnum implements BaseEnum<Integer> {
|
|||
return salaryDataSourceEnum;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return DATA_PREPARE;
|
||||
}
|
||||
|
||||
public static String getDefaultLabelByValue(Integer value) {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
e.workcode,
|
||||
e.certificatenum as idNo,
|
||||
e.accounttype as accountType,
|
||||
e.sex as sex,
|
||||
'false' as extEmp
|
||||
from hrmresource e
|
||||
left join hrmdepartment d on e.departmentid = d.id
|
||||
|
|
@ -21,6 +22,7 @@
|
|||
<select id="getEmployeeByIds" resultType="com.engine.salary.entity.datacollection.DataCollectionEmployee">
|
||||
select e.id as employeeId,
|
||||
e.lastname as username,
|
||||
e.sex as sex,
|
||||
e.certificatenum as idNo,
|
||||
e.status as status,
|
||||
e.workcode as workcode,
|
||||
|
|
@ -42,6 +44,7 @@
|
|||
resultType="com.engine.salary.entity.datacollection.DataCollectionEmployee">
|
||||
select e.id as employeeId,
|
||||
e.lastname as username,
|
||||
e.sex as sex,
|
||||
e.certificatenum as idNo,
|
||||
e.status as status,
|
||||
e.workcode as workcode,
|
||||
|
|
@ -123,6 +126,7 @@
|
|||
select e.id as employeeId,
|
||||
e.lastname as username,
|
||||
e.status as status,
|
||||
e.sex as sex,
|
||||
e.certificatenum as idNo,
|
||||
e.workcode as workcode,
|
||||
d.departmentname as departmentName,
|
||||
|
|
@ -229,6 +233,7 @@
|
|||
select e.id as employeeId,
|
||||
e.lastname as username,
|
||||
e.status as status,
|
||||
e.sex as sex,
|
||||
e.certificatenum as idNo,
|
||||
e.workcode as workcode,
|
||||
d.departmentname as departmentName,
|
||||
|
|
@ -283,6 +288,7 @@
|
|||
e.lastname as username,
|
||||
e.status as status,
|
||||
e.workcode as workcode,
|
||||
e.sex as sex,
|
||||
e.certificatenum as idNo,
|
||||
e.companystartdate as companystartdate,
|
||||
e.mobile as mobile,
|
||||
|
|
@ -304,6 +310,7 @@
|
|||
e.status as status,
|
||||
e.workcode as workcode,
|
||||
e.certificatenum as idNo,
|
||||
e.sex as sex,
|
||||
e.companystartdate as companystartdate,
|
||||
e.mobile as mobile,
|
||||
e.accounttype as accountType,
|
||||
|
|
@ -324,6 +331,7 @@
|
|||
e.status as status,
|
||||
e.workcode as workcode,
|
||||
e.certificatenum as idNo,
|
||||
e.sex as sex,
|
||||
e.companystartdate as companystartdate,
|
||||
e.mobile as mobile,
|
||||
e.departmentid as departmentId,
|
||||
|
|
@ -487,6 +495,7 @@
|
|||
e.lastname as username,
|
||||
e.status as status,
|
||||
e.certificatenum as idNo,
|
||||
e.sex as sex,
|
||||
e.workcode as workcode,
|
||||
e.companystartdate as companystartdate,
|
||||
e.mobile as mobile,
|
||||
|
|
@ -562,6 +571,7 @@
|
|||
e.lastname as username,
|
||||
e.status as status,
|
||||
e.certificatenum as idNo,
|
||||
e.sex as sex,
|
||||
e.workcode as workcode,
|
||||
d.departmentname as departmentName,
|
||||
d.id as departmentId,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.engine.salary.mapper.push;
|
||||
|
||||
import com.engine.salary.entity.push.dto.PushRecordDetailDTO;
|
||||
import com.engine.salary.entity.push.po.PushRecordDetailPO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
|
|
@ -21,7 +22,9 @@ public interface PushRecordDetailMapper {
|
|||
* @return 返回集合,没有返回空List
|
||||
*/
|
||||
List<PushRecordDetailPO> listSome(PushRecordDetailPO pushRecordDetail);
|
||||
|
||||
|
||||
List<PushRecordDetailDTO> listDTO(PushRecordDetailDTO dto);
|
||||
|
||||
|
||||
/**
|
||||
* 根据主键查询
|
||||
|
|
|
|||
|
|
@ -6,12 +6,14 @@
|
|||
<result column="create_time" property="createTime"/>
|
||||
<result column="creator" property="creator"/>
|
||||
<result column="delete_type" property="deleteType"/>
|
||||
<result column="execute" property="execute"/>
|
||||
<result column="formula" property="formula"/>
|
||||
<result column="id" property="id"/>
|
||||
<result column="record_id" property="recordId"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="tenant_key" property="tenantKey"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="fail_reason" property="failReason"/>
|
||||
<result column="data_id" property="dataId"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 表字段 -->
|
||||
|
|
@ -22,12 +24,14 @@
|
|||
, t.create_time
|
||||
, t.creator
|
||||
, t.delete_type
|
||||
, t.execute
|
||||
, t.formula
|
||||
, t.id
|
||||
, t.record_id
|
||||
, t.status
|
||||
, t.tenant_key
|
||||
, t.update_time
|
||||
, t.fail_reason
|
||||
, t.data_id
|
||||
</sql>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
|
|
@ -64,8 +68,8 @@
|
|||
<if test="deleteType != null">
|
||||
AND delete_type = #{deleteType}
|
||||
</if>
|
||||
<if test="execute != null">
|
||||
AND execute = #{execute}
|
||||
<if test="formula != null">
|
||||
AND formula = #{formula}
|
||||
</if>
|
||||
<if test="id != null">
|
||||
AND id = #{id}
|
||||
|
|
@ -88,6 +92,54 @@
|
|||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
ORDER BY id DESC
|
||||
</select>
|
||||
|
||||
<select id="listDTO" resultType="com.engine.salary.entity.push.dto.PushRecordDetailDTO" parameterType="com.engine.salary.entity.push.dto.PushRecordDetailDTO">
|
||||
SELECT
|
||||
t.acct_emp_id
|
||||
, t.create_time
|
||||
, t.creator
|
||||
, t.delete_type
|
||||
, t.formula
|
||||
, t.id
|
||||
, t.record_id
|
||||
, t.status
|
||||
, t.tenant_key
|
||||
, t.update_time
|
||||
, t.fail_reason as failReason
|
||||
, t.data_id as dataId
|
||||
, e.LASTNAME as username
|
||||
FROM hrsa_push_record_detail t
|
||||
left join hrsa_salary_acct_emp emp
|
||||
on t.acct_emp_id=emp.id
|
||||
left join hrsa_salary_sob sob
|
||||
on emp.salary_sob_id = sob.id
|
||||
left join hrmresource e
|
||||
on emp.employee_id=e.id
|
||||
|
||||
WHERE t.delete_type = 0
|
||||
and emp.delete_type = 0
|
||||
and sob.delete_type = 0
|
||||
|
||||
<if test="acctEmpId != null">
|
||||
AND t.acct_emp_id = #{acctEmpId}
|
||||
</if>
|
||||
|
||||
<if test="id != null">
|
||||
AND t.id = #{id}
|
||||
</if>
|
||||
<if test="recordId != null">
|
||||
AND t.record_id = #{recordId}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
AND t.status = #{status}
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ORDER BY id DESC
|
||||
</select>
|
||||
|
||||
|
|
@ -109,8 +161,8 @@
|
|||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="execute != null">
|
||||
execute,
|
||||
<if test="formula != null">
|
||||
formula,
|
||||
</if>
|
||||
<if test="id != null">
|
||||
id,
|
||||
|
|
@ -127,6 +179,12 @@
|
|||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="failReason != null">
|
||||
fail_reason,
|
||||
</if>
|
||||
<if test="dataId != null">
|
||||
data_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="acctEmpId != null">
|
||||
|
|
@ -141,8 +199,8 @@
|
|||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="execute != null">
|
||||
#{execute},
|
||||
<if test="formula != null">
|
||||
#{formula},
|
||||
</if>
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
|
|
@ -159,6 +217,12 @@
|
|||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="failReason != null">
|
||||
#{failReason},
|
||||
</if>
|
||||
<if test="dataId != null">
|
||||
#{dataId},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
|
@ -170,11 +234,13 @@
|
|||
create_time=#{createTime},
|
||||
creator=#{creator},
|
||||
delete_type=#{deleteType},
|
||||
execute=#{execute},
|
||||
formula=#{formula},
|
||||
record_id=#{recordId},
|
||||
status=#{status},
|
||||
tenant_key=#{tenantKey},
|
||||
update_time=#{updateTime},
|
||||
fail_reason=#{failReason},
|
||||
data_id=#{dataId},
|
||||
</set>
|
||||
WHERE id = #{id} AND delete_type = 0
|
||||
</update>
|
||||
|
|
@ -196,8 +262,8 @@
|
|||
<if test="deleteType != null">
|
||||
delete_type=#{deleteType},
|
||||
</if>
|
||||
<if test="execute != null">
|
||||
execute=#{execute},
|
||||
<if test="formula != null">
|
||||
formula=#{formula},
|
||||
</if>
|
||||
<if test="recordId != null">
|
||||
record_id=#{recordId},
|
||||
|
|
@ -211,6 +277,12 @@
|
|||
<if test="updateTime != null">
|
||||
update_time=#{updateTime},
|
||||
</if>
|
||||
<if test="failReason != null">
|
||||
fail_reason=#{failReason},
|
||||
</if>
|
||||
<if test="dataId != null">
|
||||
data_id=#{dataId},
|
||||
</if>
|
||||
</set>
|
||||
WHERE id = #{id} AND delete_type = 0
|
||||
</update>
|
||||
|
|
|
|||
|
|
@ -3,18 +3,21 @@
|
|||
<mapper namespace="com.engine.salary.mapper.push.PushRecordMapper">
|
||||
<resultMap id="BaseResultMap" type="com.engine.salary.entity.push.po.PushRecordPO">
|
||||
<result column="id" property="id"/>
|
||||
<result column="name" property="name"/>
|
||||
<result column="acct_record_id" property="acctRecordId"/>
|
||||
<result column="setting_id" property="settingId"/>
|
||||
<result column="mode_id" property="modeId"/>
|
||||
<result column="table_name" property="tableName"/>
|
||||
<result column="name" property="name"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="setting_id" property="settingId"/>
|
||||
<result column="acct_record_id" property="acctRecordId"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="creator" property="creator"/>
|
||||
<result column="delete_type" property="deleteType"/>
|
||||
<result column="tenant_key" property="tenantKey"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="fail_reason" property="failReason"/>
|
||||
<result column="start_time" property="startTime"/>
|
||||
<result column="end_time" property="endTime"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 表字段 -->
|
||||
|
|
@ -34,6 +37,9 @@
|
|||
, t.tenant_key
|
||||
, t.type
|
||||
, t.update_time
|
||||
, t.fail_reason
|
||||
, t.start_time
|
||||
, t.end_time
|
||||
</sql>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
|
|
@ -98,6 +104,15 @@
|
|||
<if test="updateTime != null">
|
||||
AND update_time = #{updateTime}
|
||||
</if>
|
||||
<if test="failReason != null">
|
||||
AND fail_reason = #{failReason}
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
AND start_time = #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
AND end_time = #{endTime}
|
||||
</if>
|
||||
<if test="ids != null and ids.size()>0">
|
||||
AND id IN
|
||||
<foreach collection="ids" open="(" item="id" separator="," close=")">
|
||||
|
|
@ -152,6 +167,15 @@
|
|||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="failReason != null">
|
||||
fail_reason,
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
start_time,
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
end_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="modeId != null">
|
||||
|
|
@ -193,6 +217,15 @@
|
|||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="failReason != null">
|
||||
#{failReason},
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
#{startTime},
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
#{endTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
|
@ -212,6 +245,9 @@
|
|||
tenant_key=#{tenantKey},
|
||||
type=#{type},
|
||||
update_time=#{updateTime},
|
||||
fail_reason=#{failReason},
|
||||
start_time=#{startTime},
|
||||
end_time=#{endTime},
|
||||
</set>
|
||||
WHERE id = #{id} AND delete_type = 0
|
||||
</update>
|
||||
|
|
@ -257,6 +293,15 @@
|
|||
<if test="updateTime != null">
|
||||
update_time=#{updateTime},
|
||||
</if>
|
||||
<if test="failReason != null">
|
||||
fail_reason=#{failReason},
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
start_time=#{startTime},
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
end_time=#{endTime},
|
||||
</if>
|
||||
</set>
|
||||
WHERE id = #{id} AND delete_type = 0
|
||||
</update>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
<result column="item_name" property="itemName"/>
|
||||
<result column="source" property="source"/>
|
||||
<result column="setting_id" property="settingId"/>
|
||||
<result column="sorted_index" property="sortedIndex"/>
|
||||
<result column="tenant_key" property="tenantKey"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
</resultMap>
|
||||
|
|
@ -32,6 +33,7 @@
|
|||
, t.setting_id
|
||||
, t.tenant_key
|
||||
, t.update_time
|
||||
, t.sorted_index
|
||||
</sql>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
|
|
@ -40,6 +42,7 @@
|
|||
<include refid="baseColumns"/>
|
||||
FROM hrsa_push_setting_item t
|
||||
WHERE delete_type = 0
|
||||
ORDER BY sorted_index DESC
|
||||
</select>
|
||||
|
||||
<!-- 根据主键获取单条记录 -->
|
||||
|
|
@ -85,6 +88,9 @@
|
|||
</if>
|
||||
<if test="settingId != null">
|
||||
AND setting_id = #{settingId}
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
AND sorted_index = #{sortedIndex}
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
AND tenant_key = #{tenantKey}
|
||||
|
|
@ -98,7 +104,7 @@
|
|||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
ORDER BY id DESC
|
||||
ORDER BY sorted_index DESC
|
||||
</select>
|
||||
|
||||
|
||||
|
|
@ -137,6 +143,9 @@
|
|||
<if test="settingId != null">
|
||||
setting_id,
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
sorted_index,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
|
|
@ -175,6 +184,9 @@
|
|||
<if test="settingId != null">
|
||||
#{settingId},
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
#{sortedIndex},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
|
|
@ -197,6 +209,7 @@
|
|||
item_name=#{itemName},
|
||||
source=#{source},
|
||||
setting_id=#{settingId},
|
||||
sorted_index=#{sortedIndex},
|
||||
tenant_key=#{tenantKey},
|
||||
update_time=#{updateTime},
|
||||
</set>
|
||||
|
|
@ -235,6 +248,9 @@
|
|||
<if test="settingId != null">
|
||||
setting_id=#{settingId},
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
sorted_index=#{sortedIndex},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key=#{tenantKey},
|
||||
</if>
|
||||
|
|
|
|||
|
|
@ -143,6 +143,9 @@
|
|||
<if test="taxCycleDateRange != null and taxCycleDateRange.endDate != null">
|
||||
AND t.tax_cycle <![CDATA[ <= ]]> #{taxCycleDateRange.endDate}
|
||||
</if>
|
||||
<if test="taxAgentId != null">
|
||||
AND sob.tax_agent_id = #{taxAgentId}
|
||||
</if>
|
||||
ORDER BY t.id DESC
|
||||
</select>
|
||||
<select id="listByCreateDate" resultType="com.engine.salary.entity.salaryacct.po.SalaryAcctRecordPO">
|
||||
|
|
|
|||
|
|
@ -61,6 +61,12 @@
|
|||
<if test="salaryMonths != null and salaryMonths.endDate != null">
|
||||
AND salary_month <![CDATA[ <= ]]> #{salaryMonths.endDate}
|
||||
</if>
|
||||
<if test="taxCycleFromDate != null">
|
||||
AND tax_cycle <![CDATA[ >= ]]> #{taxCycleFromDate}
|
||||
</if>
|
||||
<if test="taxCycleEndDate != null">
|
||||
AND tax_cycle <![CDATA[ <= ]]> #{taxCycleEndDate}
|
||||
</if>
|
||||
<if test="taxAgentIds != null and taxAgentIds.size()>0">
|
||||
AND tax_agent_id IN
|
||||
<foreach collection="taxAgentIds" open="(" item="id" separator="," close=")">
|
||||
|
|
|
|||
|
|
@ -45,6 +45,9 @@ public class SalaryStatisticsDataPerspectiveQueryParam extends BaseQueryParam {
|
|||
//个税扣缴义务人配置
|
||||
private List<Long> taxAgent;
|
||||
|
||||
@JsonIgnore
|
||||
private List<Long> salarySob;
|
||||
|
||||
@JsonIgnore
|
||||
//收入所得项目配置
|
||||
private List<Integer> incomeCategory;
|
||||
|
|
|
|||
|
|
@ -464,12 +464,21 @@ public class SalaryStatisticsReportServiceImpl extends Service implements Salary
|
|||
if (reportPO.getTaxAgentSetting() != null) {
|
||||
param.setTaxAgent(((List<Map>) JSON.parseArray(reportPO.getTaxAgentSetting(), Map.class)).stream().map(m -> Long.valueOf(m.get(key).toString())).collect(Collectors.toList()));
|
||||
}
|
||||
if (reportPO.getSalarySobSetting() != null) {
|
||||
param.setSalarySob(((List<Map>) JSON.parseArray(reportPO.getSalarySobSetting(), Map.class)).stream().map(m -> Long.valueOf(m.get(key).toString())).collect(Collectors.toList()));
|
||||
}
|
||||
if (reportPO.getSubCompanySetting() != null) {
|
||||
param.setSubCompany(((List<Map>) JSON.parseArray(reportPO.getSubCompanySetting(), Map.class)).stream().map(m -> Long.valueOf(m.get(key).toString())).collect(Collectors.toList()));
|
||||
}
|
||||
if (reportPO.getDepartSetting() != null) {
|
||||
param.setDepart(((List<Map>) JSON.parseArray(reportPO.getDepartSetting(), Map.class)).stream().map(m -> Long.valueOf(m.get(key).toString())).collect(Collectors.toList()));
|
||||
}
|
||||
if (reportPO.getPositionSetting() != null) {
|
||||
param.setPosition(((List<Map>) JSON.parseArray(reportPO.getPositionSetting(), Map.class)).stream().map(m -> Long.valueOf(m.get(key).toString())).collect(Collectors.toList()));
|
||||
}
|
||||
if (reportPO.getStatusSetting() != null) {
|
||||
param.setStatus(((List<Map>) JSON.parseArray(reportPO.getStatusSetting(), Map.class)).stream().map(m -> m.get(key).toString()).collect(Collectors.toList()));
|
||||
}
|
||||
if (reportPO.getEmployeeSetting() != null) {
|
||||
param.setEmployee(((List<Map>) JSON.parseArray(reportPO.getEmployeeSetting(), Map.class)).stream().map(m -> Long.valueOf(m.get(key).toString())).collect(Collectors.toList()));
|
||||
}
|
||||
|
|
@ -499,7 +508,7 @@ public class SalaryStatisticsReportServiceImpl extends Service implements Salary
|
|||
List<Long> finalSalaryAcctEmpIds = getSalaryAcctResultService(user).listAcctEmpIdByAcctEmpId(salaryAcctEmployeeIds);
|
||||
Map<Long, List<SalaryAcctResultPO>> salaryAcctEmpResultMap = SalaryEntityUtil.group2Map(salaryAcctResultValues, SalaryAcctResultPO::getSalaryAcctEmpId);
|
||||
salaryAcctEmpResultMap.forEach((k, v) -> {
|
||||
Map<String, String> collect = v.stream().collect(Collectors.toMap(p -> Util.null2String(p.getSalaryItemId()), SalaryAcctResultPO::getResultValue, (key1, key2) -> key2));
|
||||
Map<String, String> collect = v.stream().collect(Collectors.toMap(p -> Util.null2String(p.getSalaryItemId()), p -> Util.null2String(p.getResultValue()), (key1, key2) -> key2));
|
||||
resultMap.put(k, collect);
|
||||
});
|
||||
salaryAcctEmployeeIds.stream().forEach(id -> {
|
||||
|
|
|
|||
|
|
@ -334,7 +334,7 @@ public class SalaryStatisticsEmployeeWrapper extends Service {
|
|||
sumRow.add(Util.null2String(countResult.get(weaTableColumnGroup.getColumn())));
|
||||
}
|
||||
} else {
|
||||
sumRow.add(Util.null2String(countResult.get(weaTableColumnGroup.getColumn())));
|
||||
sumRow.add("");
|
||||
}
|
||||
}
|
||||
rowList.add(sumRow);
|
||||
|
|
|
|||
|
|
@ -303,6 +303,7 @@ public class SalaryStatisticsReportWrapper extends Service {
|
|||
// 如果是被分享的报表,校验分享权限,通过后将user赋值为报表创建人
|
||||
User creator = new User();
|
||||
creator.setUid(po.getCreator().intValue());
|
||||
creator.setLogintype("1");
|
||||
user = creator;
|
||||
} else {
|
||||
// 判断报表是否是登陆人创建的,或薪酬总管理员
|
||||
|
|
|
|||
|
|
@ -58,19 +58,18 @@ public interface PushService {
|
|||
*/
|
||||
void deleteItem(Long id);
|
||||
|
||||
/**
|
||||
* 推送一条核算记录下的所有数据
|
||||
*
|
||||
* @param salaryAcctRecordId
|
||||
* @return
|
||||
*/
|
||||
void pushOneRecord(Long salaryAcctRecordId);
|
||||
|
||||
void createPushRecord(Long salaryAcctRecordId);
|
||||
|
||||
void withdrawPushRecord(Long salaryAcctRecordId);
|
||||
|
||||
void push(Long id);
|
||||
|
||||
void withdraw(Long id);
|
||||
|
||||
void removeRecords(List<Long> records);
|
||||
|
||||
PageInfo<PushRecordDTO> recordList(RecordListQueryParam param);
|
||||
|
||||
PageInfo<PushRecordDetailDTO> recordDetailList(RecordDetailListQueryParam param);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -324,5 +324,13 @@ public interface SIAccountService {
|
|||
void deleteSocialAcctEmp(SaveCommonAccountParam param);
|
||||
|
||||
String addSocialAcctEmp(SaveCommonAccountParam param);
|
||||
|
||||
void batSave(AccountBatParam param);
|
||||
|
||||
void batDelete(AccountBatParam param);
|
||||
|
||||
void batFile(AccountBatParam param);
|
||||
|
||||
void batSocialSecurityBenefitsRecalculate(AccountBatParam batParam);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.engine.salary.service;
|
||||
|
||||
import com.engine.salary.common.LocalDateRange;
|
||||
import com.engine.salary.entity.salaryacct.param.SalaryAcctBatParam;
|
||||
import com.engine.salary.entity.salaryacct.param.SalaryAcctRecordQueryParam;
|
||||
import com.engine.salary.entity.salaryacct.param.SalaryAcctRecordSaveParam;
|
||||
import com.engine.salary.entity.salaryacct.po.SalaryAcctRecordPO;
|
||||
|
|
@ -210,4 +211,11 @@ public interface SalaryAcctRecordService {
|
|||
List<SalaryAcctRecordPO> listSome(SalaryAcctRecordPO po);
|
||||
|
||||
void updateDate(Long id, Date updateTime);
|
||||
|
||||
void batSave(SalaryAcctBatParam saveParam);
|
||||
|
||||
void batFile(SalaryAcctBatParam param);
|
||||
|
||||
void batReCalculate(SalaryAcctBatParam param);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import com.engine.salary.mapper.auth.AuthRoleMapper;
|
|||
import com.engine.salary.util.db.IdGenerator;
|
||||
import com.engine.salary.util.db.MapperProxyFactory;
|
||||
import com.google.common.collect.Lists;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashSet;
|
||||
|
|
@ -156,7 +157,7 @@ public class AuthDataServiceImpl extends Service implements AuthDataService {
|
|||
public List<AuthRoleDataDTO> listRoleData( AuthDataQueryParam param) {
|
||||
List<AuthRoleDataDTO> authRoleDataDTOS = getAuthRoleDataMapper().listRoleData(param.getRoleId());
|
||||
if (StrUtil.isNotEmpty(param.getUsername())){
|
||||
authRoleDataDTOS = authRoleDataDTOS.stream().filter(authRoleDataDTO -> authRoleDataDTO.getUsername().contains(param.getUsername())).collect(Collectors.toList());
|
||||
authRoleDataDTOS = authRoleDataDTOS.stream().filter(authRoleDataDTO -> StringUtils.isNotBlank(authRoleDataDTO.getUsername()) && authRoleDataDTO.getUsername().contains(param.getUsername())).collect(Collectors.toList());
|
||||
}
|
||||
return authRoleDataDTOS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import com.engine.salary.util.SalaryI18nUtil;
|
|||
import com.engine.salary.util.db.IdGenerator;
|
||||
import com.engine.salary.util.db.MapperProxyFactory;
|
||||
import com.google.common.collect.Lists;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
|
@ -196,7 +197,7 @@ public class AuthMemberServiceImpl extends Service implements AuthMemberService
|
|||
public List<AuthRoleEmpDTO> listRoleEmp(AuthMemberQueryParam param) {
|
||||
List<AuthRoleEmpDTO> empDTOS = getAuthRoleEmpMapper().getByRoleId(param.getRoleId());
|
||||
if(StrUtil.isNotEmpty(param.getUsername())){
|
||||
empDTOS = empDTOS.stream().filter(item -> item.getUsername().contains(param.getUsername())).collect(Collectors.toList());
|
||||
empDTOS = empDTOS.stream().filter(item -> StringUtils.isNotBlank(item.getUsername()) && item.getUsername().contains(param.getUsername())).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
return empDTOS;
|
||||
|
|
|
|||
|
|
@ -194,7 +194,11 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
|||
String imageId = Util.null2String(importParam.getImageId());
|
||||
Validate.notBlank(imageId, "imageId为空");
|
||||
// 获取所有个税扣缴义务人
|
||||
Collection<TaxAgentManageRangeEmployeeDTO> taxAgentList = getTaxAgentService(user).listTaxAgentAndEmployeeTree(currentEmployeeId);
|
||||
// 获取所有个税扣缴义务人
|
||||
TaxAgentQueryParam param = TaxAgentQueryParam.builder().build();
|
||||
param.setFilterType(AuthFilterTypeEnum.ADMIN_DATA);
|
||||
Collection<TaxAgentPO> taxAgentList = getTaxAgentService(user).listAuth(param);
|
||||
// Collection<TaxAgentManageRangeEmployeeDTO> taxAgentList = getTaxAgentService(user).listTaxAgentAndEmployeeTree(currentEmployeeId);
|
||||
//个税扣缴义务人
|
||||
String taxAgentId = Util.null2String(importParam.getTaxAgentId());
|
||||
// 获取租户下所有的人员
|
||||
|
|
@ -302,18 +306,18 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
|||
errorData.add(errorMessageMap);
|
||||
errorSum += 1;
|
||||
} else {
|
||||
Optional<TaxAgentManageRangeEmployeeDTO> optionalTemp = taxAgentList.stream().filter(m -> m.getTaxAgentName().equals(taxAgentName)).findFirst();
|
||||
Optional<TaxAgentPO> optionalTemp = taxAgentList.stream().filter(m -> m.getName().equals(taxAgentName)).findFirst();
|
||||
if (optionalTemp.isPresent()) {
|
||||
// 2025-10-09 个税扣缴义务人选择全部时,不校验
|
||||
if (StringUtils.isNotEmpty(taxAgentId) && !"-999".equals(taxAgentId)&& !optionalTemp.get().getTaxAgentId().equals(Long.valueOf(taxAgentId))) {
|
||||
if (StringUtils.isNotEmpty(taxAgentId) && !"-999".equals(taxAgentId)&& !optionalTemp.get().getId().equals(Long.valueOf(taxAgentId))) {
|
||||
//个税扣缴义务人与导入时选择的不一致
|
||||
Map<String, String> errorMessageMap = Maps.newHashMap();
|
||||
errorMessageMap.put("message", rowIndex + "个税扣缴义务人与导入时选择的不一致");
|
||||
errorData.add(errorMessageMap);
|
||||
errorSum += 1;
|
||||
} else {
|
||||
addUpDeduction.setTaxAgentId(optionalTemp.get().getTaxAgentId());
|
||||
taxAgentEmployees = optionalTemp.get().getEmployeeList();
|
||||
addUpDeduction.setTaxAgentId(optionalTemp.get().getId());
|
||||
// taxAgentEmployees = optionalTemp.get().getEmployeeList();
|
||||
}
|
||||
} else {
|
||||
//个税扣缴义务人不存在
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ public class AttendQuoteDataServiceImpl extends Service implements AttendQuoteDa
|
|||
.collect(Collectors.toList());
|
||||
|
||||
effectiveFields.forEach(attendQuoteField -> {
|
||||
header.add(attendQuoteField.getFieldName());
|
||||
header.add(Util.formatMultiLang(attendQuoteField.getFieldName(), String.valueOf(user.getLanguage())));
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
@ -519,7 +519,7 @@ public class AttendQuoteDataServiceImpl extends Service implements AttendQuoteDa
|
|||
List<Map<String, Object>> attendQuoteSyncData = new ArrayList<>();
|
||||
Attend4Salary attend4Salary = new Attend4Salary();
|
||||
try {
|
||||
int partSize = 500;
|
||||
int partSize = 100;
|
||||
List<List<Long>> partition = Lists.partition(employeeIds, partSize);
|
||||
for (List<Long> part : partition) {
|
||||
attend4Salary.setBeginDate(attendCycleRange.getFromDate());
|
||||
|
|
@ -606,7 +606,7 @@ public class AttendQuoteDataServiceImpl extends Service implements AttendQuoteDa
|
|||
header.add(SalaryI18nUtil.getI18nLabel(86317, "证件号码"));
|
||||
// 动态列
|
||||
for (AttendQuoteFieldPO attendQuoteField : attendQuoteFields) {
|
||||
header.add(attendQuoteField.getFieldName());
|
||||
header.add(Util.formatMultiLang(attendQuoteField.getFieldName(), String.valueOf(user.getLanguage())));
|
||||
}
|
||||
List<List<Object>> rows = new ArrayList<>();
|
||||
rows.add(header);
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import com.google.common.collect.Lists;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import weaver.general.Util;
|
||||
import weaver.hrm.User;
|
||||
|
||||
import java.util.*;
|
||||
|
|
@ -292,7 +293,7 @@ public class AttendQuoteFieldServiceImpl extends Service implements AttendQuoteF
|
|||
Map<String, String> column = columnsOptional.get();
|
||||
updates.add(AttendQuoteFieldPO.builder()
|
||||
.code(column.get("code"))
|
||||
.fieldName(column.get("name"))
|
||||
.fieldName(Util.formatMultiLang(column.get("name"), String.valueOf(user.getLanguage())))
|
||||
.updateTime(now)
|
||||
.build());
|
||||
}
|
||||
|
|
@ -312,7 +313,7 @@ public class AttendQuoteFieldServiceImpl extends Service implements AttendQuoteF
|
|||
Optional<Map<String, String>> columnsOptional = columns.stream().filter(column -> code.equals(column.get("code"))).findFirst();
|
||||
if (columnsOptional.isPresent()) {
|
||||
Map<String, String> column = columnsOptional.get();
|
||||
saves.add(buildAttendQuoteField(column.get("code"), column.get("name")));
|
||||
saves.add(buildAttendQuoteField(column.get("code"), Util.formatMultiLang(column.get("name"), String.valueOf(user.getLanguage()))));
|
||||
}
|
||||
}
|
||||
if (CollectionUtils.isNotEmpty(saves)) {
|
||||
|
|
|
|||
|
|
@ -112,16 +112,16 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
Map<Long, SalarySobPO> sobPOMap = SalaryEntityUtil.convert2Map(salarySobPOS, SalarySobPO::getId);
|
||||
|
||||
List<PushSettingDTO> list = pushSettingPOS.stream()
|
||||
.filter(po -> StrUtil.isBlank(param.getName()) || po.getName().contains(param.getName())).map(
|
||||
po -> PushSettingDTO.builder()
|
||||
.id(po.getId())
|
||||
.name(po.getName())
|
||||
.tableName(po.getTableName())
|
||||
.modeName(po.getModeName())
|
||||
.modeId(po.getModeId())
|
||||
.able(po.getAble())
|
||||
.salarySobs(po.getSalarySobIds().stream().map(sobPOMap::get).collect(Collectors.toList()))
|
||||
.build()).collect(Collectors.toList());
|
||||
.filter(po -> StrUtil.isBlank(param.getName()) || po.getName().contains(param.getName()))
|
||||
.map(po -> PushSettingDTO.builder()
|
||||
.id(po.getId())
|
||||
.name(po.getName())
|
||||
.tableName(po.getTableName())
|
||||
.modeName(po.getModeName())
|
||||
.modeId(po.getModeId())
|
||||
.able(po.getAble())
|
||||
.salarySobs(po.getSalarySobIds().stream().map(sobPOMap::get).collect(Collectors.toList()))
|
||||
.build()).collect(Collectors.toList());
|
||||
return SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), list, PushSettingDTO.class);
|
||||
}
|
||||
|
||||
|
|
@ -191,6 +191,7 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
.fieldName(po.getFieldName())
|
||||
.fieldType(PushItemFieldEnum.parseByValue(po.getFieldType()))
|
||||
.fieldTypeName(PushItemFieldEnum.parseByValue(po.getFieldType()).getDefaultLabel())
|
||||
.sortedIndex(po.getSortedIndex())
|
||||
.build()
|
||||
).collect(Collectors.toList());
|
||||
|
||||
|
|
@ -212,6 +213,7 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
.source(param.getSource())
|
||||
.fieldName(param.getFieldName())
|
||||
.fieldType(param.getFieldType().getValue())
|
||||
.sortedIndex(param.getSortedIndex())
|
||||
.creator((long) user.getUID())
|
||||
.createTime(now)
|
||||
.updateTime(now)
|
||||
|
|
@ -232,6 +234,7 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
po.setSource(param.getSource());
|
||||
po.setFieldName(param.getFieldName());
|
||||
po.setFieldType(param.getFieldType().getValue());
|
||||
po.setSortedIndex(param.getSortedIndex());
|
||||
po.setUpdateTime(now);
|
||||
|
||||
getPushSettingItemMapper().update(po);
|
||||
|
|
@ -246,120 +249,6 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
getPushSettingItemMapper().delete(PushSettingItemPO.builder().id(id).build());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void pushOneRecord(Long salaryAcctRecordId) {
|
||||
|
||||
SalaryAcctRecordPO salaryAcctRecordPO = getSalaryAcctRecordService(user).getById(salaryAcctRecordId);
|
||||
|
||||
if (salaryAcctRecordPO == null) {
|
||||
throw new SalaryRunTimeException("核算记录不存在!");
|
||||
}
|
||||
|
||||
//查询核算人员
|
||||
List<SalaryAcctEmployeePO> salaryAcctEmployeePOS = getSalaryAcctEmployeeService(user).listBySalaryAcctRecordId(salaryAcctRecordPO.getId());
|
||||
|
||||
//薪资项目
|
||||
List<SalaryItemPO> salaryItemPOS = getSalaryItemService(user).listAll();
|
||||
//查询薪资核算记录的薪资周期、考勤周期等
|
||||
SalarySobCycleDTO salarySobCycleDTO = getSalaryAcctRecordService(user).getSalarySobCycleById(salaryAcctRecordPO.getId());
|
||||
|
||||
SalaryAcctCalculateBO salaryAcctCalculateBO = new SalaryAcctCalculateBO()
|
||||
.setSalaryAcctRecordPO(salaryAcctRecordPO)
|
||||
.setSalarySobPO(new SalarySobPO())
|
||||
.setSalarySobCycleDTO(salarySobCycleDTO)
|
||||
.setOtherSalaryAcctRecordPOS(new ArrayList<>())
|
||||
.setSalarySobItemPOS(new ArrayList<>())
|
||||
.setSalaryItemIdWithPriorityList(new ArrayList<>())
|
||||
.setExpressFormulas(new ArrayList<>())
|
||||
.setSalaryItemPOS(salaryItemPOS)
|
||||
.setSalarySobAdjustRulePOS(new ArrayList<>())
|
||||
.setWelfareColumns(new HashMap<>())
|
||||
.setAttendQuoteFieldListDTOS(new ArrayList<>())
|
||||
.setSalaryAcctEmployeePOS(salaryAcctEmployeePOS)
|
||||
.setIssuedFieldIds(new HashSet<>())
|
||||
.setChildMonitor(null)
|
||||
.setResults(null)
|
||||
.setCalculateKey(null)
|
||||
.setVariableItems(new ArrayList<>())
|
||||
.setTaxDeclarationFunction(TaxDeclarationFunctionEnum.OPEN);
|
||||
|
||||
|
||||
List<Long> employeeIds = SalaryEntityUtil.properties(salaryAcctCalculateBO.getSalaryAcctEmployeePOS(), SalaryAcctEmployeePO::getEmployeeId, Collectors.toList());
|
||||
List<DataCollectionEmployee> simpleEmployees = getSalaryEmployeeService(user).getEmployeeByIdsAll(employeeIds);
|
||||
|
||||
List<Long> salaryAcctEmployeeIds = SalaryEntityUtil.properties(salaryAcctCalculateBO.getSalaryAcctEmployeePOS(), SalaryAcctEmployeePO::getId, Collectors.toList());
|
||||
List<SalaryAcctResultPO> salaryAcctResultPOS = getSalaryAcctResultService(user).listBySalaryAcctEmployeeIds(salaryAcctEmployeeIds);
|
||||
|
||||
CalculateFormulaVarBO calculateFormulaVarBO = new CalculateFormulaVarBO(simpleEmployees, new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), salaryAcctResultPOS, new ArrayList<>(),new ArrayList<>());
|
||||
Map<String, List<CalculateFormulaVarBO.FormulaVarValue>> formulaVarMap = calculateFormulaVarBO.convert2FormulaVar(salaryAcctCalculateBO);
|
||||
|
||||
|
||||
List<PushSettingPO> pushSettingPOS = getPushSettingMapper().listSome(PushSettingPO.builder().able(1).build());
|
||||
pushSettingPOS.stream()
|
||||
.filter(po -> po.getSalarySobIds().contains(salaryAcctRecordPO.getSalarySobId()))
|
||||
.forEach(setting -> {
|
||||
|
||||
Long id = setting.getId();
|
||||
List<PushSettingItemPO> pushSettingItemPOS = getPushSettingItemMapper().listSome(PushSettingItemPO.builder().settingId(id).build());
|
||||
|
||||
|
||||
//每个人插入一条
|
||||
for (SalaryAcctEmployeePO emp : salaryAcctEmployeePOS) {
|
||||
//1 获取当前薪资核算人员的公式中的变量的值
|
||||
List<CalculateFormulaVarBO.FormulaVarValue> formulaVarValues = formulaVarMap.get(emp.getEmployeeId() + "_" + emp.getTaxAgentId());
|
||||
//2 人员信息
|
||||
List<CalculateFormulaVarBO.FormulaVarValue> empInfo = formulaVarMap.get(emp.getEmployeeId() + "");
|
||||
formulaVarValues.addAll(empInfo);
|
||||
Map<String, String> formulaVarValueMap = SalaryEntityUtil.convert2Map(formulaVarValues, CalculateFormulaVarBO.FormulaVarValue::getFieldId, CalculateFormulaVarBO.FormulaVarValue::getFieldValue);
|
||||
|
||||
Integer modeId = setting.getModeId();
|
||||
|
||||
List<String> fields = new ArrayList<String>() {{
|
||||
add("formmodeid");
|
||||
add("modedatacreater");
|
||||
add("modedatacreatertype");
|
||||
add("modedatacreatedate");
|
||||
add("modedatacreatetime");
|
||||
}};
|
||||
String currDate = TimeUtil.getCurrentDateString();
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
|
||||
String currTime = sdf.format(new Date());
|
||||
List<Object> values = new ArrayList<Object>() {{
|
||||
add(modeId);
|
||||
add(1);
|
||||
add(0);
|
||||
add(String.format("'%s'", currDate));
|
||||
add(String.format("'%s'", currTime));
|
||||
}};
|
||||
for (PushSettingItemPO item : pushSettingItemPOS) {
|
||||
//数据库字段
|
||||
String fieldName = item.getFieldName();
|
||||
fields.add(fieldName);
|
||||
// 公式变量的值
|
||||
String field = item.getItem();
|
||||
String value = formulaVarValueMap.getOrDefault(field, StringUtils.EMPTY);
|
||||
PushItemFieldEnum pushItemFieldEnum = PushItemFieldEnum.parseByValue(item.getFieldType());
|
||||
values.add(pushItemFieldEnum.convertValue(value));
|
||||
}
|
||||
String tableName = setting.getTableName();
|
||||
String sql = String.format("insert into %s (%s) values (%s)", tableName, String.join(",", fields), values.stream().map(Object::toString).collect(Collectors.joining(",")));
|
||||
RecordSet rs = new RecordSet();
|
||||
rs.execute(sql);
|
||||
|
||||
if (modeId != null) {
|
||||
rs.executeQuery("select max(id) from " + tableName);
|
||||
int mainId = 0;
|
||||
if (rs.next()) {
|
||||
mainId = rs.getInt(1);
|
||||
}
|
||||
ModeRightInfo ModeRightInfo = new ModeRightInfo();
|
||||
ModeRightInfo.setNewRight(true);
|
||||
ModeRightInfo.editModeDataShare(1, modeId, mainId);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createPushRecord(Long salaryAcctRecordId) {
|
||||
Date now = new Date();
|
||||
|
|
@ -371,7 +260,7 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
|
||||
//查询推送配置
|
||||
List<PushSettingPO> pushSettingPOS = getPushSettingMapper().listSome(PushSettingPO.builder().able(1).build());
|
||||
if(CollUtil.isEmpty(pushSettingPOS)){
|
||||
if (CollUtil.isEmpty(pushSettingPOS)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -489,7 +378,7 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
.acctEmpId(emp.getId())
|
||||
.recordId(record.getId())
|
||||
.status(PushRecordDetailStatusEnum.PREPARE.getValue())
|
||||
.execute(sql)
|
||||
.formula(sql)
|
||||
.createTime(now)
|
||||
.updateTime(now)
|
||||
.creator((long) user.getUID())
|
||||
|
|
@ -506,40 +395,43 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
}
|
||||
);
|
||||
} catch (Exception e) {
|
||||
log.error("推送失败", e);
|
||||
log.error("创建推送记录失败", e);
|
||||
removeRecords(recordIds);
|
||||
throw new SalaryRunTimeException("推送失败");
|
||||
throw new SalaryRunTimeException("创建推送记录失败");
|
||||
}
|
||||
|
||||
//开始
|
||||
startBatchPush(recordIds);
|
||||
recordIds.forEach(this::push);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动推送
|
||||
*
|
||||
* @param recordIds
|
||||
*/
|
||||
private void startBatchPush(List<Long> recordIds) {
|
||||
@Override
|
||||
public void withdrawPushRecord(Long salaryAcctRecordId) {
|
||||
List<PushRecordPO> pushRecordPOS = getPushRecordMapper().listSome(PushRecordPO.builder().acctRecordId(salaryAcctRecordId).status(PushRecordStatusEnum.RUN_SUCCESS.getValue()).build());
|
||||
if (CollUtil.isEmpty(pushRecordPOS)) {
|
||||
return;
|
||||
}
|
||||
pushRecordPOS.stream().map(PushRecordPO::getId).forEach(this::withdraw);
|
||||
}
|
||||
|
||||
recordIds.forEach(recordId -> {
|
||||
//待推送
|
||||
PushRecordPO pushRecordPO = getPushRecordMapper().getById(recordId);
|
||||
pushRecordPO.setStatus(PushRecordStatusEnum.RUN_WAITING.getValue());
|
||||
@Override
|
||||
public void push(Long id) {
|
||||
//待推送
|
||||
PushRecordPO pushRecordPO = getPushRecordMapper().getById(id);
|
||||
|
||||
try {
|
||||
pushRecordPO.setStartTime(new Date());
|
||||
pushRecordPO.setStatus(PushRecordStatusEnum.RUN_PROGRESS.getValue());
|
||||
getPushRecordMapper().updateIgnoreNull(pushRecordPO);
|
||||
|
||||
try {
|
||||
pushRecordPO.setStartTime(new Date());
|
||||
pushRecordPO.setStatus(PushRecordStatusEnum.RUN_PROGRESS.getValue());
|
||||
getPushRecordMapper().updateIgnoreNull(pushRecordPO);
|
||||
List<PushRecordDetailPO> pushRecordDetailPOS = getPushRecordDetailMapper().listSome(PushRecordDetailPO.builder().recordId(pushRecordPO.getId()).build());
|
||||
pushRecordDetailPOS.forEach(pushRecordDetailPO -> {
|
||||
List<PushRecordDetailPO> pushRecordDetailPOS = getPushRecordDetailMapper().listSome(PushRecordDetailPO.builder().recordId(pushRecordPO.getId()).build());
|
||||
pushRecordDetailPOS.forEach(pushRecordDetailPO -> {
|
||||
|
||||
try {
|
||||
String execute = pushRecordDetailPO.getExecute();
|
||||
RecordSet rs = new RecordSet();
|
||||
rs.execute(execute);
|
||||
try {
|
||||
String formula = pushRecordDetailPO.getFormula();
|
||||
RecordSet rs = new RecordSet();
|
||||
boolean success = rs.execute(formula);
|
||||
if (success) {
|
||||
//建模需要权限重构
|
||||
Integer modeId = pushRecordPO.getModeId();
|
||||
if (modeId != null) {
|
||||
|
|
@ -552,23 +444,70 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
ModeRightInfo ModeRightInfo = new ModeRightInfo();
|
||||
ModeRightInfo.setNewRight(true);
|
||||
ModeRightInfo.editModeDataShare(1, modeId, mainId);
|
||||
}
|
||||
|
||||
//记录数据id
|
||||
pushRecordDetailPO.setDataId((long) mainId);
|
||||
}
|
||||
pushRecordDetailPO.setStatus(PushRecordDetailStatusEnum.SUCCESS.getValue());
|
||||
} catch (Exception e) {
|
||||
pushRecordDetailPO.setFail_reason(e.getMessage());
|
||||
} else {
|
||||
pushRecordDetailPO.setFailReason("sql执行失败");
|
||||
pushRecordDetailPO.setStatus(PushRecordDetailStatusEnum.FAIL.getValue());
|
||||
}
|
||||
});
|
||||
} catch (Exception e) {
|
||||
pushRecordDetailPO.setFailReason(e.getMessage());
|
||||
pushRecordDetailPO.setStatus(PushRecordDetailStatusEnum.FAIL.getValue());
|
||||
}
|
||||
getPushRecordDetailMapper().updateIgnoreNull(pushRecordDetailPO);
|
||||
});
|
||||
|
||||
pushRecordPO.setEndTime(new Date());
|
||||
pushRecordPO.setStatus(PushRecordStatusEnum.RUN_SUCCESS.getValue());
|
||||
} catch (Exception e) {
|
||||
pushRecordPO.setFail_reason(e.getMessage());
|
||||
pushRecordPO.setStatus(PushRecordStatusEnum.RUN_FAIL.getValue());
|
||||
}
|
||||
pushRecordPO.setEndTime(new Date());
|
||||
pushRecordPO.setStatus(PushRecordStatusEnum.RUN_SUCCESS.getValue());
|
||||
} catch (Exception e) {
|
||||
pushRecordPO.setFailReason(e.getMessage());
|
||||
pushRecordPO.setStatus(PushRecordStatusEnum.RUN_FAIL.getValue());
|
||||
}
|
||||
getPushRecordMapper().updateIgnoreNull(pushRecordPO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void withdraw(Long id) {
|
||||
//待撤回
|
||||
PushRecordPO pushRecordPO = getPushRecordMapper().getById(id);
|
||||
|
||||
try {
|
||||
pushRecordPO.setStartTime(new Date());
|
||||
pushRecordPO.setStatus(PushRecordStatusEnum.WITHDRAW.getValue());
|
||||
getPushRecordMapper().updateIgnoreNull(pushRecordPO);
|
||||
});
|
||||
|
||||
PushSettingPO pushSettingPO = getPushSettingMapper().getById(pushRecordPO.getSettingId());
|
||||
String tableName = pushSettingPO.getTableName();
|
||||
|
||||
List<PushRecordDetailPO> pushRecordDetailPOS = getPushRecordDetailMapper().listSome(PushRecordDetailPO.builder().recordId(pushRecordPO.getId()).build());
|
||||
pushRecordDetailPOS.forEach(pushRecordDetailPO -> {
|
||||
try {
|
||||
RecordSet rs = new RecordSet();
|
||||
String sql = String.format("delete from %s where id = %s", tableName, pushRecordDetailPO.getDataId());
|
||||
boolean execute = rs.execute(sql);
|
||||
if (execute) {
|
||||
pushRecordDetailPO.setStatus(PushRecordDetailStatusEnum.WITHDRAW_SUCCESS.getValue());
|
||||
} else {
|
||||
pushRecordDetailPO.setFailReason("sql执行失败");
|
||||
pushRecordDetailPO.setStatus(PushRecordDetailStatusEnum.WITHDRAW_FAIL.getValue());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
pushRecordDetailPO.setFailReason(e.getMessage());
|
||||
pushRecordDetailPO.setStatus(PushRecordDetailStatusEnum.WITHDRAW_FAIL.getValue());
|
||||
}
|
||||
getPushRecordDetailMapper().updateIgnoreNull(pushRecordDetailPO);
|
||||
});
|
||||
|
||||
pushRecordPO.setEndTime(new Date());
|
||||
pushRecordPO.setStatus(PushRecordStatusEnum.WITHDRAW_SUCCESS.getValue());
|
||||
} catch (Exception e) {
|
||||
pushRecordPO.setFailReason(e.getMessage());
|
||||
pushRecordPO.setStatus(PushRecordStatusEnum.WITHDRAW_FAIL.getValue());
|
||||
}
|
||||
getPushRecordMapper().updateIgnoreNull(pushRecordPO);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -587,8 +526,9 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
@Override
|
||||
public PageInfo<PushRecordDTO> recordList(RecordListQueryParam param) {
|
||||
List<PushRecordPO> pushRecordPOS = getPushRecordMapper().listAll();
|
||||
List<PushRecordDTO> listDTOS = SalaryPageUtil.subList(param.getCurrent(), param.getPageSize(), pushRecordPOS)
|
||||
List<PushRecordDTO> listDTOS = pushRecordPOS
|
||||
.stream()
|
||||
.filter(po -> StrUtil.isBlank(param.getName()) || po.getName().contains(param.getName()))
|
||||
.map(po -> PushRecordDTO.builder()
|
||||
.id(po.getId())
|
||||
.name(po.getName())
|
||||
|
|
@ -598,13 +538,13 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
.acctRecordId(po.getAcctRecordId())
|
||||
.type(po.getType())
|
||||
.status(po.getStatus())
|
||||
.statusName(PushRecordStatusEnum.parseByValue(po.getStatus()).getDefaultLabel())
|
||||
.startTime(po.getStartTime())
|
||||
.endTime(po.getEndTime())
|
||||
.build())
|
||||
.collect(Collectors.toList());
|
||||
|
||||
PageInfo<PushRecordDTO> pageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), listDTOS, PushRecordDTO.class);
|
||||
pageInfo.setTotal(pushRecordPOS.size());
|
||||
return pageInfo;
|
||||
}
|
||||
|
||||
|
|
@ -612,22 +552,13 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
public PageInfo<PushRecordDetailDTO> recordDetailList(RecordDetailListQueryParam param) {
|
||||
ValidUtil.doValidator(param);
|
||||
|
||||
List<PushRecordDetailPO> pushRecordDetailPOS = getPushRecordDetailMapper().listSome(PushRecordDetailPO.builder().recordId(param.getRecordId()).build());
|
||||
List<PushRecordDetailDTO> listDTOS = SalaryPageUtil.subList(param.getCurrent(), param.getPageSize(), pushRecordDetailPOS)
|
||||
.stream()
|
||||
.map(po -> PushRecordDetailDTO.builder()
|
||||
.id(po.getId())
|
||||
.recordId(po.getRecordId())
|
||||
.acctEmpId(po.getAcctEmpId())
|
||||
.status(po.getStatus())
|
||||
.fail_reason(po.getFail_reason())
|
||||
.execute(po.getExecute())
|
||||
.createTime(po.getCreateTime())
|
||||
.creator(po.getCreator())
|
||||
.build())
|
||||
.collect(Collectors.toList());
|
||||
PageInfo<PushRecordDetailDTO> pageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), listDTOS, PushRecordDetailDTO.class);
|
||||
pageInfo.setTotal(pushRecordDetailPOS.size());
|
||||
List<PushRecordDetailDTO> list = getPushRecordDetailMapper().listDTO(PushRecordDetailDTO.builder().recordId(param.getRecordId()).build());
|
||||
List<PushRecordDetailDTO> listDTOS = SalaryPageUtil.subList(param.getCurrent(), param.getPageSize(), list);
|
||||
listDTOS.forEach(dto -> dto.setStatusName(PushRecordDetailStatusEnum.parseByValue(dto.getStatus()).getDefaultLabel()));
|
||||
|
||||
PageInfo<PushRecordDetailDTO> pageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), PushRecordDetailDTO.class);
|
||||
pageInfo.setList(listDTOS);
|
||||
pageInfo.setTotal(list.size());
|
||||
return pageInfo;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ import org.apache.commons.collections4.MapUtils;
|
|||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import weaver.general.Util;
|
||||
import weaver.hrm.User;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
|
@ -483,7 +484,7 @@ public class RemoteExcelServiceImpl extends Service implements RemoteExcelServic
|
|||
List<FormulaVar> formulaVars = fields.stream().map(e -> {
|
||||
FormulaVar formulaVar = new FormulaVar();
|
||||
formulaVar.setFieldId(referenceEnum.getValue() + SalaryFormulaFieldConstant.FIELD_ID_SEPARATOR + e.getId());
|
||||
formulaVar.setName(e.getFieldName());
|
||||
formulaVar.setName(Util.formatMultiLang(e.getFieldName(), String.valueOf(user.getLanguage())));
|
||||
formulaVar.setSource("" + referenceEnum.getValue());
|
||||
formulaVar.setFieldType(DataType.NUMBER);
|
||||
return formulaVar;
|
||||
|
|
|
|||
|
|
@ -172,7 +172,8 @@ public class SIAComparisonResultServiceImpl extends Service implements SIACompar
|
|||
List<InsuranceArchivesBaseInfoPO> baseInfoPOList = getInsuranceBaseInfoMapper().listAll();
|
||||
List<Long> canAccountIds = baseInfoPOList.stream()
|
||||
.filter(f->f.getPaymentOrganization().toString().equals(queryParam.getPaymentOrganization())
|
||||
&& (f.getRunStatus().equals(EmployeeStatusEnum.PAYING.getValue()) || f.getRunStatus().equals(EmployeeStatusEnum.STAY_DEL.getValue())))
|
||||
&& !f.getRunStatus().equals(EmployeeStatusEnum.STAY_ADD.getValue())
|
||||
)
|
||||
.map(InsuranceArchivesBaseInfoPO::getEmployeeId)
|
||||
.collect(Collectors.toList());
|
||||
accountExportPOS = accountExportPOS.stream().filter(v -> canAccountIds.contains(v.getEmployeeId())).collect(Collectors.toList());
|
||||
|
|
|
|||
|
|
@ -1666,7 +1666,7 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
// Long taxAgentId = 0L;
|
||||
|
||||
List<InsuranceAccountDetailPO> list = new ArrayList<>();
|
||||
|
||||
String username = (String) map.getOrDefault("姓名", "");
|
||||
String billMonth = (String) map.getOrDefault("账单月份", "");
|
||||
String taxAgentName = (String) map.getOrDefault("个税扣缴义务人", "");
|
||||
String supplementaryMonth = (String) map.getOrDefault("补缴月份", "");
|
||||
|
|
@ -1770,11 +1770,11 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
//校验补缴人员是否存在福利档案基础信息,并且runStatus处于正在缴纳或者待减员
|
||||
InsuranceArchivesBaseInfoPO insuranceBaseInfo = getInsuranceBaseInfoMapper().getOneByEmployeeIdAndPayOrg(paymentOrganization, employeeId);
|
||||
if (insuranceBaseInfo == null || !(insuranceBaseInfo.getRunStatus().equals(EmployeeStatusEnum.STAY_DEL.getValue()) || insuranceBaseInfo.getRunStatus().equals(EmployeeStatusEnum.PAYING.getValue())) ) {
|
||||
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0, "补缴人员中存在未设置福利档案人员或相关人员不在福利在缴人员中,不可新建补缴信息!"));
|
||||
throw new SalaryRunTimeException(username + SalaryI18nUtil.getI18nLabel(0, "补缴未设置福利档案人员或不在福利在缴人员中,不可新建补缴信息!"));
|
||||
}
|
||||
List<Long> empIdsInPayMonthRange = listCanPayEmpIds(paymentOrganization, billMonth.substring(0, 7));
|
||||
if (!empIdsInPayMonthRange.contains(employeeId)) {
|
||||
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(99920, "无核算人员"));
|
||||
throw new SalaryRunTimeException(username + SalaryI18nUtil.getI18nLabel(99920, "无核算人员"));
|
||||
}
|
||||
DataCollectionEmployee employee = getSalaryEmployeeService(user).getEmployeeById(employeeId);
|
||||
// 封装InsuranceAccountDetailPO
|
||||
|
|
@ -6719,6 +6719,55 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
Util_DataCache.setObjVal(cacheKey, JsonUtil.toJsonString(welfareNames));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void batSave(AccountBatParam accountBatParam) {
|
||||
List<Long> paymentOrganizations = accountBatParam.getPaymentOrganizations();
|
||||
for (Long paymentOrganization : paymentOrganizations) {
|
||||
AccountParam param = AccountParam.builder()
|
||||
.billMonth(accountBatParam.getBillMonth())
|
||||
.paymentOrganization(paymentOrganization)
|
||||
.flag(true)
|
||||
.remarks(accountBatParam.getRemarks())
|
||||
.build();
|
||||
save(param);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void batDelete(AccountBatParam batParam) {
|
||||
List<Long> ids = batParam.getIds();
|
||||
for (Long id : ids) {
|
||||
InsuranceAccountBatchPO po = getInsuranceAccountBatchMapper().getById(id);
|
||||
AccountParam param = AccountParam.builder()
|
||||
.billMonth(po.getBillMonth())
|
||||
.paymentOrganization(po.getPaymentOrganization())
|
||||
.build();
|
||||
delete(param);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void batFile(AccountBatParam batParam) {
|
||||
List<Long> ids = batParam.getIds();
|
||||
for (Long id : ids) {
|
||||
InsuranceAccountBatchPO po = getInsuranceAccountBatchMapper().getById(id);
|
||||
AccountParam param = AccountParam.builder()
|
||||
.billMonth(po.getBillMonth())
|
||||
.paymentOrganization(po.getPaymentOrganization())
|
||||
.build();
|
||||
file(param);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void batSocialSecurityBenefitsRecalculate(AccountBatParam batParam) {
|
||||
List<Long> ids = batParam.getIds();
|
||||
for (Long id : ids) {
|
||||
InsuranceAccountBatchPO param = InsuranceAccountBatchPO.builder().id(id).build();
|
||||
socialSecurityBenefitsRecalculate(param);
|
||||
}
|
||||
}
|
||||
|
||||
public void accountOtherView(InsuranceAccountViewListDTO dto, List<InsuranceAccountDetailPO> pos) {
|
||||
int otherNum = 0;
|
||||
BigDecimal otherPaySum = new BigDecimal("0");
|
||||
|
|
|
|||
|
|
@ -2770,12 +2770,22 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
if (otherPaymentBaseString != null) {
|
||||
updateOtherInfo.setOtherPaymentBaseString(otherPaymentBaseString);
|
||||
}
|
||||
if (!welBaseDiffSign) {
|
||||
otherPaymentBaseString = adaptWelBaseLimit(updateOtherInfo.getOtherSchemeId(), updateOtherInfo.getOtherPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
if (otherPaymentBaseString != null) {
|
||||
updateOtherInfo.setOtherPaymentBaseString(otherPaymentBaseString);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
StringBuilder errorMsg = new StringBuilder("");
|
||||
if (!checkWelBaseLimit(updateOtherInfo.getOtherSchemeId(),updateOtherInfo.getOtherPaymentBaseString(), PaymentScopeEnum.SCOPE_PERSON.getValue(), errorMsg)) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"其他福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "其他福利个人: " + errorMsg;
|
||||
}
|
||||
if ( (!welBaseDiffSign) && (!checkWelBaseLimit(updateOtherInfo.getOtherSchemeId(),updateOtherInfo.getOtherPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue(), errorMsg))) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"其他福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "其他福利公司: " + errorMsg;
|
||||
}
|
||||
}
|
||||
//需要拆分个人和公司福利基数时
|
||||
if (welBaseDiffSign) {
|
||||
|
|
@ -2841,12 +2851,22 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
if (otherPaymentBaseString != null) {
|
||||
insertOtherInfo.setOtherPaymentBaseString(otherPaymentBaseString);
|
||||
}
|
||||
if (!welBaseDiffSign) {
|
||||
otherPaymentBaseString = adaptWelBaseLimit(insertOtherInfo.getOtherSchemeId(), insertOtherInfo.getOtherPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
if (otherPaymentBaseString != null) {
|
||||
insertOtherInfo.setOtherPaymentBaseString(otherPaymentBaseString);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
StringBuilder errorMsg = new StringBuilder("");
|
||||
if (!checkWelBaseLimit(insertOtherInfo.getOtherSchemeId(),insertOtherInfo.getOtherPaymentBaseString(), PaymentScopeEnum.SCOPE_PERSON.getValue(), errorMsg)) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"其他福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "其他福利个人:" + errorMsg;
|
||||
}
|
||||
if ( (!welBaseDiffSign) && (!checkWelBaseLimit(insertOtherInfo.getOtherSchemeId(),insertOtherInfo.getOtherPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue(), errorMsg))) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"其他福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "其他福利公司:" + errorMsg;
|
||||
}
|
||||
}
|
||||
//需要拆分个人和公司福利基数时
|
||||
if (welBaseDiffSign) {
|
||||
|
|
@ -2981,12 +3001,22 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
if (fundPaymentBaseString != null) {
|
||||
updateFundInfo.setFundPaymentBaseString(fundPaymentBaseString);
|
||||
}
|
||||
if (!welBaseDiffSign) {
|
||||
fundPaymentBaseString = adaptWelBaseLimit(updateFundInfo.getFundSchemeId(), updateFundInfo.getFundPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
if (fundPaymentBaseString != null) {
|
||||
updateFundInfo.setFundPaymentBaseString(fundPaymentBaseString);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
StringBuilder errorMsg = new StringBuilder("");
|
||||
if (!checkWelBaseLimit(updateFundInfo.getFundSchemeId(),updateFundInfo.getFundPaymentBaseString(), PaymentScopeEnum.SCOPE_PERSON.getValue(), errorMsg)) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"公积金福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "公积金个人" + errorMsg;
|
||||
}
|
||||
if ( (!welBaseDiffSign) && (!checkWelBaseLimit(updateFundInfo.getFundSchemeId(),updateFundInfo.getFundPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue(), errorMsg))) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"公积金福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "公积金公司" + errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
//需要拆分个人和公司福利基数时
|
||||
|
|
@ -3057,12 +3087,22 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
if (fundPaymentBaseString != null) {
|
||||
insertFundInfo.setFundPaymentBaseString(fundPaymentBaseString);
|
||||
}
|
||||
if (!welBaseDiffSign) {
|
||||
fundPaymentBaseString = adaptWelBaseLimit(insertFundInfo.getFundSchemeId(), insertFundInfo.getFundPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
if (fundPaymentBaseString != null) {
|
||||
insertFundInfo.setFundPaymentBaseString(fundPaymentBaseString);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
StringBuilder errorMsg = new StringBuilder("");
|
||||
if (!checkWelBaseLimit(insertFundInfo.getFundSchemeId(),insertFundInfo.getFundPaymentBaseString(), PaymentScopeEnum.SCOPE_PERSON.getValue(), errorMsg)) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"公积金福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "公积金个人:" + errorMsg;
|
||||
}
|
||||
if ((!welBaseDiffSign) && (!checkWelBaseLimit(insertFundInfo.getFundSchemeId(),insertFundInfo.getFundPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue(), errorMsg))) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"公积金福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "公积金公司:" + errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
//需要拆分个人和公司福利基数时
|
||||
|
|
@ -3204,12 +3244,22 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
if (socialPaymentBaseString != null) {
|
||||
updateSocialInfo.setSocialPaymentBaseString(socialPaymentBaseString);
|
||||
}
|
||||
if (!welBaseDiffSign) {
|
||||
socialPaymentBaseString = adaptWelBaseLimit(updateSocialInfo.getSocialSchemeId(), updateSocialInfo.getSocialPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
if (socialPaymentBaseString != null) {
|
||||
updateSocialInfo.setSocialPaymentBaseString(socialPaymentBaseString);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
StringBuilder errorMsg = new StringBuilder("");
|
||||
if (!checkWelBaseLimit(updateSocialInfo.getSocialSchemeId(),updateSocialInfo.getSocialPaymentBaseString(), PaymentScopeEnum.SCOPE_PERSON.getValue(), errorMsg)) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"社保福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "社保个人:" + errorMsg;
|
||||
}
|
||||
if ((!welBaseDiffSign) && (!checkWelBaseLimit(updateSocialInfo.getSocialSchemeId(),updateSocialInfo.getSocialPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue(), errorMsg))) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"社保福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "社保公司:" + errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
//需要拆分个人和公司福利基数时
|
||||
|
|
@ -3279,12 +3329,22 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
if (socialPaymentBaseString != null) {
|
||||
insertSocialInfo.setSocialPaymentBaseString(socialPaymentBaseString);
|
||||
}
|
||||
if (!welBaseDiffSign) {
|
||||
socialPaymentBaseString = adaptWelBaseLimit(insertSocialInfo.getSocialSchemeId(), insertSocialInfo.getSocialPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
if (socialPaymentBaseString != null) {
|
||||
insertSocialInfo.setSocialPaymentBaseString(socialPaymentBaseString);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
StringBuilder errorMsg = new StringBuilder("");
|
||||
if (!checkWelBaseLimit(insertSocialInfo.getSocialSchemeId(),insertSocialInfo.getSocialPaymentBaseString(), PaymentScopeEnum.SCOPE_PERSON.getValue(), errorMsg)) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"社保福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "社保个人:" + errorMsg;
|
||||
}
|
||||
if ((!welBaseDiffSign) && (!checkWelBaseLimit(insertSocialInfo.getSocialSchemeId(),insertSocialInfo.getSocialPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue(), errorMsg))) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(0,"社保福利明细中的基数更新内容不符合相关基数上下限要求,请检查后重试!"));
|
||||
combineErrorMsg = "社保公司:" + errorMsg;
|
||||
}
|
||||
}
|
||||
//需要拆分个人和公司福利基数时
|
||||
if (welBaseDiffSign) {
|
||||
|
|
@ -4028,7 +4088,12 @@ public class SIArchivesServiceImpl extends Service implements SIArchivesService
|
|||
if (org.apache.commons.collections.CollectionUtils.isEmpty(employeeIds)) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return getInsuranceBaseInfoMapper().listEndDateIsNull(employeeIds);
|
||||
List<InsuranceArchivesBaseInfoPO> resultList = new ArrayList<>();
|
||||
List<List<Long>> partition = Lists.partition(employeeIds, 500);
|
||||
partition.forEach(part -> {
|
||||
resultList.addAll(getInsuranceBaseInfoMapper().listEndDateIsNull(part));
|
||||
});
|
||||
return resultList;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.engine.salary.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alipay.oceanbase.jdbc.StringUtils;
|
||||
import com.cloudstore.eccom.pc.table.WeaTable;
|
||||
import com.cloudstore.eccom.pc.table.WeaTableColumn;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
|
|
@ -41,6 +40,7 @@ import com.engine.salary.util.db.MapperProxyFactory;
|
|||
import com.engine.salary.util.page.Column;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.engine.salary.util.db.IdGenerator;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import weaver.hrm.User;
|
||||
|
||||
|
|
|
|||
|
|
@ -1409,6 +1409,14 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
|
|||
|
||||
Boolean otherCheckBase = getSIArchivesService(user).checkWelBaseLimit(insuranceArchivesOtherSchemePO.getOtherSchemeId(), insuranceArchivesOtherSchemePO.getOtherPaymentBaseString(), PaymentScopeEnum.SCOPE_PERSON.getValue(), errorMsg);
|
||||
|
||||
Boolean socialCheckBase2 = true;
|
||||
Boolean fundCheckBase2 = true;
|
||||
Boolean otherCheckBase2 = true;
|
||||
if (!welBaseDiffSign) {
|
||||
socialCheckBase2 = getSIArchivesService(user).checkWelBaseLimit(insuranceArchivesSocialSchemePO.getSocialSchemeId(), insuranceArchivesSocialSchemePO.getSocialPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue(), errorMsg);
|
||||
fundCheckBase2 = getSIArchivesService(user).checkWelBaseLimit(insuranceArchivesFundSchemePO.getFundSchemeId(), insuranceArchivesFundSchemePO.getFundPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue(), errorMsg);
|
||||
otherCheckBase2 = getSIArchivesService(user).checkWelBaseLimit(insuranceArchivesOtherSchemePO.getOtherSchemeId(), insuranceArchivesOtherSchemePO.getOtherPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue(), errorMsg);
|
||||
}
|
||||
Boolean socialCheckComBase = true;
|
||||
Boolean fundCheckComBase = true;
|
||||
Boolean otherCheckComBase = true;
|
||||
|
|
@ -1417,17 +1425,17 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
|
|||
fundCheckComBase = getSIArchivesService(user).checkWelBaseLimit(insuranceArchivesFundSchemePO.getFundSchemeId(), insuranceArchivesFundSchemePO.getFundPaymentComBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue(), errorMsg);
|
||||
otherCheckComBase = getSIArchivesService(user).checkWelBaseLimit(insuranceArchivesOtherSchemePO.getOtherSchemeId(), insuranceArchivesOtherSchemePO.getOtherPaymentComBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue(), errorMsg);
|
||||
}
|
||||
if (socialCheckBase && fundCheckBase && otherCheckBase && socialCheckComBase && fundCheckComBase && otherCheckComBase) {
|
||||
if (socialCheckBase && fundCheckBase && otherCheckBase && socialCheckBase2 && fundCheckBase2 && otherCheckBase2 && socialCheckComBase && fundCheckComBase && otherCheckComBase) {
|
||||
insuranceArchivesAccountPOS.add(insuranceArchivesAccountPO);
|
||||
} else {
|
||||
String checkMessage = "该条数据中";
|
||||
if (!socialCheckBase || !socialCheckComBase) {
|
||||
if (!socialCheckBase || !socialCheckBase2 || !socialCheckComBase) {
|
||||
checkMessage = checkMessage + "社保福利基数、";
|
||||
}
|
||||
if (!fundCheckBase || !fundCheckComBase) {
|
||||
if (!fundCheckBase || !fundCheckBase2 || !fundCheckComBase) {
|
||||
checkMessage = checkMessage + "公积金福利基数、";
|
||||
}
|
||||
if (!otherCheckBase || !otherCheckComBase) {
|
||||
if (!otherCheckBase || !otherCheckBase2 || !otherCheckComBase) {
|
||||
checkMessage = checkMessage + "其他福利基数、";
|
||||
}
|
||||
checkMessage = checkMessage.substring(0, checkMessage.length() - 1);
|
||||
|
|
@ -1447,6 +1455,14 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
|
|||
insuranceArchivesSocialSchemePO.setSocialPaymentBaseString(newSocialPaymentBaseString);
|
||||
insuranceArchivesFundSchemePO.setFundPaymentBaseString(newFundPaymentBaseString);
|
||||
insuranceArchivesOtherSchemePO.setOtherPaymentBaseString(newOtherPaymentBaseString);
|
||||
if (!welBaseDiffSign) {
|
||||
newSocialPaymentBaseString = getSIArchivesService(user).checkAndBuildWelBaseWithLimit(insuranceArchivesSocialSchemePO.getSocialSchemeId(), insuranceArchivesSocialSchemePO.getSocialPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
newFundPaymentBaseString = getSIArchivesService(user).checkAndBuildWelBaseWithLimit(insuranceArchivesFundSchemePO.getFundSchemeId(), insuranceArchivesFundSchemePO.getFundPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
newOtherPaymentBaseString = getSIArchivesService(user).checkAndBuildWelBaseWithLimit(insuranceArchivesOtherSchemePO.getOtherSchemeId(), insuranceArchivesOtherSchemePO.getOtherPaymentBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
insuranceArchivesSocialSchemePO.setSocialPaymentBaseString(newSocialPaymentBaseString);
|
||||
insuranceArchivesFundSchemePO.setFundPaymentBaseString(newFundPaymentBaseString);
|
||||
insuranceArchivesOtherSchemePO.setOtherPaymentBaseString(newOtherPaymentBaseString);
|
||||
}
|
||||
|
||||
if (welBaseDiffSign) {
|
||||
String newSocialPaymentComBaseString = getSIArchivesService(user).checkAndBuildWelBaseWithLimit(insuranceArchivesSocialSchemePO.getSocialSchemeId(), insuranceArchivesSocialSchemePO.getSocialPaymentComBaseString(), PaymentScopeEnum.SCOPE_COMPANY.getValue());
|
||||
|
|
|
|||
|
|
@ -405,11 +405,13 @@ public class SalaryAcctExcelServiceImpl extends Service implements SalaryAcctExc
|
|||
if (openSum != null && StringUtils.isNotBlank(openSum.getConfValue()) && OpenEnum.parseByValue(openSum.getConfValue()) == OpenEnum.OPEN) {
|
||||
total = true;
|
||||
Map<String, Object> sumRow = getSalaryAcctResultService(user).sumRow(queryParam);
|
||||
sumRow.forEach((k, v) -> {
|
||||
if (NumberUtils.isCreatable(v.toString())) {
|
||||
sumRow.put(k, new BigDecimal(v.toString()));
|
||||
}
|
||||
});
|
||||
if (sumRow != null) {
|
||||
sumRow.forEach((k, v) -> {
|
||||
if (NumberUtils.isCreatable(v.toString())) {
|
||||
sumRow.put(k, new BigDecimal(v.toString()));
|
||||
}
|
||||
});
|
||||
}
|
||||
if (sumRow != null) {
|
||||
sumRow.put("taxAgentName", "总计");
|
||||
resultMapList.add(sumRow);
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue