团队赛,队伍位次比赛问题修改 add by zhc 9.14

main
zhc077 2 months ago
parent 12ec9e5bb8
commit af21ab4083
  1. 16
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/controller/TeamSeqController.java
  2. 2
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/service/impl/TeamSeqServiceImpl.java

@ -77,14 +77,14 @@ public class TeamSeqController extends JeecgController<TeamSeq, ITeamSeqService>
* @param teamSeq * @param teamSeq
* @return * @return
*/ */
@AutoLog(value = "团队赛队员积分计算配置-添加") // @AutoLog(value = "团队赛队员积分计算配置-添加")
@ApiOperation(value = "团队赛队员积分计算配置-添加", notes = "团队赛队员积分计算配置-添加") // @ApiOperation(value = "团队赛队员积分计算配置-添加", notes = "团队赛队员积分计算配置-添加")
// @RequiresPermissions("teamseq:team_seq:add") //// @RequiresPermissions("teamseq:team_seq:add")
@PostMapping(value = "/add") // @PostMapping(value = "/add")
public Result<String> add(@RequestBody TeamSeq teamSeq) { // public Result<String> add(@RequestBody TeamSeq teamSeq) {
teamSeqService.save(teamSeq); // teamSeqService.save(teamSeq);
return Result.OK("添加成功!"); // return Result.OK("添加成功!");
} // }
@AutoLog(value = "团队赛队员积分计算配置-添加") @AutoLog(value = "团队赛队员积分计算配置-添加")
@ApiOperation(value = "团队赛队员积分计算配置-添加", notes = "团队赛队员积分计算配置-添加") @ApiOperation(value = "团队赛队员积分计算配置-添加", notes = "团队赛队员积分计算配置-添加")

@ -28,7 +28,7 @@ public class TeamSeqServiceImpl extends ServiceImpl<TeamSeqMapper, TeamSeq> impl
} }
String pointId = list.get(0).getPointId(); String pointId = list.get(0).getPointId();
if (StrUtil.isEmpty(pointId)) { if (StrUtil.isEmpty(pointId)) {
throw new JeecgBootException("比赛项目不能为空!"); throw new JeecgBootException("比赛项目未创建完成,请在编辑操作中配置!");
} }
this.remove(new LambdaQueryWrapper<TeamSeq>().eq(TeamSeq::getPointId, pointId)); this.remove(new LambdaQueryWrapper<TeamSeq>().eq(TeamSeq::getPointId, pointId));

Loading…
Cancel
Save