|
@@ -192,7 +192,7 @@ public class CourseStreamingServiceImpl extends ServiceImpl<CourseStreamingMappe
|
|
|
|
|
|
private boolean checkNameUnique(CourseStreaming entity) {
|
|
|
CourseStreaming info = getOne(new LambdaQueryWrapper<CourseStreaming>()
|
|
|
- .eq(CourseStreaming::getStreamingName,entity.getStreamingName()).last("limit 1"));
|
|
|
+ .eq(CourseStreaming::getStreamingName,entity.getStreamingName()).ne(CourseStreaming::getStatus,-1).last("limit 1"));
|
|
|
if (Validator.isNotNull(info)) {
|
|
|
if(Validator.isNotEmpty(entity.getId())){
|
|
|
if(entity.getId().longValue() != info.getId().longValue()){
|