From e200a0842b0ebe1dc69505833f45849fcdeb8b93 Mon Sep 17 00:00:00 2001 From: chenfei <18955928961@163.com> Date: Tue, 9 Aug 2022 09:28:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=A3=E8=80=85=E8=AE=B0=E5=BD=95=E9=A2=84?= =?UTF-8?q?=E7=BA=A6=E5=88=B0=E5=B7=B2=E8=AF=8A=E7=8A=B6=E6=80=81=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/web/controller/api/AppController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index 547d77b..f1fa95a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -104,6 +104,9 @@ public class AppController extends BaseController @PutMapping("updateStatus/{id}") @Log(title = "修改患者记录至已诊状态") public AjaxResult updateStatus(@PathVariable("id") Long id){ + if(id == null){ + return AjaxResult.error("未获取到记录id"); + } TRecord tRecord = new TRecord(); tRecord.setId(id); tRecord.setStatus("1");