From 5aa8b5ac87b43634025f4c1e14d69dfb83b538c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com> Date: Mon, 2 Sep 2024 11:51:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=90=8D=E4=BF=AE=E6=94=B9=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...nualCompetitionProjectRegistrationController.java | 2 +- .../entity/TeamManagement.java | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java index 8a9d7ac8..433cf071 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java @@ -1088,7 +1088,7 @@ public class AnnualCompetitionProjectRegistrationController { //将获取的用户id查询对应名称 for (TeamManagement teamManagement : teamManagementList) { SysUser user = sysUserService.query().eq("id", teamManagement.getUserId()).one(); - teamManagement.setUserId(user.getRealname()); + teamManagement.setRealname(user.getRealname()); } return Result.OK(teamManagementList); } diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/entity/TeamManagement.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/entity/TeamManagement.java index dfbe417f..3d40f31b 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/entity/TeamManagement.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/entity/TeamManagement.java @@ -1,10 +1,8 @@ package org.jeecg.modules.demo.annualcompetitionprojectregistration.entity; import java.io.Serializable; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.TableLogic; + +import com.baomidou.mybatisplus.annotation.*; import lombok.Data; import com.fasterxml.jackson.annotation.JsonFormat; import org.springframework.format.annotation.DateTimeFormat; @@ -65,4 +63,10 @@ public class TeamManagement implements Serializable { @Excel(name = "团队赛队员序号", width = 2) @ApiModelProperty(value = "团队赛队员序号") private Integer teamSeq; + + + @TableField(exist = false) + private String realname; + + }