Commit 9d81c644 authored by liqin's avatar liqin 💬

bug fixed

parent eeffa0f6
...@@ -85,7 +85,7 @@ public class LearningProjectController extends BaseController { ...@@ -85,7 +85,7 @@ public class LearningProjectController extends BaseController {
@RequiresPermissions("learning:project:list") @RequiresPermissions("learning:project:list")
@ApiOperation(value = "获取全部列表(无分页)", notes = "获取全部列表(无分页)") @ApiOperation(value = "获取全部列表(无分页)", notes = "获取全部列表(无分页)")
public Map<String, Object> getLearningProjectList() { public Map<String, Object> getLearningProjectList() {
List<LearningProject> learningProjectList = learningProjectService.list(); List<LearningProject> learningProjectList = learningProjectService.list(Wrappers.<LearningProject>lambdaQuery().orderByDesc(LearningProject::getCreateTime));
return getResult(learningProjectList); return getResult(learningProjectList);
} }
......
...@@ -111,7 +111,7 @@ public class VideoContentController extends BaseController { ...@@ -111,7 +111,7 @@ public class VideoContentController extends BaseController {
collect.remove(videoFileId); collect.remove(videoFileId);
} }
collect.forEach((k, v) -> { collect.forEach((k, v) -> {
final boolean deleted = this.assetService.removeById(k); boolean deleted = this.assetService.removeById(k);
if (deleted) { if (deleted) {
FastDFSUtils.deleteFile(v); FastDFSUtils.deleteFile(v);
} }
......
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