From 8c2f048b028e62524c008d1623cfbfcca9325367 Mon Sep 17 00:00:00 2001 From: ye1023 <12588209+ye1023@user.noreply.gitee.com> Date: Tue, 28 Apr 2026 14:24:36 +0800 Subject: [PATCH] =?UTF-8?q?yxk-20260428-=E5=A2=9E=E5=8A=A0/bgpartymatter/b?= =?UTF-8?q?gPartymatter/queryById=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/BgPartymatterController.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jeecg-module-supervision/src/main/java/org/jeecg/modules/demo/bgpartymatter/controller/BgPartymatterController.java b/jeecg-module-supervision/src/main/java/org/jeecg/modules/demo/bgpartymatter/controller/BgPartymatterController.java index 901192e..5d6466d 100644 --- a/jeecg-module-supervision/src/main/java/org/jeecg/modules/demo/bgpartymatter/controller/BgPartymatterController.java +++ b/jeecg-module-supervision/src/main/java/org/jeecg/modules/demo/bgpartymatter/controller/BgPartymatterController.java @@ -79,6 +79,15 @@ public class BgPartymatterController extends JeecgController queryById(@RequestParam(name="id", required=true) String id) { + BgPartymatter bgPartymatter = bgPartymatterService.getById(id); + if (bgPartymatter == null) { + return Result.error("未找到对应数据"); + } + return Result.OK(bgPartymatter); + } /** * 添加 * @param bgPartymatter