Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
b3e131aa
You need to sign in or sign up before continuing.
Commit
b3e131aa
authored
Mar 04, 2025
by
chenyuxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 批量更新年度验证
parent
7b127afa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+9
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
b3e131aa
...
@@ -3452,8 +3452,16 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -3452,8 +3452,16 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
}
}
// 1.9.7 : 校验年份不可为未来年份
// 1.9.7 : 校验年份不可为未来年份
if
(
"declareYear"
.
equals
(
shuName
)
&&
Common
.
isNotNull
(
shuValue
)){
if
(
"declareYear"
.
equals
(
shuName
)
&&
Common
.
isNotNull
(
shuValue
)){
Boolean
isNum
=
true
;
shuValue
=
shuValue
.
replaceAll
(
"\\..*"
,
""
);
shuValue
=
shuValue
.
replaceAll
(
"\\..*"
,
""
);
if
(
shuValue
.
length
()
==
4
&&
(
Integer
.
parseInt
(
shuValue
)
>
DateUtil
.
getYearOfInt
(
new
Date
()))){
for
(
char
c
:
shuValue
.
toCharArray
())
{
if
(!
Character
.
isDigit
(
c
))
{
errorFormat
.
append
(
attr
.
name
()).
append
(
"_只能是纯数字;"
);
isNum
=
false
;
break
;
}
}
if
(
isNum
&&
shuValue
.
length
()
==
4
&&
(
Integer
.
parseInt
(
shuValue
)
>
DateUtil
.
getYearOfInt
(
new
Date
()))){
errorFormat
.
append
(
attr
.
name
()).
append
(
"_不可为未来年份;"
);
errorFormat
.
append
(
attr
.
name
()).
append
(
"_不可为未来年份;"
);
}
}
}
}
...
...
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