Commit d82cfc9d authored by KeYong's avatar KeYong

Merge branch 'develop_dl_plan6_temp' of…

Merge branch 'develop_dl_plan6_temp' of http://39.98.45.134:8090/moa/amos-boot-biz into develop_dl_plan6_temp
parents 037cd79f 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 + ":备注过长");
} }
......
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