提交 a1da652a authored 作者: zhouzhigang's avatar zhouzhigang

--no commit message

上级 160ab2a4
......@@ -202,7 +202,7 @@ public class ResourceLibraryController {
int count = resourceRelationService.selectCount(relation);
//获取当前资源的节数,判断绑定的资源的总条数不能超过当前资源的总节数
CourseLibrary courseLibrary = courseLibraryService.selectByPrimaryKey(entity.getId());
if(courseLibrary != null) {
if(courseLibrary != null && entity.getRelationtype().intValue() == 1) {
Integer countVideo = courseLibrary.getCountVideo();
if((entity.getResourceIds().length + count) > countVideo.intValue()) {
throw new BaseException("更新节数不能大于总节数");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论