|
@@ -45,6 +45,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="isLset" column="is_lset" />
|
|
<result property="isLset" column="is_lset" />
|
|
<result property="isPoverty" column="is_poverty" />
|
|
<result property="isPoverty" column="is_poverty" />
|
|
|
|
|
|
|
|
+ <result property="emergencyContact" column="emergency_contact" />
|
|
|
|
+ <result property="emergencyContactTelephone" column="emergency_contact_telephone" />
|
|
|
|
+
|
|
|
|
|
|
<result property="classId" column="classId" />
|
|
<result property="classId" column="classId" />
|
|
<result property="parentsId" column="parentsId" />
|
|
<result property="parentsId" column="parentsId" />
|
|
@@ -55,13 +58,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,
|
|
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,
|
|
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,
|
|
remark,is_nearsightedness,degree_myopia,health,mind,longitude,latitude,is_medical_history,medical_description,psychological_description,
|
|
- is_lset,is_poverty from student_info
|
|
|
|
|
|
+ is_lset,is_poverty,emergency_contact,emergency_contact_telephone from student_info
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectStudentInfoList" parameterType="StudentInfo" resultMap="StudentInfoResult">
|
|
<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,
|
|
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.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.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
|
|
from student_info s
|
|
from student_info s
|
|
left join formal_parents_student f on s.student_id = f.id
|
|
left join formal_parents_student f on s.student_id = f.id
|
|
<where>
|
|
<where>
|
|
@@ -87,6 +91,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="isNearsightedness != null and isNearsightedness != ''"> and s.is_nearsightedness = #{isNearsightedness}</if>
|
|
<if test="isNearsightedness != null and isNearsightedness != ''"> and s.is_nearsightedness = #{isNearsightedness}</if>
|
|
<if test="isMedicalHistory != null and isMedicalHistory != ''"> and s.is_medical_history = #{isMedicalHistory}</if>
|
|
<if test="isMedicalHistory != null and isMedicalHistory != ''"> and s.is_medical_history = #{isMedicalHistory}</if>
|
|
|
|
|
|
|
|
+ <if test="emergencyContact != null and emergencyContact != ''"> and s.emergency_contact = #{emergencyContact}</if>
|
|
|
|
+ <if test="emergencyContactTelephone != null and emergencyContactTelephone != ''"> and s.emergency_contact_telephone = #{emergencyContactTelephone}</if>
|
|
|
|
+
|
|
<if test="classId != null "> and f.class_id = #{classId}</if>
|
|
<if test="classId != null "> and f.class_id = #{classId}</if>
|
|
<if test="parentsId != null "> and f.parents_id = #{parentsId}</if>
|
|
<if test="parentsId != null "> and f.parents_id = #{parentsId}</if>
|
|
|
|
|
|
@@ -144,6 +151,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<if test="isLset != null">is_lset,</if>
|
|
<if test="isLset != null">is_lset,</if>
|
|
<if test="isPoverty != null">is_poverty,</if>
|
|
<if test="isPoverty != null">is_poverty,</if>
|
|
|
|
+
|
|
|
|
+ <if test="emergencyContact != null">emergency_contact,</if>
|
|
|
|
+ <if test="emergencyContactTelephone != null">emergency_contact_telephone,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="studentId != null">#{studentId},</if>
|
|
<if test="studentId != null">#{studentId},</if>
|
|
@@ -185,7 +195,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="isLset != null">#{isLset},</if>
|
|
<if test="isLset != null">#{isLset},</if>
|
|
<if test="isPoverty != null">#{isPoverty},</if>
|
|
<if test="isPoverty != null">#{isPoverty},</if>
|
|
|
|
|
|
-
|
|
|
|
|
|
+ <if test="emergencyContact != null">#{emergencyContact},</if>
|
|
|
|
+ <if test="emergencyContactTelephone != null">#{emergencyContactTelephone},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -230,6 +241,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<if test="isLset != null">is_lset= #{isLset},</if>
|
|
<if test="isLset != null">is_lset= #{isLset},</if>
|
|
<if test="isPoverty != null">is_poverty= #{isPoverty},</if>
|
|
<if test="isPoverty != null">is_poverty= #{isPoverty},</if>
|
|
|
|
+
|
|
|
|
+ <if test="emergencyContact != null">emergency_contact= #{emergencyContact},</if>
|
|
|
|
+ <if test="emergencyContactTelephone != null">emergency_contact_telephone= #{emergencyContactTelephone},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|