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
e3235ee0
Commit
e3235ee0
authored
Feb 14, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.5-薪资导入优化(社保基数)
parent
9dec8307
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
19 deletions
+67
-19
TCheckBankNoServiceImpl.java
...d/plus/v1/check/service/impl/TCheckBankNoServiceImpl.java
+10
-2
HrEquator.java
...loud/plus/v1/yifu/common/core/util/equator/HrEquator.java
+35
-1
TSalaryEmployeeServiceImpl.java
.../yifu/salary/service/impl/TSalaryEmployeeServiceImpl.java
+12
-8
SalaryAccountUtil.java
...ifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
+3
-8
SysBaseSetInfoServiceImpl.java
...1/yifu/social/service/impl/SysBaseSetInfoServiceImpl.java
+7
-0
No files found.
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/service/impl/TCheckBankNoServiceImpl.java
View file @
e3235ee0
...
@@ -120,8 +120,16 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
...
@@ -120,8 +120,16 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
Map
<
String
,
Boolean
>
bankMap
=
new
HashMap
<>();
Map
<
String
,
Boolean
>
bankMap
=
new
HashMap
<>();
for
(
TCheckBankNo
check
:
list
)
{
for
(
TCheckBankNo
check
:
list
)
{
cur
=
noMap
.
get
(
check
.
getBankNo
());
cur
=
noMap
.
get
(
check
.
getBankNo
());
if
(
cur
!=
null
&&
cur
.
getName
().
equals
(
check
.
getName
()))
{
if
(
cur
!=
null
)
{
bankMap
.
put
(
cur
.
getBankNo
(),
CommonConstants
.
ZERO_ONE
.
equals
(
cur
.
getResult
()));
if
(
CommonConstants
.
ZERO_ONE
.
equals
(
cur
.
getResult
()))
{
bankMap
.
put
(
cur
.
getBankNo
(),
cur
.
getName
().
equals
(
check
.
getName
()));
}
else
{
if
(
cur
.
getName
().
equals
(
check
.
getName
()))
{
bankMap
.
put
(
cur
.
getBankNo
(),
false
);
}
else
{
noCurlist
.
add
(
check
);
}
}
}
else
{
}
else
{
noCurlist
.
add
(
check
);
noCurlist
.
add
(
check
);
}
}
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/util/equator/HrEquator.java
View file @
e3235ee0
...
@@ -51,15 +51,49 @@ public class HrEquator extends GetterBaseEquator {
...
@@ -51,15 +51,49 @@ public class HrEquator extends GetterBaseEquator {
List
<
FieldInfo
>
diff
=
equator
.
getDiffFields
(
oldInfo
,
newInfo
);
List
<
FieldInfo
>
diff
=
equator
.
getDiffFields
(
oldInfo
,
newInfo
);
Map
<
String
,
Integer
>
curMap
=
new
HashMap
<>();
Map
<
String
,
Integer
>
curMap
=
new
HashMap
<>();
String
fieldName
;
String
fieldName
;
String
fieldName2
;
boolean
newChange
=
false
;
boolean
newChange
=
false
;
if
(!
Common
.
isEmpty
(
diff
))
{
if
(!
Common
.
isEmpty
(
diff
))
{
List
<
FieldInfo
>
diff2
;
for
(
FieldInfo
field:
diff
){
for
(
FieldInfo
field:
diff
){
fieldName
=
field
.
getFieldName
();
fieldName
=
field
.
getFieldName
();
curMap
.
put
(
fieldName
,
1
);
curMap
.
put
(
fieldName
,
1
);
if
(!
"updateTime"
.
equals
(
fieldName
)
&&
!
"updateBy"
.
equals
(
fieldName
))
{
if
(!
"updateTime"
.
equals
(
fieldName
)
&&
!
"updateBy"
.
equals
(
fieldName
)
&&
!
"java.util.List"
.
equals
(
field
.
getFirstFieldType
().
getName
())
)
{
newChange
=
true
;
newChange
=
true
;
sb
.
append
(
field
.
getFieldName
()).
append
(
","
);
sb
.
append
(
field
.
getFieldName
()).
append
(
","
);
}
}
try
{
if
(
"java.util.List"
.
equals
(
field
.
getFirstFieldType
().
getName
()))
{
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
.
size
()
==
secondList
.
size
())
{
listA:
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
;
}
}
}
}
else
{
newChange
=
true
;
sb
.
append
(
field
.
getFieldName
()).
append
(
","
);
}
}
else
if
(
firstList
!=
null
||
secondList
!=
null
)
{
newChange
=
true
;
sb
.
append
(
field
.
getFieldName
()).
append
(
","
);
}
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
}
}
// 从有值变为空,也要记录变更日志
// 从有值变为空,也要记录变更日志
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryEmployeeServiceImpl.java
View file @
e3235ee0
...
@@ -328,26 +328,30 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
...
@@ -328,26 +328,30 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
}
}
}
}
boolean
isFalse
=
false
;
for
(
TSalaryEmployee
employee
:
saveNewEmpList
)
{
for
(
TSalaryEmployee
employee
:
saveNewEmpList
)
{
if
(
bankMap
.
get
(
employee
.
getBankNo
())
!=
null
)
{
if
(
bankMap
.
get
(
employee
.
getBankNo
())
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
bankMap
.
get
(
employee
.
getBankNo
())))
{
if
(
Boolean
.
FALSE
.
equals
(
bankMap
.
get
(
employee
.
getBankNo
())))
{
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()
+
2
),
"第"
+
(
employee
.
getLineNums
()
+
2
)
+
"行:该员工新建
时校验卡号错误
"
));
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()
+
2
),
"第"
+
(
employee
.
getLineNums
()
+
2
)
+
"行:该员工新建
失败:【姓名与卡号验证:认证不一致】
"
));
return
null
;
isFalse
=
true
;
}
}
}
else
{
}
else
{
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()
+
2
),
"第"
+
(
employee
.
getLineNums
()
+
2
)
+
"行:该员工新建
时校验卡号错误:【
"
+
SalaryConstants
.
CHECK_NO_RESPONSE
+
"】"
));
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()
+
2
),
"第"
+
(
employee
.
getLineNums
()
+
2
)
+
"行:该员工新建
失败:【姓名与卡号验证:
"
+
SalaryConstants
.
CHECK_NO_RESPONSE
+
"】"
));
return
null
;
isFalse
=
true
;
}
}
if
(
phoneMap
.
get
(
employee
.
getEmpPhone
())
!=
null
)
{
if
(
phoneMap
.
get
(
employee
.
getEmpPhone
())
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
phoneMap
.
get
(
employee
.
getEmpPhone
())))
{
if
(
Boolean
.
FALSE
.
equals
(
phoneMap
.
get
(
employee
.
getEmpPhone
())))
{
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()
+
2
),
"第"
+
(
employee
.
getLineNums
()
+
2
)
+
"行:该员工新建
时校验手机号错误
"
));
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()
+
2
),
"第"
+
(
employee
.
getLineNums
()
+
2
)
+
"行:该员工新建
失败:【手机号验证:手机号错误】
"
));
return
null
;
isFalse
=
true
;
}
}
}
else
{
}
else
{
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()
+
2
),
"第"
+
(
employee
.
getLineNums
()
+
2
)
+
"行:该员工新建
时校验手机号错误:【
"
+
SalaryConstants
.
CHECK_NO_RESPONSE
+
"】"
));
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()
+
2
),
"第"
+
(
employee
.
getLineNums
()
+
2
)
+
"行:该员工新建
失败:【手机号验证:
"
+
SalaryConstants
.
CHECK_NO_RESPONSE
+
"】"
));
return
null
;
isFalse
=
true
;
}
}
}
}
if
(
isFalse
)
{
return
null
;
}
this
.
saveBatch
(
saveNewEmpList
);
this
.
saveBatch
(
saveNewEmpList
);
}
}
return
null
;
return
null
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
View file @
e3235ee0
...
@@ -477,14 +477,9 @@ public class SalaryAccountUtil implements Serializable {
...
@@ -477,14 +477,9 @@ public class SalaryAccountUtil implements Serializable {
}
}
saveNewEmpList
.
add
(
newEmps
);
saveNewEmpList
.
add
(
newEmps
);
checkTaxMonthList
.
add
(
newEmps
.
getEmpIdcard
());
checkTaxMonthList
.
add
(
newEmps
.
getEmpIdcard
());
}
else
{
}
else
if
(!
"3"
.
equals
(
salaryType
)
&&
!
"4"
.
equals
(
salaryType
))
{
if
(
"4"
.
equals
(
salaryType
))
{
error
=
"第"
+
(
newEmps
.
getLineNums
()
+
2
)
+
"行:薪酬人员查询菜单无此员工,请添加<是否新员工(默认否)>列,并录入身份证号、开户行总行、开户行省、开户行市、银行卡号、计税月份、手机号码!"
;
error
=
"第"
+
(
newEmps
.
getLineNums
()
+
2
)
+
"行:薪酬人员查询菜单无此员工,请添加<是否新员工(默认否)>列,并录入身份证号、开户行总行、开户行省、开户行市、银行卡号、手机号码!"
;
errorList
.
add
(
new
ErrorMessage
(
newEmps
.
getLineNums
()
+
2
,
error
));
errorList
.
add
(
new
ErrorMessage
(
newEmps
.
getLineNums
()
+
2
,
error
));
}
else
if
(
notLabour
)
{
error
=
"第"
+
(
newEmps
.
getLineNums
()
+
2
)
+
"行:薪酬人员查询菜单无此员工,请添加<是否新员工(默认否)>列,并录入身份证号、开户行总行、开户行省、开户行市、银行卡号、计税月份、手机号码!"
;
errorList
.
add
(
new
ErrorMessage
(
newEmps
.
getLineNums
()
+
2
,
error
));
}
}
}
}
else
{
}
else
{
// 使用emp信息
// 使用emp信息
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/SysBaseSetInfoServiceImpl.java
View file @
e3235ee0
...
@@ -249,6 +249,13 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
...
@@ -249,6 +249,13 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
sysPayProportionService
.
save
(
payProportion
);
sysPayProportionService
.
save
(
payProportion
);
}
}
}
}
for
(
SysPayProportion
payProportion
:
payProportionList
)
{
payProportion
.
setCreateBy
(
null
);
payProportion
.
setCreateName
(
null
);
payProportion
.
setCreateTime
(
null
);
payProportion
.
setUpdateBy
(
null
);
payProportion
.
setUpdateTime
(
null
);
}
if
(!
oldFundMap
.
isEmpty
())
{
if
(!
oldFundMap
.
isEmpty
())
{
for
(
SysPayProportion
fund
:
oldFundMap
.
values
())
{
for
(
SysPayProportion
fund
:
oldFundMap
.
values
())
{
sysPayProportionService
.
removeById
(
fund
);
sysPayProportionService
.
removeById
(
fund
);
...
...
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