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
56a26ee2
Commit
56a26ee2
authored
Aug 22, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.6.8-优化薪资
parent
c6f2e69b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
52 deletions
+51
-52
TSalaryEmployeeServiceImpl.java
.../yifu/salary/service/impl/TSalaryEmployeeServiceImpl.java
+51
-52
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryEmployeeServiceImpl.java
View file @
56a26ee2
...
@@ -420,28 +420,10 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
...
@@ -420,28 +420,10 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
TSalaryEmpModLog
log
;
TSalaryEmpModLog
log
;
List
<
TSalaryEmpModLog
>
saveLogList
=
new
ArrayList
<>();
List
<
TSalaryEmpModLog
>
saveLogList
=
new
ArrayList
<>();
for
(
TSalaryEmployee
employee
:
updateEmployeeBankList
)
{
for
(
TSalaryEmployee
employee
:
updateEmployeeBankList
)
{
if
(
Common
.
isNotNull
(
employee
.
getBankNo
())
&&
Common
.
isNotNull
(
employee
.
getBankProvince
()))
{
if
(
Common
.
isNotNull
(
employee
.
getBankNo
()))
{
areaProvince
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
employee
.
getBankProvince
().
trim
());
if
(
Common
.
isEmpty
(
employee
.
getIssueStatus
())
||
employee
.
getIssueStatus
().
equals
(
CommonConstants
.
ZERO_INT
))
{
if
(
Common
.
isNotNull
(
areaProvince
))
{
if
(
Common
.
isNotNull
(
employee
.
getBankCity
()))
{
areaCity
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
employee
.
getBankCity
().
trim
()
+
CommonConstants
.
DOWN_LINE_STRING
+
employee
.
getBankProvince
().
trim
());
if
(
Common
.
isNotNull
(
areaCity
))
{
employee
.
setBankCity
(
areaCity
);
}
else
{
employee
.
setBankCity
(
null
);
}
}
employee
.
setBankProvince
(
areaProvince
);
}
else
{
employee
.
setBankProvince
(
null
);
}
}
if
(
Common
.
isNotNull
(
employee
.
getBankNo
())
&&
(
Common
.
isEmpty
(
employee
.
getIssueStatus
())
||
employee
.
getIssueStatus
().
equals
(
CommonConstants
.
ZERO_INT
)))
{
oldEmp
=
updateEmpBankMap
.
get
(
employee
.
getEmpIdcard
());
oldEmp
=
updateEmpBankMap
.
get
(
employee
.
getEmpIdcard
());
if
(
oldEmp
!=
null
)
{
if
(
oldEmp
!=
null
)
{
if
(
Common
.
isNotNull
(
employee
.
getBankProvince
()))
{
if
(
Common
.
isNotNull
(
employee
.
getBankProvince
()))
{
areaProvince
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
employee
.
getBankProvince
().
trim
());
areaProvince
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
employee
.
getBankProvince
().
trim
());
if
(
Common
.
isNotNull
(
areaProvince
))
{
if
(
Common
.
isNotNull
(
areaProvince
))
{
...
@@ -451,19 +433,19 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
...
@@ -451,19 +433,19 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
if
(
Common
.
isNotNull
(
areaCity
))
{
if
(
Common
.
isNotNull
(
areaCity
))
{
employee
.
setBankCity
(
areaCity
);
employee
.
setBankCity
(
areaCity
);
}
else
{
}
else
{
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()
),
"第"
+
(
employee
.
getLineNums
()
)
+
"行:该员工更新失败:【"
+
SalaryConstants
.
CITY_ERROR
+
"】"
));
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()),
"第"
+
(
employee
.
getLineNums
()
)
+
"行:该员工更新失败:【"
+
SalaryConstants
.
CITY_ERROR
+
"】"
));
isFalse
=
true
;
isFalse
=
true
;
}
}
}
}
employee
.
setBankProvince
(
areaProvince
);
employee
.
setBankProvince
(
areaProvince
);
}
else
{
}
else
{
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()
),
"第"
+
(
employee
.
getLineNums
()
)
+
"行:该员工更新失败:【"
+
SalaryConstants
.
PROVINCE_ERROR
+
"】"
));
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()),
"第"
+
(
employee
.
getLineNums
()
)
+
"行:该员工更新失败:【"
+
SalaryConstants
.
PROVINCE_ERROR
+
"】"
));
isFalse
=
true
;
isFalse
=
true
;
}
}
}
}
// 有变更才更新
// 有变更才更新
if
(
(
Common
.
isNotNull
(
employee
.
getBankNo
())
&&
!
employee
.
getBankNo
().
equals
(
oldEmp
.
getBankNo
()))
if
(
(
Common
.
isNotNull
(
employee
.
getBankNo
())
&&
!
employee
.
getBankNo
().
equals
(
oldEmp
.
getBankNo
()))
||
(
Common
.
isNotNull
(
employee
.
getBankProvince
())
&&
!
employee
.
getBankProvince
().
equals
(
oldEmp
.
getBankProvince
()))
||
(
Common
.
isNotNull
(
employee
.
getBankProvince
())
&&
!
employee
.
getBankProvince
().
equals
(
oldEmp
.
getBankProvince
()))
||
(
Common
.
isNotNull
(
employee
.
getBankCity
())
&&
!
employee
.
getBankCity
().
equals
(
oldEmp
.
getBankCity
()))
||
(
Common
.
isNotNull
(
employee
.
getBankCity
())
&&
!
employee
.
getBankCity
().
equals
(
oldEmp
.
getBankCity
()))
||
(
Common
.
isNotNull
(
employee
.
getBankName
())
&&
!
employee
.
getBankName
().
equals
(
oldEmp
.
getBankName
()))
||
(
Common
.
isNotNull
(
employee
.
getBankName
())
&&
!
employee
.
getBankName
().
equals
(
oldEmp
.
getBankName
()))
...
@@ -471,15 +453,15 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
...
@@ -471,15 +453,15 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
)
{
)
{
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
()
),
"第"
+
(
employee
.
getLineNums
()
)
+
"行:该员工更新失败:【姓名与卡号验证:认证不一致】"
));
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()),
"第"
+
(
employee
.
getLineNums
()
)
+
"行:该员工更新失败:【姓名与卡号验证:认证不一致】"
));
isFalse
=
true
;
isFalse
=
true
;
}
}
}
else
{
}
else
{
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()
),
"第"
+
(
employee
.
getLineNums
()
)
+
"行:该员工更新失败:【姓名与卡号验证:"
+
SalaryConstants
.
CHECK_NO_RESPONSE
+
"】"
));
errorList
.
add
(
new
ErrorMessage
((
employee
.
getLineNums
()),
"第"
+
(
employee
.
getLineNums
()
)
+
"行:该员工更新失败:【姓名与卡号验证:"
+
SalaryConstants
.
CHECK_NO_RESPONSE
+
"】"
));
isFalse
=
true
;
isFalse
=
true
;
}
}
if
(!
isFalse
)
{
if
(!
isFalse
)
{
log
=
logService
.
checkEditToLog
(
employee
,
oldEmp
,
CommonConstants
.
FOUR_STRING
,
employee
.
getCreateName
(),
util
);
log
=
logService
.
checkEditToLog
(
employee
,
oldEmp
,
CommonConstants
.
FOUR_STRING
,
employee
.
getCreateName
(),
util
);
if
(
log
!=
null
)
{
if
(
log
!=
null
)
{
saveLogList
.
add
(
log
);
saveLogList
.
add
(
log
);
}
}
...
@@ -487,6 +469,23 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
...
@@ -487,6 +469,23 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
}
}
}
}
}
else
if
(
employee
.
getIssueStatus
().
equals
(
CommonConstants
.
ONE_INT
)
&&
Common
.
isNotNull
(
employee
.
getBankProvince
()))
{
areaProvince
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
employee
.
getBankProvince
().
trim
());
if
(
Common
.
isNotNull
(
areaProvince
))
{
if
(
Common
.
isNotNull
(
employee
.
getBankCity
()))
{
areaCity
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
employee
.
getBankCity
().
trim
()
+
CommonConstants
.
DOWN_LINE_STRING
+
employee
.
getBankProvince
().
trim
());
if
(
Common
.
isNotNull
(
areaCity
))
{
employee
.
setBankCity
(
areaCity
);
}
else
{
employee
.
setBankCity
(
null
);
}
}
employee
.
setBankProvince
(
areaProvince
);
}
else
{
employee
.
setBankProvince
(
null
);
}
}
}
}
}
}
if
(
isFalse
)
{
if
(
isFalse
)
{
...
...
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