|
@@ -37,6 +37,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="longitude" column="longitude" />
|
|
|
<result property="latitude" column="latitude" />
|
|
|
|
|
|
+ <result property="isMedicalHistory" column="is_medical_history" />
|
|
|
+ <result property="medicalDescription" column="medical_description" />
|
|
|
+ <result property="psychologicalDescription" column="psychological_description" />
|
|
|
+
|
|
|
+
|
|
|
<result property="classId" column="classId" />
|
|
|
|
|
|
</resultMap>
|
|
@@ -44,13 +49,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<sql id="selectStudentInfoVo">
|
|
|
select id, student_id, name, sex, age, school, student_number, id_card, height, weight, blood_type, political_status, identification_photo,
|
|
|
entrance_permit, father_name, father_telephone, mother_name, mother_telephone, address, create_by, create_time, update_by, update_time,
|
|
|
- remark,is_nearsightedness,degree_myopia,health,mind,longitude,latitude from student_info
|
|
|
+ remark,is_nearsightedness,degree_myopia,health,mind,longitude,latitude,is_medical_history,medical_description,psychological_description from student_info
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectStudentInfoList" parameterType="StudentInfo" resultMap="StudentInfoResult">
|
|
|
select s.id, s.student_id, s.name, s.sex, s.age, s.school, s.student_number, s.id_card, s.height, s.weight, s.blood_type, s.political_status, s.identification_photo,
|
|
|
s.entrance_permit, s.father_name, s.father_telephone, s.mother_name, s.mother_telephone, s.address, s.create_by, s.create_time, s.update_by, s.update_time, s.remark,
|
|
|
- s.is_nearsightedness,s.degree_myopia,s.health,mind,s.longitude,s.latitude
|
|
|
+ s.is_nearsightedness,s.degree_myopia,s.health,mind,s.longitude,s.latitude,s.is_medical_history,s.medical_description,s.psychological_description
|
|
|
from student_info s
|
|
|
left join formal_parents_student f on s.student_id = f.id
|
|
|
<where>
|
|
@@ -115,6 +120,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="mind != null">mind,</if>
|
|
|
<if test="longitude != null">longitude,</if>
|
|
|
<if test="latitude != null">latitude,</if>
|
|
|
+
|
|
|
+ <if test="isMedicalHistory != null">is_medical_history,</if>
|
|
|
+ <if test="medicalDescription != null">medical_description,</if>
|
|
|
+ <if test="psychologicalDescription != null">psychological_description,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="studentId != null">#{studentId},</if>
|
|
@@ -148,6 +157,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="longitude != null">#{longitude},</if>
|
|
|
<if test="latitude != null">#{latitude},</if>
|
|
|
|
|
|
+ <if test="isMedicalHistory != null">#{isMedicalHistory},</if>
|
|
|
+ <if test="medicalDescription != null">#{medicalDescription},</if>
|
|
|
+ <if test="psychologicalDescription != null">#{psychologicalDescription},</if>
|
|
|
+
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -184,6 +197,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="mind != null">mind= #{mind},</if>
|
|
|
<if test="longitude != null">longitude= #{longitude},</if>
|
|
|
<if test="latitude != null">latitude= #{latitude},</if>
|
|
|
+
|
|
|
+ <if test="isMedicalHistory != null">is_medical_history = #{isMedicalHistory},</if>
|
|
|
+ <if test="medicalDescription != null">medical_description = #{medicalDescription},</if>
|
|
|
+ <if test="psychologicalDescription != null">psychological_description = #{psychologicalDescription},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|