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); } /**