Commit 90e167cc92047e408568f5fd126cdd8b6e6fb97a
1 parent
419985b9d0
Exists in
master
his患者数据删除
Showing 1 changed file with 21 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/LymsHisInfoController.java
View file @
90e167c
| ... | ... | @@ -110,6 +110,27 @@ |
| 110 | 110 | return baseResponse; |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | + /** | |
| 114 | + * 删除his医院患者 | |
| 115 | + * @param id | |
| 116 | + * @return | |
| 117 | + */ | |
| 118 | + @DeleteMapping("delHisInfo") | |
| 119 | + @TokenRequired | |
| 120 | + public BaseResponse delHisInfo(Integer id){ | |
| 121 | + BaseResponse baseResponse=new BaseResponse(); | |
| 122 | + try { | |
| 123 | + final boolean result = lymsHisInfoService.removeById(id); | |
| 124 | + if(!result){ | |
| 125 | + baseResponse.setErrorcode(1); | |
| 126 | + baseResponse.setErrormsg("保存异常!"); | |
| 127 | + } | |
| 128 | + } catch (Exception e) { | |
| 129 | + e.printStackTrace(); | |
| 130 | + } | |
| 131 | + return baseResponse; | |
| 132 | + } | |
| 133 | + | |
| 113 | 134 | |
| 114 | 135 | |
| 115 | 136 | } |