Commit 80e42c6e authored by leizhan's avatar leizhan

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

parent e3b525d3
...@@ -89,7 +89,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements ...@@ -89,7 +89,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
@Value("${param.nrvideo.url}") @Value("${param.nrvideo.url}")
private String nrvideoUrl; private String nrvideoUrl;
@Value("${param.nrflvbyvoideoid.url}") @Value("${param.nrflvbyvoideoid.url}")
private String nrflvByVoideoidUrl; private String nrflvByVoideoidUrl;
...@@ -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");
} }
...@@ -643,7 +643,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements ...@@ -643,7 +643,7 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
} }
return url; return url;
} }
public String getFlvUrlByVideoId(String videoId) { public String getFlvUrlByVideoId(String videoId) {
try { try {
Map<String, Object> request = new HashMap<String, Object>(); Map<String, Object> request = new HashMap<String, Object>();
......
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