Commit 0459c374 authored by liqin's avatar liqin 💬

bug fixed

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