Commit 306ca6e9c3f71d908f0221221ba278c7642b14ec
1 parent
e856f77284
Exists in
master
and in
1 other branch
update
Showing 1 changed file with 6 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
306ca6e
... | ... | @@ -1249,6 +1249,8 @@ |
1249 | 1249 | baseResponse.setErrorcode(f?0:1); |
1250 | 1250 | baseResponse.setErrormsg(f?(null==patient.getId()?"注册成功!":"修改成功"):(null==patient.getId()?"注册成功!":"修改成功")); |
1251 | 1251 | } catch (Exception e) { |
1252 | + baseResponse.setErrorcode(1); | |
1253 | + baseResponse.setErrormsg("系统异常"); | |
1252 | 1254 | e.printStackTrace(); |
1253 | 1255 | } |
1254 | 1256 | return baseResponse; |
... | ... | @@ -1277,6 +1279,8 @@ |
1277 | 1279 | baseResponse.setErrormsg("该档案有关联病例,不许删除"); |
1278 | 1280 | } |
1279 | 1281 | } catch (Exception e) { |
1282 | + baseResponse.setErrorcode(1); | |
1283 | + baseResponse.setErrormsg("系统异常"); | |
1280 | 1284 | e.printStackTrace(); |
1281 | 1285 | } |
1282 | 1286 | return baseResponse; |
... | ... | @@ -1308,6 +1312,8 @@ |
1308 | 1312 | Page<LymsPatient> lymsPatientPage=lymsPatientService.page(page, query.orderByDesc("updatedtime","createdtime")); |
1309 | 1313 | baseResponse.setObject(lymsPatientPage); |
1310 | 1314 | } catch (Exception e) { |
1315 | + baseResponse.setErrorcode(1); | |
1316 | + baseResponse.setErrormsg("系统异常"); | |
1311 | 1317 | e.printStackTrace(); |
1312 | 1318 | } |
1313 | 1319 | return baseResponse; |