From cc0aeddef3203004370dc64504ffb3bdcb00fe51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com> Date: Mon, 30 Sep 2024 09:20:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=96=B0=E9=83=BD=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=88=B0=E5=88=B0=E5=B9=B4=E5=BA=A6=E6=AF=94=E8=B5=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/annualcomp/controller/AnnualCompController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java index b9113822..949946c9 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java @@ -18,6 +18,7 @@ import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.vo.LoginUser; import org.jeecg.modules.demo.annual.entity.Annual; import org.jeecg.modules.demo.annual.service.IAnnualService; +import org.jeecg.modules.demo.annual.service.impl.AnnualServiceImpl; import org.jeecg.modules.demo.annualcomp.entity.AnnualComp; import org.jeecg.modules.demo.annualcomp.service.IAnnualCompService; import org.jeecg.modules.demo.annualcomp.vo.AnnualCompVo; @@ -590,6 +591,8 @@ public class AnnualCompController extends JeecgController findndbswxq(@RequestParam(name = "id", required = true) String id) { AnnualComp annualComp =annualCompService.getById(id); + Annual annual = annualService.getById(annualComp.getAnnualid()); + annualComp.setAnnualid(annual.getAnnualName()); return Result.OK(annualComp); }