Commit 0459c374 authored by liqin's avatar liqin 💬

bug fixed

parent 44d0dc5d
......@@ -268,9 +268,11 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
update = this.videoContentService.removeById(videoContent);
break;
case ADD:
videoContent.setPublished(true);
update = this.videoContentService.updateById(videoContent);;
break;
case EDIT:
videoContent.setPublished(true);
update = this.videoContentService.updateById(videoContent);;
break;
default:
......@@ -309,9 +311,11 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
update = this.exhibitionBoardService.removeById(exhibitionBoard);
break;
case ADD:
exhibitionBoard.setPublished(true);
update = this.exhibitionBoardService.updateById(exhibitionBoard);;
break;
case EDIT:
exhibitionBoard.setPublished(true);
update = this.exhibitionBoardService.updateById(exhibitionBoard);;
break;
default:
......@@ -350,9 +354,11 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
update = this.learningContentService.removeById(learningContent);
break;
case ADD:
learningContent.setPublished(true);
update = this.learningContentService.updateById(learningContent);
break;
case EDIT:
learningContent.setPublished(true);
update = this.learningContentService.updateById(learningContent);
break;
default:
......
......@@ -126,6 +126,7 @@ public class CopyrightOwnerController extends BaseController {
lambdaQueryWrapper.eq(CopyrightOwner::getDeleted, false);
lambdaQueryWrapper.le(CopyrightOwner::getExpireDateStart, TimeUtils.getDateTimeOfTimestamp(System.currentTimeMillis()))
.ge(CopyrightOwner::getExpireDateEnd, TimeUtils.getDateTimeOfTimestamp(System.currentTimeMillis()));
lambdaQueryWrapper.orderByDesc(CopyrightOwner::getCreateTime);
List<CopyrightOwner> copyrightOwnerList = copyrightOwnerService.list(lambdaQueryWrapper);
return getResult(copyrightOwnerList);
}
......
......@@ -278,6 +278,9 @@ public class FileUploadController extends BaseController {
if (!existChineseAudio) {
throw new InterfaceException(RESPONSE_CODE_ENUM.SERVER_ERROR.getResultCode(), "必须包含汉语音频");
}
if (files.length > 5) {
return getFailResult("只能上传包含5种语言的音频");
}
int successCount = 0;
int failureCount = 0;
......@@ -398,6 +401,9 @@ public class FileUploadController extends BaseController {
if (!matchChinese) {
throw new InterfaceException(RESPONSE_CODE_ENUM.SERVER_ERROR.getResultCode(), "文件必须包含汉语视频");
}
if (files.length > 5) {
return getFailResult("只能上传包含5种语言的视频");
}
int successCount = 0;
int failureCount = 0;
......
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