|
@@ -4,10 +4,14 @@ import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
|
+import com.qmth.data.docking.bean.result.ZufeExamResult;
|
|
|
|
+import com.qmth.teachcloud.exchange.common.contant.SystemConstant;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -101,6 +105,79 @@ public class YjxtKsxx implements Serializable {
|
|
@TableField("teacherName")
|
|
@TableField("teacherName")
|
|
private String teacherName;
|
|
private String teacherName;
|
|
|
|
|
|
|
|
+ public YjxtKsxx() {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public YjxtKsxx(ZufeExamResult zufeExamResult) {
|
|
|
|
+ this.id = SystemConstant.getDbUuid();
|
|
|
|
+ this.xnm = zufeExamResult.getXNM();
|
|
|
|
+ this.xqm = zufeExamResult.getXQM();
|
|
|
|
+ this.courseCode = zufeExamResult.getKCH();
|
|
|
|
+ this.courseName = zufeExamResult.getKCMC();
|
|
|
|
+// this.courseCollegeName = zufeExamResult
|
|
|
|
+ this.paperNumber = zufeExamResult.getSJBH();
|
|
|
|
+ this.studentName = zufeExamResult.getXM();
|
|
|
|
+ this.studentCode = zufeExamResult.getXH();
|
|
|
|
+// this.siteNumber = zufeExamResult.get
|
|
|
|
+// this.studentCollegeName = zufeExamResult
|
|
|
|
+// this.majorName =
|
|
|
|
+ this.teachClassName = zufeExamResult.getJXBMC();
|
|
|
|
+// this.className = zufeExamResult
|
|
|
|
+ String examStartDate = zufeExamResult.getKSKSSJ();
|
|
|
|
+ String examEndDate = zufeExamResult.getKSJSSJ();
|
|
|
|
+ String[] examStartDateStrs = StringUtils.split(examStartDate, " ");
|
|
|
|
+ String[] examEndDateStrs = StringUtils.split(examEndDate, " ");
|
|
|
|
+ if (Objects.nonNull(examStartDateStrs) && examStartDateStrs.length > 0
|
|
|
|
+ && Objects.nonNull(examEndDateStrs) && examEndDateStrs.length > 0) {
|
|
|
|
+ this.examDate = examStartDateStrs[0];
|
|
|
|
+ this.examTime = examStartDateStrs[1] + SystemConstant.HYPHEN + examEndDateStrs[1];
|
|
|
|
+ }
|
|
|
|
+ this.examPlace = zufeExamResult.getKSDD();
|
|
|
|
+// this.examRoom =
|
|
|
|
+ this.teacherCode = zufeExamResult.getJGH();
|
|
|
|
+ this.teacherName = zufeExamResult.getJSXM();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void updateData(YjxtKsxx yjxtKsxx) {
|
|
|
|
+ this.xnm = yjxtKsxx.getXnm();
|
|
|
|
+ this.xqm = yjxtKsxx.getXqm();
|
|
|
|
+ this.courseCode = yjxtKsxx.getCourseCode();
|
|
|
|
+ this.courseName = yjxtKsxx.getCourseName();
|
|
|
|
+ this.courseCollegeName = yjxtKsxx.getCourseCollegeName();
|
|
|
|
+ this.paperNumber = yjxtKsxx.getPaperNumber();
|
|
|
|
+ this.studentName = yjxtKsxx.getStudentName();
|
|
|
|
+ this.studentCode = yjxtKsxx.getStudentCode();
|
|
|
|
+ this.siteNumber = yjxtKsxx.getSiteNumber();
|
|
|
|
+ this.studentCollegeName = yjxtKsxx.getStudentCollegeName();
|
|
|
|
+ this.majorName = yjxtKsxx.getMajorName();
|
|
|
|
+ this.teachClassName = yjxtKsxx.getTeachClassName();
|
|
|
|
+ this.className = yjxtKsxx.getClassName();
|
|
|
|
+ this.examDate = yjxtKsxx.getExamDate();
|
|
|
|
+ this.examTime = yjxtKsxx.getExamTime();
|
|
|
|
+ this.examPlace = yjxtKsxx.getExamPlace();
|
|
|
|
+ this.examRoom = yjxtKsxx.getExamRoom();
|
|
|
|
+ this.teacherCode = yjxtKsxx.getTeacherCode();
|
|
|
|
+ this.teacherName = yjxtKsxx.getTeacherName();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean equals(Object o) {
|
|
|
|
+ if (this == o) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ if (o == null || getClass() != o.getClass()) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ YjxtKsxx yjxtKsxx = (YjxtKsxx) o;
|
|
|
|
+ return xnm.equals(yjxtKsxx.xnm) && xqm.equals(yjxtKsxx.xqm) && courseCode.equals(yjxtKsxx.courseCode) && courseName.equals(yjxtKsxx.courseName) && Objects.equals(courseCollegeName, yjxtKsxx.courseCollegeName) && paperNumber.equals(yjxtKsxx.paperNumber) && studentName.equals(yjxtKsxx.studentName) && studentCode.equals(yjxtKsxx.studentCode) && Objects.equals(siteNumber, yjxtKsxx.siteNumber) && Objects.equals(studentCollegeName, yjxtKsxx.studentCollegeName) && Objects.equals(majorName, yjxtKsxx.majorName) && teachClassName.equals(yjxtKsxx.teachClassName) && Objects.equals(className, yjxtKsxx.className) && examDate.equals(yjxtKsxx.examDate) && examTime.equals(yjxtKsxx.examTime) && examPlace.equals(yjxtKsxx.examPlace) && Objects.equals(examRoom, yjxtKsxx.examRoom) && teacherCode.equals(yjxtKsxx.teacherCode) && teacherName.equals(yjxtKsxx.teacherName);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public int hashCode() {
|
|
|
|
+ return Objects.hash(xnm, xqm, courseCode, courseName, courseCollegeName, paperNumber, studentName, studentCode, siteNumber, studentCollegeName, majorName, teachClassName, className, examDate, examTime, examPlace, examRoom, teacherCode, teacherName);
|
|
|
|
+ }
|
|
|
|
+
|
|
public Long getId() {
|
|
public Long getId() {
|
|
return id;
|
|
return id;
|
|
}
|
|
}
|