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");