Commit 80e42c6e authored by leizhan's avatar leizhan

字段“备注”非必填项未填写时导入失败bug修改

parent e3b525d3
...@@ -459,7 +459,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements ...@@ -459,7 +459,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
throw new RuntimeException("错误行" + rowNum + ":地址不能大于2000"); throw new RuntimeException("错误行" + rowNum + ":地址不能大于2000");
} }
if (ValidationUtil.isEmpty(x.getRemark())&&x.getRemark().length()>255) { if (!ValidationUtil.isEmpty(x.getRemark())&&x.getRemark().length()>255) {
throw new RuntimeException("错误行" + rowNum + ":备注不能大于255"); throw new RuntimeException("错误行" + rowNum + ":备注不能大于255");
} }
......
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