Commit f2fd2f8e authored by tangwei's avatar tangwei

修改提示具体长度

parent 3a2cb836
......@@ -440,34 +440,34 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
//字段长度效验
if (!ValidationUtil.isEmpty(x.getName())&&x.getName().length()>100) {
throw new RuntimeException("错误行" + rowNum + ":名字过长");
throw new RuntimeException("错误行" + rowNum + ":名字不能大于100");
}
if (!ValidationUtil.isEmpty(x.getCode())&&x.getCode().length()>100) {
throw new RuntimeException("错误行" + rowNum + ":编号过长");
throw new RuntimeException("错误行" + rowNum + ":编号不能大于100");
}
if (!ValidationUtil.isEmpty(x.getUrl())&&x.getUrl().length()>255) {
throw new RuntimeException("错误行" + rowNum + ":视频地址过长");
}
if (!ValidationUtil.isEmpty(x.getToken())&&x.getToken().length()>255) {
throw new RuntimeException("错误行" + rowNum + ":token过长");
throw new RuntimeException("错误行" + rowNum + ":token不能大于255");
}
if (!ValidationUtil.isEmpty(x.getBizOrgCode())&&x.getBizOrgCode().length()>64) {
throw new RuntimeException("错误行" + rowNum + ":机构编码过长");
throw new RuntimeException("错误行" + rowNum + ":机构编码不能大于64");
}
if (!ValidationUtil.isEmpty(x.getBizOrgName())&&x.getBizOrgName().length()>128) {
throw new RuntimeException("错误行" + rowNum + ":机构名称过长");
throw new RuntimeException("错误行" + rowNum + ":机构名称不能大于128");
}
if (!ValidationUtil.isEmpty(x.getAddress())&&x.getAddress().length()>2000) {
throw new RuntimeException("错误行" + rowNum + ":地址过长");
throw new RuntimeException("错误行" + rowNum + ":地址不能大于2000");
}
if (ValidationUtil.isEmpty(x.getRemark())&&x.getRemark().length()>255) {
throw new RuntimeException("错误行" + rowNum + ":备注过长");
throw new RuntimeException("错误行" + rowNum + ":备注不能大于255");
}
if (!ValidationUtil.isEmpty(x.getImg())&&x.getImg().length()>100) {
throw new RuntimeException("错误行" + rowNum + ":备注过长");
throw new RuntimeException("错误行" + rowNum + ":备注不能大于100");
}
// if (!urlPattern.matcher(x.getUrl().trim()).matches()) {
......
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