ci: 在线编辑queryById接口增加保护性判断
This commit is contained in:
+4
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user