ci: 在线编辑queryById接口增加保护性判断

This commit is contained in:
2024-04-16 17:37:53 +08:00
parent 357af0625c
commit 3f8290198c
@@ -141,6 +141,10 @@ public class OnlyOfficeController {
}
HashMap<String, String> map = new HashMap<>();
BusProcessModelHis his = busProcessModelHisService.getById(id);
if (his == null) {
log.error("在线编辑queryById:{}", id);
throw new JeroBootException("获取在线编辑文件记录错误,请检查");
}
map.put("fileName", his.getFileName());
map.put("editFilePath", his.getEditFilePath());
map.put("id", his.getId());