Ver Fonte

学生心愿 增加学生姓名

jz.kai há 1 ano atrás
pai
commit
295fe8b3f6

+ 3 - 0
common/src/main/java/com/jpsoft/employment/modules/base/entity/StudentAspirations.java

@@ -24,6 +24,9 @@ public class StudentAspirations {
 	
 				@ApiModelProperty(value = "心愿名称")
 	private String name;
+
+	@ApiModelProperty(value = "学员姓名")
+	private String studentName;
 	
 				@ApiModelProperty(value = "创建人")
 	private String createBy;

+ 6 - 1
common/src/main/resources/mapper/base/StudentAspirations.xml

@@ -7,6 +7,7 @@
 		<id property="id" column="id_" />
 			<result property="wishInfoId" column="wish_info_id" />
 			<result property="name" column="name_" />
+		<result property="studentName" column="student_name" />
 			<result property="createBy" column="create_by" />
 			<result property="createTime" column="create_time" />
 			<result property="updateBy" column="update_by" />
@@ -21,12 +22,13 @@
 	-->
 	<![CDATA[
 		insert into base_student_aspirations
-	    (id_,wish_info_id,name_,create_by,create_time,update_by,update_time,del_flag)
+	    (id_,wish_info_id,name_,student_name,create_by,create_time,update_by,update_time,del_flag)
 		values
 		(
 #{id,jdbcType=VARCHAR}
 ,#{wishInfoId,jdbcType=VARCHAR}
 ,#{name,jdbcType=VARCHAR}
+,#{studentName,jdbcType=VARCHAR}
 ,#{createBy,jdbcType=VARCHAR}
 ,#{createTime,jdbcType= TIMESTAMP }
 ,#{updateBy,jdbcType=VARCHAR}
@@ -47,6 +49,9 @@
 				<if test="name!=null">
 		name_=#{name,jdbcType=VARCHAR},
 		</if>
+			<if test="studentName!=null">
+				student_name=#{studentName,jdbcType=VARCHAR},
+			</if>
 				<if test="createBy!=null">
 		create_by=#{createBy,jdbcType=VARCHAR},
 		</if>