Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
e5c574dc
Commit
e5c574dc
authored
Dec 29, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
172dd431
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
VideoServiceImpl.java
...om/yeejoin/equipmanage/service/impl/VideoServiceImpl.java
+8
-8
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/VideoServiceImpl.java
View file @
e5c574dc
...
@@ -439,26 +439,26 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
...
@@ -439,26 +439,26 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
//字段长度效验
//字段长度效验
if
(
ValidationUtil
.
isEmpty
(
x
.
getName
())&&
x
.
getName
().
length
()>
100
)
{
if
(
!
ValidationUtil
.
isEmpty
(
x
.
getName
())&&
x
.
getName
().
length
()>
100
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":名字过长"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":名字过长"
);
}
}
if
(
ValidationUtil
.
isEmpty
(
x
.
getCode
())&&
x
.
getCode
().
length
()>
100
)
{
if
(
!
ValidationUtil
.
isEmpty
(
x
.
getCode
())&&
x
.
getCode
().
length
()>
100
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":编号过长"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":编号过长"
);
}
}
if
(
ValidationUtil
.
isEmpty
(
x
.
getUrl
())&&
x
.
getUrl
().
length
()>
255
)
{
if
(
!
ValidationUtil
.
isEmpty
(
x
.
getUrl
())&&
x
.
getUrl
().
length
()>
255
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":视频地址过长"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":视频地址过长"
);
}
}
if
(
ValidationUtil
.
isEmpty
(
x
.
getToken
())&&
x
.
getToken
().
length
()>
255
)
{
if
(
!
ValidationUtil
.
isEmpty
(
x
.
getToken
())&&
x
.
getToken
().
length
()>
255
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":token过长"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":token过长"
);
}
}
if
(
ValidationUtil
.
isEmpty
(
x
.
getBizOrgCode
())&&
x
.
getBizOrgCode
().
length
()>
64
)
{
if
(
!
ValidationUtil
.
isEmpty
(
x
.
getBizOrgCode
())&&
x
.
getBizOrgCode
().
length
()>
64
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":机构编码过长"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":机构编码过长"
);
}
}
if
(
ValidationUtil
.
isEmpty
(
x
.
getBizOrgName
())&&
x
.
getBizOrgName
().
length
()>
128
)
{
if
(
!
ValidationUtil
.
isEmpty
(
x
.
getBizOrgName
())&&
x
.
getBizOrgName
().
length
()>
128
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":机构名称过长"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":机构名称过长"
);
}
}
if
(
ValidationUtil
.
isEmpty
(
x
.
getAddress
())&&
x
.
getAddress
().
length
()>
2000
)
{
if
(
!
ValidationUtil
.
isEmpty
(
x
.
getAddress
())&&
x
.
getAddress
().
length
()>
2000
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":地址过长"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":地址过长"
);
}
}
...
@@ -466,7 +466,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
...
@@ -466,7 +466,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":备注过长"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":备注过长"
);
}
}
if
(
ValidationUtil
.
isEmpty
(
x
.
getImg
())&&
x
.
getImg
().
length
()>
100
)
{
if
(
!
ValidationUtil
.
isEmpty
(
x
.
getImg
())&&
x
.
getImg
().
length
()>
100
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":备注过长"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":备注过长"
);
}
}
...
...
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