Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
332bba9f
Commit
332bba9f
authored
Feb 15, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.5-薪资导入优化(社保基数)
parent
0a9bd53f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
16 deletions
+19
-16
HrEquator.java
...loud/plus/v1/yifu/common/core/util/equator/HrEquator.java
+14
-11
SalaryAccountUtil.java
...ifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
+4
-4
TSalaryAccountMapper.xml
...ry-biz/src/main/resources/mapper/TSalaryAccountMapper.xml
+1
-1
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/util/equator/HrEquator.java
View file @
332bba9f
...
...
@@ -67,18 +67,21 @@ public class HrEquator extends GetterBaseEquator {
List
<
Object
>
firstList
=
(
List
<
Object
>)
field
.
getFirstVal
();
List
<
Object
>
secondList
=
(
List
<
Object
>)
field
.
getSecondVal
();
curMap
.
put
(
fieldName
,
1
);
if
(
firstList
!=
null
&&
secondList
!=
null
)
{
if
(
firstList
!=
null
&&
secondList
!=
null
&&
!
firstList
.
isEmpty
()
)
{
if
(
firstList
.
size
()
==
secondList
.
size
())
{
listA:
boolean
isTrue
=
true
;
for
(
int
i
=
0
;
i
<
firstList
.
size
();
i
++)
{
diff2
=
equator
.
getDiffFields
(
firstList
.
get
(
i
),
secondList
.
get
(
i
));
for
(
FieldInfo
field2
:
diff2
)
{
fieldName2
=
field2
.
getFieldName
();
if
(!
"createTime"
.
equals
(
fieldName2
)
&&
!
"createBy"
.
equals
(
fieldName2
)
&&
!
"createName"
.
equals
(
fieldName2
)
&&
!
"updateTime"
.
equals
(
fieldName2
)
&&
!
"updateBy"
.
equals
(
fieldName2
))
{
newChange
=
true
;
sb
.
append
(
field
.
getFieldName
()).
append
(
","
);
break
listA
;
if
(
isTrue
)
{
diff2
=
equator
.
getDiffFields
(
firstList
.
get
(
i
),
secondList
.
get
(
i
));
for
(
FieldInfo
field2
:
diff2
)
{
fieldName2
=
field2
.
getFieldName
();
if
(!
"createTime"
.
equals
(
fieldName2
)
&&
!
"createBy"
.
equals
(
fieldName2
)
&&
!
"createName"
.
equals
(
fieldName2
)
&&
!
"updateTime"
.
equals
(
fieldName2
)
&&
!
"updateBy"
.
equals
(
fieldName2
))
{
newChange
=
true
;
sb
.
append
(
field
.
getFieldName
()).
append
(
","
);
isTrue
=
false
;
break
;
}
}
}
}
...
...
@@ -86,7 +89,7 @@ public class HrEquator extends GetterBaseEquator {
newChange
=
true
;
sb
.
append
(
field
.
getFieldName
()).
append
(
","
);
}
}
else
if
(
firstList
!=
null
||
secondList
!=
null
)
{
}
else
if
(
(
firstList
!=
null
&&
!
firstList
.
isEmpty
())
||
(
secondList
!=
null
&&
!
secondList
.
isEmpty
())
)
{
newChange
=
true
;
sb
.
append
(
field
.
getFieldName
()).
append
(
","
);
}
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
View file @
332bba9f
...
...
@@ -475,8 +475,8 @@ public class SalaryAccountUtil implements Serializable {
checkTaxMonthList
.
add
(
newEmps
.
getEmpIdcard
());
}
else
{
if
(
"3"
.
equals
(
salaryType
)
||
"4"
.
equals
(
salaryType
))
{
error
=
"第"
+
(
i
+
2
)
+
"行:薪酬人员查询菜单无此员工,请添加<是否新员工>列,并录入身份证号、开户行总行、开户行省、开户行市、银行卡号、手机号码!"
;
errorList
.
add
(
new
ErrorMessage
((
i
+
2
),
error
));
error
=
"第"
+
(
newEmps
.
getLineNums
()
+
2
)
+
"行:薪酬人员查询菜单无此员工,请添加<是否新员工>列,并录入身份证号、开户行总行、开户行省、开户行市、银行卡号、手机号码!"
;
errorList
.
add
(
new
ErrorMessage
((
newEmps
.
getLineNums
()
+
2
),
error
));
}
else
{
error
=
"第"
+
(
newEmps
.
getLineNums
()
+
2
)
+
"行:薪酬人员查询菜单无此员工,请添加<是否新员工(默认否)>列,并录入身份证号、开户行总行、开户行省、开户行市、银行卡号、计税月份、手机号码!"
;
errorList
.
add
(
new
ErrorMessage
(
newEmps
.
getLineNums
()
+
2
,
error
));
...
...
@@ -911,7 +911,6 @@ public class SalaryAccountUtil implements Serializable {
areaStr
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
entity
.
getBankProvince
().
trim
());
if
(
Common
.
isNotNull
(
areaStr
))
{
newEmp
.
setBankProvince
(
areaStr
);
entity
.
setBankProvince
(
String
.
valueOf
(
newEmp
.
getBankProvince
()));
}
else
{
error
=
"第"
+
(
i
+
2
)
+
"行:"
+
newEmpStr
+
"-开户行省错误:"
+
entity
.
getBankProvince
();
errorList
.
add
(
new
ErrorMessage
((
i
+
2
),
error
));
...
...
@@ -921,7 +920,6 @@ public class SalaryAccountUtil implements Serializable {
+
CommonConstants
.
DOWN_LINE_STRING
+
entity
.
getBankProvince
().
trim
());
if
(
Common
.
isNotNull
(
areaStr
))
{
newEmp
.
setBankCity
(
areaStr
);
entity
.
setBankCity
(
String
.
valueOf
(
newEmp
.
getBankCity
()));
}
else
{
error
=
"第"
+
(
i
+
2
)
+
"行:"
+
newEmpStr
+
"-开户行市错误:"
+
entity
.
getBankCity
();
errorList
.
add
(
new
ErrorMessage
((
i
+
2
),
error
));
...
...
@@ -963,6 +961,8 @@ public class SalaryAccountUtil implements Serializable {
}
}
}
entity
.
setBankProvince
(
String
.
valueOf
(
newEmp
.
getBankProvince
()));
entity
.
setBankCity
(
String
.
valueOf
(
newEmp
.
getBankCity
()));
newEmp
.
setFileStatus
(
CommonConstants
.
ZERO_STRING
);
//临时
newEmp
.
setDeptId
(
dept
.
getId
());
newEmp
.
setDeptName
(
dept
.
getDepartName
());
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryAccountMapper.xml
View file @
332bba9f
...
...
@@ -701,7 +701,7 @@
ap.AREA_NAME BANK_PROVINCE,
ac.AREA_NAME BANK_CITY,
a.IS_PERSON_TAX,
if
null(a.RELAY_SALARY,0) + ifnull(a.RELAY_SALARY_UNIT,0
) RELAY_SALARY,
if
(a.RELAY_SALARY_UNIT is not null and a.RELAY_SALARY_UNIT != 0,a.RELAY_SALARY_UNIT,ifnull(a.RELAY_SALARY,0)
) RELAY_SALARY,
a.ACTUAL_SALARY,
ifnull(a.SALARY_TAX,0) + ifnull(a.SALARY_TAX_UNIT,0) SALARY_TAX,
a.CREATE_NAME,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment