视频分组
This commit is contained in:
parent
80e666ecdf
commit
f41d6d0c4e
@ -50,6 +50,7 @@ public class VideoGroupServiceImpl extends ServiceImpl<VideoGroupMapper, VideoGr
|
|||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
throw new OpenAlertException(MessageUtil.get("nameExistErr"));
|
throw new OpenAlertException(MessageUtil.get("nameExistErr"));
|
||||||
}
|
}
|
||||||
|
videoGroup.setId(null);
|
||||||
boolean top = videoGroup.getParentId() == null || videoGroup.getParentId() == 0;
|
boolean top = videoGroup.getParentId() == null || videoGroup.getParentId() == 0;
|
||||||
if (top) {
|
if (top) {
|
||||||
videoGroup.setParentId(0L);
|
videoGroup.setParentId(0L);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user