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
e3624d36
Commit
e3624d36
authored
Dec 03, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.2 优化
parent
cc3f97ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
SalaryAccountUtil.java
...ifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
+29
-0
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
View file @
e3624d36
...
...
@@ -31,6 +31,8 @@ import java.lang.reflect.Method;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.util.*
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
static
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
util
.
SalaryCommonUtil
.
setFields
;
...
...
@@ -531,6 +533,23 @@ public class SalaryAccountUtil implements Serializable {
// 统一处理连接查询
if
(
updateEmpList
!=
null
&&
!
updateEmpList
.
isEmpty
())
{
String
areaProvince
;
String
areaCity
;
for
(
TSalaryEmployee
employee
:
updateEmpList
)
{
if
(
Common
.
isNotNull
(
employee
.
getBankProvince
())
&&
regNumber
(
employee
.
getBankProvince
()))
{
areaProvince
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
employee
.
getBankProvince
().
trim
());
if
(
Common
.
isNotNull
(
areaProvince
))
{
if
(
Common
.
isNotNull
(
employee
.
getBankCity
())
&&
regNumber
(
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
);
}
}
employee
.
setBankProvince
(
areaProvince
);
}
}
}
tSalaryEmployeeService
.
updateBatchById
(
updateEmpList
);
}
if
(!
checkBankInfoEmpList
.
isEmpty
())
{
...
...
@@ -650,6 +669,16 @@ public class SalaryAccountUtil implements Serializable {
this
.
setErrorInfo
(
errorList
);
}
private
static
boolean
regNumber
(
String
content
)
{
boolean
flag
=
true
;
Pattern
p
=
Pattern
.
compile
(
"^[0-9]*$"
);
Matcher
m
=
p
.
matcher
(
content
);
if
(
m
.
matches
())
{
flag
=
false
;
}
return
flag
;
}
// updateEmpBankList hgw 2024-7-22 10:18:02 更新开户行卡号等信息,以表导入为准
private
boolean
setEntityByEmpInfo
(
TSettleDomainSelectVo
dept
,
Map
<
String
,
Integer
>
ownEmployeeMap
,
Map
<
String
,
Integer
>
ownDeptMap
,
String
salaryType
,
Integer
isIssue
,
List
<
ErrorMessage
>
errorList
...
...
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