From 2d27b24029adafdbfc5703b38a519d65beda6a68 Mon Sep 17 00:00:00 2001 From: heheng <heheng@123456> Date: 星期三, 20 十一月 2024 16:23:23 +0800 Subject: [PATCH] 更改 --- expert-system/src/main/java/com/gkhy/system/domain/ProjectExpert.java | 199 ++++++++++++++++++++++++++++--------------------- 1 files changed, 115 insertions(+), 84 deletions(-) diff --git a/expert-system/src/main/java/com/gkhy/system/domain/ProjectExpert.java b/expert-system/src/main/java/com/gkhy/system/domain/ProjectExpert.java index 4d4364c..5fcb183 100644 --- a/expert-system/src/main/java/com/gkhy/system/domain/ProjectExpert.java +++ b/expert-system/src/main/java/com/gkhy/system/domain/ProjectExpert.java @@ -3,10 +3,14 @@ import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; +import com.gkhy.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; -import com.rchuing.sis.common.annotation.Excel; -import com.rchuing.sis.common.core.domain.BaseEntity; + +import javax.validation.constraints.NotNull; + /** * 项目专家关联对象 project_expert @@ -14,107 +18,134 @@ * @author expert * @date 2024-11-14 */ - @TableName(resultMap = "com.gkhy.system.mapper.ProjectExpertMapper.ProjectExpertResult") - public class ProjectExpert extends BaseEntity - { - private static final long serialVersionUID = 1L; +@TableName(resultMap = "com.gkhy.system.mapper.ProjectExpertMapper.ProjectExpertResult") +@ApiModel(value = "项目专家关联对象", description = "项目专家关联对象表") +public class ProjectExpert extends BaseEntity { + private static final long serialVersionUID = 1L; - /** $column.columnComment */ - @TableId(value = "id", type = IdType.AUTO) - private Long id; + /** + * $column.columnComment + */ + @TableId(value = "id", type = IdType.AUTO) + private Long id; - /** 项目id */ - @Excel(name = "项目id") - private Long projectId; + /** + * 项目id + */ + @ApiModelProperty(name = "项目名称",required = true) + @NotNull(message = "项目不能为空") + private Long projectId; - /** 专家id */ - @Excel(name = "专家id") - private Long expertId; + /** + * 专家id + */ + @ApiModelProperty(name = "专家id",required = true) + @NotNull(message = "选择专家") + private Long expertId; - /** 总分 */ - @Excel(name = "总分") - private Long score; + /** + * 总分 + */ + @ApiModelProperty(name = "总分") + private Long score; - /** 评估状态0未评估1已评估 */ - @Excel(name = "评估状态0未评估1已评估") - private Long envaluationState; + /** + * 评估状态0未评估1已评估 + */ + @ApiModelProperty(name = "评估状态0未评估1已评估") + private Long evaluationState; - /** 选取方式1固定2随机 */ - @Excel(name = "选取方式1固定2随机") - private Long selectionMode; + /** + * 选取方式1固定2随机 + */ + @ApiModelProperty(name = "选取方式1固定2随机",required = true) + @NotNull(message = "选取方式不能为空") + private Long selectionMode; - /** 是否组长0否1是 */ - @Excel(name = "是否组长0否1是") - private Long teamLeader; + /** + * 是否组长0否1是 + */ + @ApiModelProperty(name = "是否组长0否1是",required = true) + @NotNull(message = "是否组长不能为空") + private Long teamLeader; - /** 删除标志(0代表存在,1代表删除,默认0) */ - private Long delFlag; + /** + * 删除标志(0代表存在,1代表删除,默认0) + */ + private Long delFlag; - public void setId(Long id) { - this.id = id; - } + public void setId(Long id) { + this.id = id; + } - public Long getId() { - return id; - } - public void setProjectId(Long projectId) { - this.projectId = projectId; - } + public Long getId() { + return id; + } - public Long getProjectId() { - return projectId; - } - public void setExpertId(Long expertId) { - this.expertId = expertId; - } + public void setProjectId(Long projectId) { + this.projectId = projectId; + } - public Long getExpertId() { - return expertId; - } - public void setScore(Long score) { - this.score = score; - } + public Long getProjectId() { + return projectId; + } - public Long getScore() { - return score; - } - public void setEnvaluationState(Long envaluationState) { - this.envaluationState = envaluationState; - } + public void setExpertId(Long expertId) { + this.expertId = expertId; + } - public Long getEnvaluationState() { - return envaluationState; - } - public void setSelectionMode(Long selectionMode) { - this.selectionMode = selectionMode; - } + public Long getExpertId() { + return expertId; + } - public Long getSelectionMode() { - return selectionMode; - } - public void setTeamLeader(Long teamLeader) { - this.teamLeader = teamLeader; - } + public void setScore(Long score) { + this.score = score; + } - public Long getTeamLeader() { - return teamLeader; - } - public void setDelFlag(Long delFlag) { - this.delFlag = delFlag; - } + public Long getScore() { + return score; + } - public Long getDelFlag() { - return delFlag; - } + public void setevaluationState(Long evaluationState) { + this.evaluationState = evaluationState; + } - @Override - public String toString() { - return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + public Long getevaluationState() { + return evaluationState; + } + + public void setSelectionMode(Long selectionMode) { + this.selectionMode = selectionMode; + } + + public Long getSelectionMode() { + return selectionMode; + } + + public void setTeamLeader(Long teamLeader) { + this.teamLeader = teamLeader; + } + + public Long getTeamLeader() { + return teamLeader; + } + + public void setDelFlag(Long delFlag) { + this.delFlag = delFlag; + } + + public Long getDelFlag() { + return delFlag; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) .append("id", getId()) .append("projectId", getProjectId()) .append("expertId", getExpertId()) .append("score", getScore()) - .append("envaluationState", getEnvaluationState()) + .append("evaluationState", getevaluationState()) .append("selectionMode", getSelectionMode()) .append("teamLeader", getTeamLeader()) .append("delFlag", getDelFlag()) @@ -122,6 +153,6 @@ .append("createTime", getCreateTime()) .append("updateBy", getUpdateBy()) .append("updateTime", getUpdateTime()) - .toString(); - } - } \ No newline at end of file + .toString(); + } +} \ No newline at end of file -- Gitblit v1.9.2