From fe0a559802222d3674fee7ea8a05c94dd54606ae Mon Sep 17 00:00:00 2001 From: zhc077 <565291854@qq.com> Date: Sat, 14 Sep 2024 11:17:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=A2=E9=98=9F=E8=B5=9B=EF=BC=8C=E9=98=9F?= =?UTF-8?q?=E4=BC=8D=E4=BD=8D=E6=AC=A1=E6=AF=94=E8=B5=9B=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20add=20by=20zhc=209.14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../teamseq/controller/TeamSeqController.java | 16 ++++++++-------- .../teamseq/service/impl/TeamSeqServiceImpl.java | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/controller/TeamSeqController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/controller/TeamSeqController.java index 5fea5817..be3f920e 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/controller/TeamSeqController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/controller/TeamSeqController.java @@ -77,14 +77,14 @@ public class TeamSeqController extends JeecgController * @param teamSeq * @return */ - @AutoLog(value = "团队赛队员积分计算配置-添加") - @ApiOperation(value = "团队赛队员积分计算配置-添加", notes = "团队赛队员积分计算配置-添加") -// @RequiresPermissions("teamseq:team_seq:add") - @PostMapping(value = "/add") - public Result add(@RequestBody TeamSeq teamSeq) { - teamSeqService.save(teamSeq); - return Result.OK("添加成功!"); - } +// @AutoLog(value = "团队赛队员积分计算配置-添加") +// @ApiOperation(value = "团队赛队员积分计算配置-添加", notes = "团队赛队员积分计算配置-添加") +//// @RequiresPermissions("teamseq:team_seq:add") +// @PostMapping(value = "/add") +// public Result add(@RequestBody TeamSeq teamSeq) { +// teamSeqService.save(teamSeq); +// return Result.OK("添加成功!"); +// } @AutoLog(value = "团队赛队员积分计算配置-添加") @ApiOperation(value = "团队赛队员积分计算配置-添加", notes = "团队赛队员积分计算配置-添加") diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/service/impl/TeamSeqServiceImpl.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/service/impl/TeamSeqServiceImpl.java index 7a5c6575..db3de9bb 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/service/impl/TeamSeqServiceImpl.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/service/impl/TeamSeqServiceImpl.java @@ -28,7 +28,7 @@ public class TeamSeqServiceImpl extends ServiceImpl impl } String pointId = list.get(0).getPointId(); if (StrUtil.isEmpty(pointId)) { - throw new JeecgBootException("比赛项目不能为空!"); + throw new JeecgBootException("比赛项目未创建完成,请在编辑操作中配置!"); } this.remove(new LambdaQueryWrapper().eq(TeamSeq::getPointId, pointId));