Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
emport-api
Overview
Overview
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
刘泽志
emport-api
Commits
c24a569e
Commit
c24a569e
authored
Sep 25, 2023
by
liuzz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验长度汉字x3
parent
f8879e66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
ExcelDataServiceImpl.java
...his/web/dataImport/service/impl/ExcelDataServiceImpl.java
+1
-1
No files found.
admin-api/src/main/java/com/tbyf/his/web/dataImport/service/impl/ExcelDataServiceImpl.java
View file @
c24a569e
...
@@ -543,7 +543,7 @@ public class ExcelDataServiceImpl extends ServiceImpl<ExcelDataMapper, ExcelData
...
@@ -543,7 +543,7 @@ public class ExcelDataServiceImpl extends ServiceImpl<ExcelDataMapper, ExcelData
vo
.
addValue
(
cellValue
);
vo
.
addValue
(
cellValue
);
}
}
}
else
if
(
StringUtils
.
containsIgnoreCase
(
vo
.
getFieldType
(),
"VARCHAR"
))
{
}
else
if
(
StringUtils
.
containsIgnoreCase
(
vo
.
getFieldType
(),
"VARCHAR"
))
{
if
(
l
<
cellValue
.
length
())
{
if
(
l
<
cellValue
.
length
()
*
3
)
{
errorList
.
add
(
StrFormatter
.
format
(
"字段数据:[{}],字段类型:[{}],字段名称:[{}],数据位置:[{}],数据长度不足"
,
errorList
.
add
(
StrFormatter
.
format
(
"字段数据:[{}],字段类型:[{}],字段名称:[{}],数据位置:[{}],数据长度不足"
,
cellValue
,
vo
.
getFieldType
(),
vo
.
getFieldName
(),
new
CellReference
(
cell
.
getRowIndex
(),
cell
.
getColumnIndex
()).
formatAsString
()));
cellValue
,
vo
.
getFieldType
(),
vo
.
getFieldName
(),
new
CellReference
(
cell
.
getRowIndex
(),
cell
.
getColumnIndex
()).
formatAsString
()));
}
}
...
...
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