From 76a2eaf4d4fc1156731a926470bd863124f1e62f Mon Sep 17 00:00:00 2001 From: changpengfei Date: Tue, 28 Sep 2021 09:22:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E4=BF=A1=E5=88=A0=E9=99=A4=E5=8C=BB?= =?UTF-8?q?=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lyms/talkonlineweb/controller/DoctorController.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java index ad17f52..0bbe6dc 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java @@ -13,7 +13,9 @@ import com.lyms.talkonlineweb.util.Constant; import com.lyms.talkonlineweb.util.HXService; import com.lyms.talkonlineweb.util.JwtUtils; import com.lyms.talkonlineweb.util.StringUtil; +import lombok.extern.log4j.Log4j2; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.util.StringUtils; import org.springframework.validation.BindingResult; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -25,6 +27,7 @@ import java.util.*; */ @RestController @RequestMapping("doctor") +@Log4j2 public class DoctorController { @Autowired @@ -146,6 +149,10 @@ public class DoctorController { //操作记保存参数 LymsDoctor doctor=lymsDoctorService.getById(did); boolean f=lymsDoctorService.removeById(did); + if (!StringUtils.isEmpty(doctor.getDlogin())){ + JSONObject rs=hxService.delUser(doctor.getDlogin()); + log.info(rs); + } //保存操作记录 lymsLogsCrud(doctor,null); baseResponse.setErrorcode(f==true?0:1); -- 1.8.3.1