Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
hooloo
ms
soss
Commits
86c0b006
Commit
86c0b006
authored
Feb 22, 2023
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除page必填项
parent
28f7af27
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
soss-system/src/main/java/com/soss/system/service/impl/SysBannerServiceImpl.java
+6
-6
No files found.
soss-system/src/main/java/com/soss/system/service/impl/SysBannerServiceImpl.java
View file @
86c0b006
...
@@ -40,9 +40,9 @@ public class SysBannerServiceImpl implements ISysBannerService {
...
@@ -40,9 +40,9 @@ public class SysBannerServiceImpl implements ISysBannerService {
if
(
StringUtils
.
isEmpty
(
banner
.
getImage
()))
{
if
(
StringUtils
.
isEmpty
(
banner
.
getImage
()))
{
throw
new
ServiceException
(
"图片地址不能为空"
);
throw
new
ServiceException
(
"图片地址不能为空"
);
}
}
if
(
StringUtils
.
isEmpty
(
banner
.
getPage
()))
{
//
if (StringUtils.isEmpty(banner.getPage())) {
throw
new
ServiceException
(
"链接地址不能为空"
);
//
throw new ServiceException("链接地址不能为空");
}
//
}
if
(
banner
.
getType
()
==
null
||
banner
.
getType
()
<
1
||
banner
.
getType
()
>
3
)
{
if
(
banner
.
getType
()
==
null
||
banner
.
getType
()
<
1
||
banner
.
getType
()
>
3
)
{
throw
new
ServiceException
(
"类型不正确,1-小程序,2-KDS,3-点单屏"
);
throw
new
ServiceException
(
"类型不正确,1-小程序,2-KDS,3-点单屏"
);
}
}
...
@@ -71,9 +71,9 @@ public class SysBannerServiceImpl implements ISysBannerService {
...
@@ -71,9 +71,9 @@ public class SysBannerServiceImpl implements ISysBannerService {
if
(
StringUtils
.
isEmpty
(
banner
.
getImage
()))
{
if
(
StringUtils
.
isEmpty
(
banner
.
getImage
()))
{
throw
new
ServiceException
(
"图片地址不能为空"
);
throw
new
ServiceException
(
"图片地址不能为空"
);
}
}
if
(
StringUtils
.
isEmpty
(
banner
.
getPage
()))
{
//
if (StringUtils.isEmpty(banner.getPage())) {
throw
new
ServiceException
(
"链接地址不能为空"
);
//
throw new ServiceException("链接地址不能为空");
}
//
}
if
(
banner
.
getType
()
==
null
||
banner
.
getType
()
<
1
||
banner
.
getType
()
>
3
)
{
if
(
banner
.
getType
()
==
null
||
banner
.
getType
()
<
1
||
banner
.
getType
()
>
3
)
{
throw
new
ServiceException
(
"类型不正确,1-小程序,2-KDS,3-点单屏"
);
throw
new
ServiceException
(
"类型不正确,1-小程序,2-KDS,3-点单屏"
);
}
}
...
...
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