Pārlūkot izejas kodu

添加查询,报名信息接口

周箭河 5 gadi atpakaļ
vecāks
revīzija
c0f78c0175

+ 23 - 0
edu-user/edu-user-server/src/main/java/com/keao/edu/user/entity/ExamRegistration.java

@@ -56,6 +56,12 @@ public class ExamRegistration {
 	
 	@ApiModelProperty(value = "上次报考证书")
 	private String lastExamCertificateUrl;
+
+	@ApiModelProperty(value = "上次乐理级别")
+	private Integer lastMusicTheoryLevel;
+
+	@ApiModelProperty(value = "上次乐理证书")
+	private String lastMusicTheoryCertificateUrl;
 	
 	@ApiModelProperty(value = "指导老师姓名")
 	private String adviserName;
@@ -283,8 +289,25 @@ public class ExamRegistration {
 		this.theoryLevelFee = theoryLevelFee;
 	}
 
+	public Integer getLastMusicTheoryLevel() {
+		return lastMusicTheoryLevel;
+	}
+
+	public void setLastMusicTheoryLevel(Integer lastMusicTheoryLevel) {
+		this.lastMusicTheoryLevel = lastMusicTheoryLevel;
+	}
+
+	public String getLastMusicTheoryCertificateUrl() {
+		return lastMusicTheoryCertificateUrl;
+	}
+
+	public void setLastMusicTheoryCertificateUrl(String lastMusicTheoryCertificateUrl) {
+		this.lastMusicTheoryCertificateUrl = lastMusicTheoryCertificateUrl;
+	}
+
 	@Override
 	public String toString() {
 		return ToStringBuilder.reflectionToString(this);
 	}
+
 }

+ 8 - 2
edu-user/edu-user-server/src/main/resources/config/mybatis/ExamRegistrationMapper.xml

@@ -43,8 +43,14 @@
 
 	<!-- 向数据库增加一条记录 -->
 	<insert id="insert" parameterType="com.keao.edu.user.entity.ExamRegistration" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
-		INSERT INTO exam_registration (id_,examination_basic_id_,student_id_,organ_id_,subject_id_,level_,level_fee_,song_json_,exam_music_theory_level_,theory_level_fee_,last_exam_level_,last_exam_certificate_url_,adviser_name_,adviser_phone_,card_no_,status_,memo_,create_time_,update_time_,tenant_id_)
-		VALUES(#{id},#{examinationBasicId},#{studentId},#{organId},#{subjectId},#{level},#{levelFee},#{songJson},#{examMusicTheoryLevel},#{theoryLevelFee},#{lastExamLevel},#{lastExamCertificateUrl},#{adviserName},#{adviserPhone},#{cardNo},#{status,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{memo},NOW(), NOW(),#{tenantId})
+		INSERT INTO  exam_registration (examination_basic_id_, student_id_, organ_id_,subject_id_, level_, level_fee_,
+		song_json_, last_exam_level_, last_exam_certificate_url_,exam_music_theory_level_, theory_level_fee_,
+		last_music_theory_level_,last_music_theory_certificate_url_, adviser_name_,adviser_phone_, card_no_, status_,
+		create_time_, update_time_, tenant_id_,memo_)
+		VALUES (#{examinationBasicId}, #{studentId}, #{organId}, #{subjectId}, #{level}, #{levelFee}, #{songJson},
+		#{lastExamLevel}, #{lastExamCertificateUrl}, #{examMusicTheoryLevel}, #{theoryLevelFee}, #{lastMusicTheoryLevel},
+		#{lastMusicTheoryCertificateUrl}, #{adviserName}, #{adviserPhone}, #{cardNo}, #{status},#{createTime},
+		#{updateTime}, #{tenantId}, #{memo})
 	</insert>
 
 	<!-- 根据主键查询一条记录 -->