puzhibing
2023-11-25 53e7558400dcacecdce70e39ebfe1727740f9296
cloud-server-competition/src/main/java/com/dsh/competition/controller/ParticipantController.java
@@ -44,8 +44,6 @@
    private TokenUtil tokenUtil;
    @ResponseBody
    @PostMapping("/api/participant/addParticipant")
    @ApiOperation(value = "添加参赛人员", tags = {"APP-赛事活动列表", ""})
@@ -64,8 +62,6 @@
            return ResultUtil.runErr();
        }
    }
    @ResponseBody
@@ -101,13 +97,12 @@
    }
   @Resource
   private StudentClient studentClient;
    @Resource
    private AppUserClient appUserClient;
    @ResponseBody
    @PostMapping("/api/participant/editParticipant")
    @ApiOperation(value = "编辑参赛人员", tags = {"APP-赛事活动列表", ""})
@@ -123,13 +118,11 @@
            int numDigits = String.valueOf(editParticipant.getId()).length();
            if (numDigits==9){
                Participant byId = participantService.getById(editParticipant.getId());
                editParticipant.setName(byId.getName());
                return participantService.editParticipant(uid, editParticipant);
            }
            else {
            } else {
                TStudent student = new TStudent();
@@ -165,7 +158,6 @@
    }
    @ResponseBody
    @PostMapping("/api/participant/delParticipant")
    @ApiOperation(value = "删除参赛人员", tags = {"APP-赛事活动列表", ""})
@@ -188,6 +180,7 @@
    /**
     * 保存学员后同步参赛人员信息
     *
     * @param saveParticipant
     */
    @ResponseBody