|
|
package com.sztzjy.linkCommerce.entity;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
|
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
/**
|
|
|
* 学生成绩表
|
|
|
*
|
|
|
* @author whb
|
|
|
* stu_grade
|
|
|
*/
|
|
|
@Data
|
|
|
public class StuGrade {
|
|
|
@ApiModelProperty(notes = "成绩ID(主键,建议格式:GRD_用户ID_时间戳,例:GRD_U1001_202311051230)")
|
|
|
private String id;
|
|
|
|
|
|
@ApiModelProperty(notes = "所属项目(如:2023年度期末考试)")
|
|
|
private String project;
|
|
|
|
|
|
@ApiModelProperty(notes = "所属模块/科目(如:高等数学)")
|
|
|
private String module;
|
|
|
|
|
|
@ApiModelProperty(notes = "创建时间")
|
|
|
private Date createTime;
|
|
|
|
|
|
@ApiModelProperty(notes = "成绩(支持小数点后两位)")
|
|
|
private BigDecimal score;
|
|
|
|
|
|
@ApiModelProperty(notes = "学校ID(关联school表)")
|
|
|
private String schoolId;
|
|
|
|
|
|
@ApiModelProperty(notes = "用户ID(关联userinfo表)")
|
|
|
private String userId;
|
|
|
|
|
|
@ApiModelProperty(notes = "学生姓名(冗余存储)")
|
|
|
private String name;
|
|
|
|
|
|
@ApiModelProperty(notes = "班级ID(关联school_class表)")
|
|
|
private String schoolClassId;
|
|
|
|
|
|
@ApiModelProperty(notes = "班级名称(冗余存储)")
|
|
|
private String className;
|
|
|
|
|
|
@ApiModelProperty(notes = "主观题答卷内容(建议存储为JSON格式)")
|
|
|
private String content;
|
|
|
|
|
|
public StuGrade() {
|
|
|
}
|
|
|
|
|
|
public StuGrade(String project, String module, BigDecimal score, String schoolId, String userId, String name, String schoolClassId, String className, String content) {
|
|
|
this.id = IdUtil.randomUUID();
|
|
|
this.project = project;
|
|
|
this.module = module;
|
|
|
this.createTime = new Date();
|
|
|
this.score = score;
|
|
|
this.schoolId = schoolId;
|
|
|
this.userId = userId;
|
|
|
this.name = name;
|
|
|
this.schoolClassId = schoolClassId;
|
|
|
this.className = className;
|
|
|
this.content = content;
|
|
|
}
|
|
|
|
|
|
public String getId() {
|
|
|
return id;
|
|
|
}
|
|
|
|
|
|
public void setId(String id) {
|
|
|
this.id = id == null ? null : id.trim();
|
|
|
}
|
|
|
|
|
|
public String getProject() {
|
|
|
return project;
|
|
|
}
|
|
|
|
|
|
public void setProject(String project) {
|
|
|
this.project = project == null ? null : project.trim();
|
|
|
}
|
|
|
|
|
|
public String getModule() {
|
|
|
return module;
|
|
|
}
|
|
|
|
|
|
public void setModule(String module) {
|
|
|
this.module = module == null ? null : module.trim();
|
|
|
}
|
|
|
|
|
|
public Date getCreateTime() {
|
|
|
return createTime;
|
|
|
}
|
|
|
|
|
|
public void setCreateTime(Date createTime) {
|
|
|
this.createTime = createTime;
|
|
|
}
|
|
|
|
|
|
public BigDecimal getScore() {
|
|
|
return score;
|
|
|
}
|
|
|
|
|
|
public void setScore(BigDecimal score) {
|
|
|
this.score = score;
|
|
|
}
|
|
|
|
|
|
public String getSchoolId() {
|
|
|
return schoolId;
|
|
|
}
|
|
|
|
|
|
public void setSchoolId(String schoolId) {
|
|
|
this.schoolId = schoolId == null ? null : schoolId.trim();
|
|
|
}
|
|
|
|
|
|
public String getUserId() {
|
|
|
return userId;
|
|
|
}
|
|
|
|
|
|
public void setUserId(String userId) {
|
|
|
this.userId = userId == null ? null : userId.trim();
|
|
|
}
|
|
|
|
|
|
public String getName() {
|
|
|
return name;
|
|
|
}
|
|
|
|
|
|
public void setName(String name) {
|
|
|
this.name = name == null ? null : name.trim();
|
|
|
}
|
|
|
|
|
|
public String getSchoolClassId() {
|
|
|
return schoolClassId;
|
|
|
}
|
|
|
|
|
|
public void setSchoolClassId(String schoolClassId) {
|
|
|
this.schoolClassId = schoolClassId == null ? null : schoolClassId.trim();
|
|
|
}
|
|
|
|
|
|
public String getClassName() {
|
|
|
return className;
|
|
|
}
|
|
|
|
|
|
public void setClassName(String className) {
|
|
|
this.className = className == null ? null : className.trim();
|
|
|
}
|
|
|
|
|
|
public String getContent() {
|
|
|
return content;
|
|
|
}
|
|
|
|
|
|
public void setContent(String content) {
|
|
|
this.content = content == null ? null : content.trim();
|
|
|
}
|
|
|
} |