From 90e167cc92047e408568f5fd126cdd8b6e6fb97a Mon Sep 17 00:00:00 2001 From: shiyang <316555390@qq.com> Date: Tue, 19 Apr 2022 15:17:15 +0800 Subject: [PATCH] =?UTF-8?q?his=E6=82=A3=E8=80=85=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/LymsHisInfoController.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/LymsHisInfoController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/LymsHisInfoController.java index ce10b17..b377a83 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/LymsHisInfoController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/LymsHisInfoController.java @@ -110,6 +110,27 @@ public class LymsHisInfoController { return baseResponse; } + /** + * 删除his医院患者 + * @param id + * @return + */ + @DeleteMapping("delHisInfo") + @TokenRequired + public BaseResponse delHisInfo(Integer id){ + BaseResponse baseResponse=new BaseResponse(); + try { + final boolean result = lymsHisInfoService.removeById(id); + if(!result){ + baseResponse.setErrorcode(1); + baseResponse.setErrormsg("保存异常!"); + } + } catch (Exception e) { + e.printStackTrace(); + } + return baseResponse; + } + } -- 1.8.3.1