瀏覽代碼

add: 实体类更改

caozixuan 10 月之前
父節點
當前提交
e7f545be92

+ 57 - 3
src/main/java/cn/com/qmth/mps/entity/PaperGroupEntity.java

@@ -1,28 +1,82 @@
 package cn.com.qmth.mps.entity;
 
+import cn.com.qmth.mps.enums.ArbitrateMethod;
+import com.baomidou.mybatisplus.annotation.FieldStrategy;
+import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableName;
 
 import cn.com.qmth.mps.entity.base.AuditingEntity;
+import io.swagger.annotations.ApiModelProperty;
 
 @TableName("mps_paper_group")
-public class PaperGroupEntity extends AuditingEntity{
+public class PaperGroupEntity extends AuditingEntity {
+
 	/**
-	 * 
+	 *
 	 */
 	private static final long serialVersionUID = -8843551391313294436L;
+
 	private Long paperId;
+
 	private Integer number;
+
+	@ApiModelProperty(value = "是否开启双评")
+	private Boolean doubleEnable;
+
+	@ApiModelProperty(value = "双评比例")
+	private Double doubleRate;
+
+	@ApiModelProperty(value = "仲裁阈值")
+	private Double arbitrateThreshold;
+
+	@ApiModelProperty(value = "仲裁方式")
+	private ArbitrateMethod arbitrateMethod;
+
 	public Integer getNumber() {
 		return number;
 	}
+
 	public void setNumber(Integer number) {
 		this.number = number;
 	}
+
 	public Long getPaperId() {
 		return paperId;
 	}
+
 	public void setPaperId(Long paperId) {
 		this.paperId = paperId;
 	}
-	
+
+	public Boolean getDoubleEnable() {
+		return doubleEnable;
+	}
+
+	public void setDoubleEnable(Boolean doubleEnable) {
+		this.doubleEnable = doubleEnable;
+	}
+
+	public Double getDoubleRate() {
+		return doubleRate;
+	}
+
+	public void setDoubleRate(Double doubleRate) {
+		this.doubleRate = doubleRate;
+	}
+
+	public Double getArbitrateThreshold() {
+		return arbitrateThreshold;
+	}
+
+	public void setArbitrateThreshold(Double arbitrateThreshold) {
+		this.arbitrateThreshold = arbitrateThreshold;
+	}
+
+	public ArbitrateMethod getArbitrateMethod() {
+		return arbitrateMethod;
+	}
+
+	public void setArbitrateMethod(ArbitrateMethod arbitrateMethod) {
+		this.arbitrateMethod = arbitrateMethod;
+	}
 }

+ 26 - 3
src/main/java/cn/com/qmth/mps/entity/PaperGroupUnitEntity.java

@@ -3,41 +3,64 @@ package cn.com.qmth.mps.entity;
 import com.baomidou.mybatisplus.annotation.TableName;
 
 import cn.com.qmth.mps.entity.base.AuditingEntity;
+import io.swagger.annotations.ApiModelProperty;
 
 @TableName("mps_paper_group_unit")
-public class PaperGroupUnitEntity extends AuditingEntity{
+public class PaperGroupUnitEntity extends AuditingEntity {
+
 	/**
-	 * 
+	 *
 	 */
 	private static final long serialVersionUID = 5657687276637032291L;
+
 	private Long paperId;
+
 	private Long groupId;
+
 	private Integer detailNumber;
+
 	private Integer detailUnitNumber;
+
+	@ApiModelProperty(value = "仲裁阈值")
+	private Double arbitrateThreshold;
+
 	public Long getPaperId() {
 		return paperId;
 	}
+
 	public void setPaperId(Long paperId) {
 		this.paperId = paperId;
 	}
+
 	public Long getGroupId() {
 		return groupId;
 	}
+
 	public void setGroupId(Long groupId) {
 		this.groupId = groupId;
 	}
+
 	public Integer getDetailNumber() {
 		return detailNumber;
 	}
+
 	public void setDetailNumber(Integer detailNumber) {
 		this.detailNumber = detailNumber;
 	}
+
 	public Integer getDetailUnitNumber() {
 		return detailUnitNumber;
 	}
+
 	public void setDetailUnitNumber(Integer detailUnitNumber) {
 		this.detailUnitNumber = detailUnitNumber;
 	}
 
-	
+	public Double getArbitrateThreshold() {
+		return arbitrateThreshold;
+	}
+
+	public void setArbitrateThreshold(Double arbitrateThreshold) {
+		this.arbitrateThreshold = arbitrateThreshold;
+	}
 }

+ 27 - 0
src/main/java/cn/com/qmth/mps/enums/ArbitrateMethod.java

@@ -0,0 +1,27 @@
+package cn.com.qmth.mps.enums;
+
+/**
+ * @Description: 仲裁方式枚举
+ * @Author: CaoZixuan
+ * @Date: 2024-08-14
+ */
+public enum ArbitrateMethod {
+    GROUP_ARBITRATE("分组仲裁", 0), QUESTION_ARBITRATE("小题仲裁", 1);
+
+    private final String name;
+
+    private final Integer value;
+
+    ArbitrateMethod(String name, Integer value) {
+        this.name = name;
+        this.value = value;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public Integer getValue() {
+        return value;
+    }
+}