Commit 7858450c02b288525941bff282207aafc36348d6
1 parent
961b506261
Exists in
master
and in
1 other branch
update
Showing 1 changed file with 4 additions and 6 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java
View file @
7858450
| ... | ... | @@ -153,12 +153,10 @@ |
| 153 | 153 | * @return |
| 154 | 154 | */ |
| 155 | 155 | @GetMapping("delDoctor") |
| 156 | - public BaseResponse delDoctor(int did){ | |
| 156 | + public BaseResponse delDoctor(LymsDoctor doctor){ | |
| 157 | 157 | BaseResponse baseResponse=new BaseResponse(); |
| 158 | - //操作记保存参数 | |
| 159 | - LymsDoctor doctor=lymsDoctorService.getById(did); | |
| 160 | - boolean f=lymsDoctorService.removeById(did); | |
| 161 | - if (!StringUtils.isEmpty(doctor.getDlogin())){ | |
| 158 | + boolean f=lymsDoctorService.removeById(doctor.getDid()); | |
| 159 | + if (f){ | |
| 162 | 160 | JSONObject rs=hxService.delUser(doctor.getDlogin()); |
| 163 | 161 | log.info(rs); |
| 164 | 162 | } |
| ... | ... | @@ -233,7 +231,7 @@ |
| 233 | 231 | * @return |
| 234 | 232 | */ |
| 235 | 233 | @GetMapping("queryDoctor") |
| 236 | - public BaseResponse delDoctor(LymsDoctor doctor){ | |
| 234 | + public BaseResponse queryDoctor(LymsDoctor doctor){ | |
| 237 | 235 | BaseResponse baseResponse=new BaseResponse(); |
| 238 | 236 | LymsDoctor doctor2=lymsDoctorService.getOne(Wrappers.query(doctor)); |
| 239 | 237 | LymsHdepart hdepart=lymsHdepartService.getById(doctor2.getDpid()); |