Commit dbfd39cb0d15879e84d3cd3108c20dc916635392
1 parent
8798fe3adc
Exists in
master
获取单个医生、患者信息
Showing 2 changed files with 26 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java
View file @
dbfd39c
... | ... | @@ -210,5 +210,18 @@ |
210 | 210 | lymsLogsCrudService.save(lymsLogsCrud); |
211 | 211 | |
212 | 212 | } |
213 | + | |
214 | + /** | |
215 | + * 查询单个医生的信息 | |
216 | + * @param doctor | |
217 | + * @return | |
218 | + */ | |
219 | + @GetMapping("queryDoctor") | |
220 | + public BaseResponse delDoctor(LymsDoctor doctor){ | |
221 | + BaseResponse baseResponse=new BaseResponse(); | |
222 | + LymsDoctor doctor2=lymsDoctorService.getOne(Wrappers.query(doctor)); | |
223 | + baseResponse.setObject(doctor2); | |
224 | + return baseResponse; | |
225 | + } | |
213 | 226 | } |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
dbfd39c
... | ... | @@ -235,5 +235,18 @@ |
235 | 235 | return baseResponse; |
236 | 236 | } |
237 | 237 | |
238 | + /** | |
239 | + * 查询单个患者信息 | |
240 | + * @param patientInfo | |
241 | + * @return | |
242 | + */ | |
243 | + @GetMapping("queryPatient") | |
244 | + public BaseResponse queryPatient(PatientInfo patientInfo){ | |
245 | + BaseResponse baseResponse=new BaseResponse(); | |
246 | + PatientInfo patientInfo2=patientInfoService.getOne(Wrappers.query(patientInfo)); | |
247 | + baseResponse.setObject(patientInfo2); | |
248 | + return baseResponse; | |
249 | + } | |
250 | + | |
238 | 251 | } |