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
f3fcad63
Commit
f3fcad63
authored
Mar 27, 2025
by
chenyuxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 改错误提示语返回格式
parent
de0b3116
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ExcelUtil.java
...m/yifu/cloud/plus/v1/yifu/common/core/util/ExcelUtil.java
+2
-2
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/util/ExcelUtil.java
View file @
f3fcad63
...
@@ -659,7 +659,7 @@ public class ExcelUtil <T> implements Serializable {
...
@@ -659,7 +659,7 @@ public class ExcelUtil <T> implements Serializable {
private
String
validateUtil
(
String
c
,
ExcelAttribute
attr
,
int
i
)
{
private
String
validateUtil
(
String
c
,
ExcelAttribute
attr
,
int
i
)
{
//非空校验
//非空校验
if
(
attr
.
isNotEmpty
()
&&
!
Common
.
isNotNull
(
c
))
{
if
(
attr
.
isNotEmpty
()
&&
!
Common
.
isNotNull
(
c
))
{
return
errorInfo
(
attr
,
"_
字段
不可为空"
,
i
);
return
errorInfo
(
attr
,
"_不可为空"
,
i
);
}
}
if
(
Common
.
isNotNull
(
c
))
{
if
(
Common
.
isNotNull
(
c
))
{
//日期格式校验
//日期格式校验
...
@@ -780,7 +780,7 @@ public class ExcelUtil <T> implements Serializable {
...
@@ -780,7 +780,7 @@ public class ExcelUtil <T> implements Serializable {
if
(
null
!=
errorMessageHashMap
&&
null
!=
errorMessage
)
{
if
(
null
!=
errorMessageHashMap
&&
null
!=
errorMessage
)
{
temp
=
errorMessageHashMap
.
get
(
errorMessage
.
getLineNum
());
temp
=
errorMessageHashMap
.
get
(
errorMessage
.
getLineNum
());
if
(
null
!=
temp
)
{
if
(
null
!=
temp
)
{
temp
.
setMessage
(
temp
.
getMessage
()
+
CommonConstants
.
DOWN_LINE_STRING
+
errorMessage
.
getMessage
());
temp
.
setMessage
(
temp
.
getMessage
()
+
";"
+
errorMessage
.
getMessage
());
errorMessageHashMap
.
put
(
temp
.
getLineNum
(),
temp
);
errorMessageHashMap
.
put
(
temp
.
getLineNum
(),
temp
);
}
else
{
}
else
{
errorMessageHashMap
.
put
(
errorMessage
.
getLineNum
(),
errorMessage
);
errorMessageHashMap
.
put
(
errorMessage
.
getLineNum
(),
errorMessage
);
...
...
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