Commit 1941a5e2c2a0c657490b575eac8df8f6efbdd1ce
1 parent
15c1503227
Exists in
master
and in
1 other branch
更新患者信息---小程序端使用
Showing 1 changed file with 18 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
1941a5e
| ... | ... | @@ -182,6 +182,24 @@ |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
| 185 | + * 更新患者信息---小程序端使用 | |
| 186 | + * | |
| 187 | + * @param patient | |
| 188 | + * @return | |
| 189 | + */ | |
| 190 | + @PostMapping("updatePatient") | |
| 191 | + public BaseResponse updatePatient(LymsPatient patient){ | |
| 192 | + BaseResponse baseResponse=new BaseResponse(); | |
| 193 | + boolean f=false; | |
| 194 | + if(Objects.nonNull(patient.getId()) ){ | |
| 195 | + patient.setUpdatedtime(new Date()); | |
| 196 | + f=lymsPatientService.saveOrUpdate(patient); | |
| 197 | + } | |
| 198 | + baseResponse.setErrorcode(f==true?0:1); | |
| 199 | + return baseResponse; | |
| 200 | + } | |
| 201 | + | |
| 202 | + /** | |
| 185 | 203 | * 删除患者 |
| 186 | 204 | * |
| 187 | 205 | * @param id |