From b23b243473fc9ab20ca62eebf3668c143e2e7d23 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期三, 24 七月 2024 15:30:53 +0800 Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/PlayPai into 2.0 --- cloud-server-competition/src/main/java/com/dsh/competition/controller/ParticipantController.java | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cloud-server-competition/src/main/java/com/dsh/competition/controller/ParticipantController.java b/cloud-server-competition/src/main/java/com/dsh/competition/controller/ParticipantController.java index ba756fc..95e7551 100644 --- a/cloud-server-competition/src/main/java/com/dsh/competition/controller/ParticipantController.java +++ b/cloud-server-competition/src/main/java/com/dsh/competition/controller/ParticipantController.java @@ -136,14 +136,13 @@ TStudent student1 = studentClient.queryById(editParticipant.getId()); student.setName(student1.getName()); student.setIdCard(editParticipant.getIdcard()); + student.setHeadImg(editParticipant.getHeadImg()); if (editParticipant.getHeight() != null) { student.setHeight(Double.valueOf(editParticipant.getHeight())); } - if (editParticipant.getWeight() != null) { student.setWeight(editParticipant.getWeight()); } - if (ToolUtil.isNotEmpty(student.getName()) && ToolUtil.isNotEmpty(student.getIdCard())) { Boolean aBoolean = JuHeUtil.idcardAuthentication(student.getIdCard(), student.getName()); if (!aBoolean) { @@ -169,13 +168,13 @@ @ApiImplicitParams({ @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") }) - public ResultUtil delParticipant(Integer id) { + public ResultUtil delParticipant(Integer id, Integer isStudent) { try { Integer uid = tokenUtil.getUserIdFormRedis(); if (null == uid) { return ResultUtil.tokenErr(); } - return participantService.delParticipant(id); + return participantService.delParticipant(id, isStudent); } catch (Exception e) { e.printStackTrace(); return ResultUtil.runErr(); @@ -210,7 +209,7 @@ @ResponseBody @PostMapping("/participant/getParticipant") - public Participant getParticipant(@RequestBody Integer id){ + public Participant getParticipant(@RequestBody Long id){ return participantService.getById(id); } } -- Gitblit v1.7.1