|
@@ -48,6 +48,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="emergencyContact" column="emergency_contact" />
|
|
|
<result property="emergencyContactTelephone" column="emergency_contact_telephone" />
|
|
|
|
|
|
+ <result property="familyName" column="family_name" />
|
|
|
+ <result property="isFarsightedness" column="is_farsightedness" />
|
|
|
+ <result property="farsightedness" column="farsightedness" />
|
|
|
+
|
|
|
|
|
|
<result property="classId" column="classId" />
|
|
|
<result property="parentsId" column="parentsId" />
|
|
@@ -58,14 +62,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
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,is_medical_history,medical_description,psychological_description,
|
|
|
- is_lset,is_poverty,emergency_contact,emergency_contact_telephone from student_info
|
|
|
+ is_lset,is_poverty,emergency_contact,emergency_contact_telephone,family_name,is_farsightedness,farsightedness 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_medical_history,s.medical_description,s.psychological_description, s.is_lset,s.is_poverty,
|
|
|
- s.emergency_contact,s.emergency_contact_telephone
|
|
|
+ s.emergency_contact,s.emergency_contact_telephone,s.family_name,s.is_farsightedness,s.farsightedness
|
|
|
from student_info s
|
|
|
left join formal_parents_student f on s.student_id = f.id
|
|
|
<where>
|
|
@@ -154,6 +158,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<if test="emergencyContact != null">emergency_contact,</if>
|
|
|
<if test="emergencyContactTelephone != null">emergency_contact_telephone,</if>
|
|
|
+
|
|
|
+ <if test="familyName != null">family_name,</if>
|
|
|
+ <if test="isFarsightedness != null">is_farsightedness,</if>
|
|
|
+ <if test="farsightedness != null">farsightedness,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="studentId != null">#{studentId},</if>
|
|
@@ -197,6 +205,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<if test="emergencyContact != null">#{emergencyContact},</if>
|
|
|
<if test="emergencyContactTelephone != null">#{emergencyContactTelephone},</if>
|
|
|
+
|
|
|
+ <if test="familyName != null">#{familyName},</if>
|
|
|
+ <if test="isFarsightedness != null">#{isFarsightedness},</if>
|
|
|
+ <if test="farsightedness != null">#{farsightedness},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -244,6 +256,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<if test="emergencyContact != null">emergency_contact= #{emergencyContact},</if>
|
|
|
<if test="emergencyContactTelephone != null">emergency_contact_telephone= #{emergencyContactTelephone},</if>
|
|
|
+
|
|
|
+ <if test="familyName != null">family_name= #{familyName},</if>
|
|
|
+ <if test="isFarsightedness != null">is_farsightedness= #{isFarsightedness},</if>
|
|
|
+ <if test="farsightedness != null">farsightedness= #{farsightedness},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|