From 60d4c5a99e6f15e8b2f3f0fcfaf0fb899b8bb9df Mon Sep 17 00:00:00 2001 From: Gitea Date: Thu, 7 Nov 2024 16:00:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E6=96=B0=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/InnovationVoucherController.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/controller/InnovationVoucherController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/controller/InnovationVoucherController.java index ca5b2ef..687ca27 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/controller/InnovationVoucherController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/controller/InnovationVoucherController.java @@ -107,12 +107,12 @@ public class InnovationVoucherController extends JeecgController queryByIdCms(@RequestParam(name="id",required=true) String id) { - InnovationVoucher innovationVoucher = innovationVoucherService.getById(id); - if(innovationVoucher==null) { - return Result.error("未找到对应数据"); - } - return Result.OK(innovationVoucher); + public Result> queryByIdCms(@RequestParam(name="id",required=true) String id) { + QueryWrapper queryWrapper = new QueryWrapper(); + queryWrapper.eq("id",id); + Page page = new Page(1, 10); + IPage pageList = innovationVoucherService.page(page, queryWrapper); + return Result.OK(pageList); } /**