Commit 76a2eaf4d4fc1156731a926470bd863124f1e62f
1 parent
d7e94a5583
Exists in
master
环信删除医生
Showing 1 changed file with 7 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java
View file @
76a2eaf
... | ... | @@ -13,7 +13,9 @@ |
13 | 13 | import com.lyms.talkonlineweb.util.HXService; |
14 | 14 | import com.lyms.talkonlineweb.util.JwtUtils; |
15 | 15 | import com.lyms.talkonlineweb.util.StringUtil; |
16 | +import lombok.extern.log4j.Log4j2; | |
16 | 17 | import org.springframework.beans.factory.annotation.Autowired; |
18 | +import org.springframework.util.StringUtils; | |
17 | 19 | import org.springframework.validation.BindingResult; |
18 | 20 | import org.springframework.validation.annotation.Validated; |
19 | 21 | import org.springframework.web.bind.annotation.*; |
... | ... | @@ -25,6 +27,7 @@ |
25 | 27 | */ |
26 | 28 | @RestController |
27 | 29 | @RequestMapping("doctor") |
30 | +@Log4j2 | |
28 | 31 | public class DoctorController { |
29 | 32 | |
30 | 33 | @Autowired |
... | ... | @@ -146,6 +149,10 @@ |
146 | 149 | //操作记保存参数 |
147 | 150 | LymsDoctor doctor=lymsDoctorService.getById(did); |
148 | 151 | boolean f=lymsDoctorService.removeById(did); |
152 | + if (!StringUtils.isEmpty(doctor.getDlogin())){ | |
153 | + JSONObject rs=hxService.delUser(doctor.getDlogin()); | |
154 | + log.info(rs); | |
155 | + } | |
149 | 156 | //保存操作记录 |
150 | 157 | lymsLogsCrud(doctor,null); |
151 | 158 | baseResponse.setErrorcode(f==true?0:1); |