|
|
|
@ -23,7 +23,6 @@ import org.springframework.web.bind.annotation.*;
@@ -23,7 +23,6 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.Optional; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -44,7 +43,8 @@ public class FileController {
@@ -44,7 +43,8 @@ public class FileController {
|
|
|
|
|
|
|
|
|
|
private LambdaQueryWrapper<File> getQueryWrapper(File file) { |
|
|
|
|
return new LambdaQueryWrapper<File>() |
|
|
|
|
.like(StrUtil.isNotBlank(file.getFileName()), File::getFileName, file.getFileName()); |
|
|
|
|
.like(StrUtil.isNotBlank(file.getFileName()), File::getFileName, file.getFileName()) |
|
|
|
|
.orderByDesc(File::getCreateTime); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/list") |
|
|
|
|