|
|
|
@ -340,13 +340,12 @@ public class ExpertController extends JeecgController<Expert, IExpertService> { |
|
|
|
|
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, IExpertService> { |
|
|
|
|
expert.setExpCsgz(expCsgz);//从事工作
|
|
|
|
|
|
|
|
|
|
expertService.updateById(expert); |
|
|
|
|
/* CompExp compExp = new CompExp(); |
|
|
|
|
CompExp compExp = new CompExp(); |
|
|
|
|
QueryWrapper<CompExp> queryWrapper1 = QueryGenerator.initQueryWrapper(compExp, req.getParameterMap()); |
|
|
|
|
queryWrapper1.eq("expid",expert.getId()); |
|
|
|
|
List<CompExp> listce = compExpService.list(queryWrapper1); |
|
|
|
@ -417,7 +416,7 @@ public class ExpertController extends JeecgController<Expert, IExpertService> { |
|
|
|
|
compExp.setCompName(compName); |
|
|
|
|
compExp.setExpid(expert.getId()); |
|
|
|
|
compExp.setStat(stat); |
|
|
|
|
compExpService.updateById(compExp);*/ |
|
|
|
|
compExpService.updateById(compExp); |
|
|
|
|
result.success("修改成功!"); |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|