From b3631dd074d7fa5520f7afcf2cdc1ab681700e7c Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: Thu, 21 Nov 2024 17:18:15 +0800
Subject: [PATCH] 部分修改
---
expert-system/src/main/java/com/gkhy/system/domain/ProjectExpertDetail.java | 151 +++++++++++++++++++++++++++++++-------------------
1 files changed, 94 insertions(+), 57 deletions(-)
diff --git a/expert-system/src/main/java/com/gkhy/system/domain/ProjectExpertDetail.java b/expert-system/src/main/java/com/gkhy/system/domain/ProjectExpertDetail.java
index 97d99e2..a27a06d 100644
--- a/expert-system/src/main/java/com/gkhy/system/domain/ProjectExpertDetail.java
+++ b/expert-system/src/main/java/com/gkhy/system/domain/ProjectExpertDetail.java
@@ -3,10 +3,16 @@
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
+import com.gkhy.common.annotation.Excel;
+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.NotBlank;
+import javax.validation.constraints.NotNull;
+
/**
* 项目专家得分明细对象 project_expert_detail
@@ -14,71 +20,94 @@
* @author expert
* @date 2024-11-14
*/
- @TableName(resultMap = "com.gkhy.system.mapper.ProjectExpertDetailMapper.ProjectExpertDetailResult")
- public class ProjectExpertDetail extends BaseEntity
- {
- private static final long serialVersionUID = 1L;
+@TableName(resultMap = "com.gkhy.system.mapper.ProjectExpertDetailMapper.ProjectExpertDetailResult")
+@ApiModel(value = "项目专家得分明细对象", description = "项目专家得分明细对象表")
+public class ProjectExpertDetail 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 projectExpert;
+ /**
+ * 项目专家表id
+ */
+ @Excel(name = "项目专家表id")
+ @ApiModelProperty(value = "项目专家表id",required = true)
+ @NotNull(message = "参数不能为空")
+ private Long projectExpertId;
- /** 内容 */
- @Excel(name = "内容")
- private String content;
+ /**
+ * 内容
+ */
+ @Excel(name = "内容")
+ @NotBlank(message = "内容不能为空")
+ @ApiModelProperty(value = "内容",required = true)
+ private String content;
- /** 分值 */
- @Excel(name = "分值")
- private Long score;
+ /**
+ * 分值
+ */
+ @ApiModelProperty(value = "分值")
+ @NotNull(message = "分值不能为空")
+ private Long score;
- /** 删除标志(0代表存在,1代表删除,默认0) */
- private Long delFlag;
+ @NotBlank(message = "评分类型不能为空")
+ @ApiModelProperty(value = "类型1加分项2扣分项",required = true)
+ private String scoreType;
- public void setId(Long id) {
- this.id = id;
- }
+ /**
+ * 删除标志(0代表存在,1代表删除,默认0)
+ */
+ private Long delFlag;
- public Long getId() {
- return id;
- }
- public void setProjectExpert(Long projectExpert) {
- this.projectExpert = projectExpert;
- }
+ public void setId(Long id) {
+ this.id = id;
+ }
- public Long getProjectExpert() {
- return projectExpert;
- }
- public void setContent(String content) {
- this.content = content;
- }
+ public Long getId() {
+ return id;
+ }
- public String getContent() {
- return content;
- }
- public void setScore(Long score) {
- this.score = score;
- }
+ public void setProjectExpertId(Long projectExpertId) {
+ this.projectExpertId = projectExpertId;
+ }
- public Long getScore() {
- return score;
- }
- public void setDelFlag(Long delFlag) {
- this.delFlag = delFlag;
- }
+ public Long getProjectExpertId() {
+ return projectExpertId;
+ }
- public Long getDelFlag() {
- return delFlag;
- }
+ public void setContent(String content) {
+ this.content = content;
+ }
- @Override
- public String toString() {
- return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+ public String getContent() {
+ return content;
+ }
+
+ public void setScore(Long score) {
+ this.score = score;
+ }
+
+ public Long getScore() {
+ return score;
+ }
+
+ 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("projectExpert", getProjectExpert())
+ .append("projectExpert", getProjectExpertId())
.append("content", getContent())
.append("score", getScore())
.append("delFlag", getDelFlag())
@@ -86,6 +115,14 @@
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
- .toString();
- }
- }
\ No newline at end of file
+ .toString();
+ }
+
+ public String getScoreType() {
+ return scoreType;
+ }
+
+ public void setScoreType( String scoreType) {
+ this.scoreType = scoreType;
+ }
+}
\ No newline at end of file
--
Gitblit v1.9.2