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; + + }