Commit 86c0b006 by weijiguang

删除page必填项

parent 28f7af27
...@@ -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-点单屏");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment