From 37c9331815a7dbf507b2c9f8e426f3492ce983bc Mon Sep 17 00:00:00 2001 From: admin <417727563@qq.com> Date: Sun, 28 Jul 2024 15:48:25 +0800 Subject: [PATCH] =?UTF-8?q?28-177=20=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/demo/expert/controller/ExpertController.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java index 50f5bf2c..6ea35bca 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java @@ -340,13 +340,12 @@ public class ExpertController extends JeecgController { expert.setExpYjfx(expYjfx);//研究方向 expert.setExpCsgz(expCsgz);//从事工作 expertService.save(expert); - /* CompExp compExp = new CompExp(); compExp.setCompid(compid); compExp.setCompName(compName); compExp.setExpid(expert.getId()); compExp.setStat(stat); - compExpService.save(compExp);*/ + compExpService.save(compExp); result.success("添加成功!"); } catch (Exception e) { log.error(e.getMessage(), e); @@ -408,7 +407,7 @@ public class ExpertController extends JeecgController { expert.setExpCsgz(expCsgz);//从事工作 expertService.updateById(expert); - /* CompExp compExp = new CompExp(); + CompExp compExp = new CompExp(); QueryWrapper queryWrapper1 = QueryGenerator.initQueryWrapper(compExp, req.getParameterMap()); queryWrapper1.eq("expid",expert.getId()); List listce = compExpService.list(queryWrapper1); @@ -417,7 +416,7 @@ public class ExpertController extends JeecgController { compExp.setCompName(compName); compExp.setExpid(expert.getId()); compExp.setStat(stat); - compExpService.updateById(compExp);*/ + compExpService.updateById(compExp); result.success("修改成功!"); } } catch (Exception e) {