fix: onlyOffice获取文件报错
This commit is contained in:
+3
@@ -122,6 +122,9 @@ public class OnlyOfficeController {
|
|||||||
@ApiOperation(value = "根据Id获取文件信息")
|
@ApiOperation(value = "根据Id获取文件信息")
|
||||||
@GetMapping("/queryById")
|
@GetMapping("/queryById")
|
||||||
public Result<Map<String, String>> queryById(String id) {
|
public Result<Map<String, String>> queryById(String id) {
|
||||||
|
if (StringUtils.isBlank(id)) {
|
||||||
|
return Result.error("id不能为空!");
|
||||||
|
}
|
||||||
HashMap<String, String> map = new HashMap<>();
|
HashMap<String, String> map = new HashMap<>();
|
||||||
BusProcessModelHis his = busProcessModelHisService.getById(id);
|
BusProcessModelHis his = busProcessModelHisService.getById(id);
|
||||||
map.put("fileName", his.getFileName());
|
map.put("fileName", his.getFileName());
|
||||||
|
|||||||
Reference in New Issue
Block a user