报名修改信息不显示

main
王家东 3 months ago
parent a610e2c359
commit 5aa8b5ac87
  1. 2
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java
  2. 12
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/entity/TeamManagement.java

@ -1088,7 +1088,7 @@ public class AnnualCompetitionProjectRegistrationController {
//将获取的用户id查询对应名称 //将获取的用户id查询对应名称
for (TeamManagement teamManagement : teamManagementList) { for (TeamManagement teamManagement : teamManagementList) {
SysUser user = sysUserService.query().eq("id", teamManagement.getUserId()).one(); SysUser user = sysUserService.query().eq("id", teamManagement.getUserId()).one();
teamManagement.setUserId(user.getRealname()); teamManagement.setRealname(user.getRealname());
} }
return Result.OK(teamManagementList); return Result.OK(teamManagementList);
} }

@ -1,10 +1,8 @@
package org.jeecg.modules.demo.annualcompetitionprojectregistration.entity; package org.jeecg.modules.demo.annualcompetitionprojectregistration.entity;
import java.io.Serializable; import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data; import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
@ -65,4 +63,10 @@ public class TeamManagement implements Serializable {
@Excel(name = "团队赛队员序号", width = 2) @Excel(name = "团队赛队员序号", width = 2)
@ApiModelProperty(value = "团队赛队员序号") @ApiModelProperty(value = "团队赛队员序号")
private Integer teamSeq; private Integer teamSeq;
@TableField(exist = false)
private String realname;
} }

Loading…
Cancel
Save