|
@@ -42,6 +42,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="psychologicalDescription" column="psychological_description" />
|
|
<result property="psychologicalDescription" column="psychological_description" />
|
|
|
|
|
|
|
|
|
|
|
|
+ <result property="isLset" column="is_lset" />
|
|
|
|
+ <result property="isPoverty" column="is_poverty" />
|
|
|
|
+
|
|
|
|
+
|
|
<result property="classId" column="classId" />
|
|
<result property="classId" column="classId" />
|
|
|
|
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -49,13 +53,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<sql id="selectStudentInfoVo">
|
|
<sql id="selectStudentInfoVo">
|
|
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 from student_info
|
|
|
|
|
|
+ remark,is_nearsightedness,degree_myopia,health,mind,longitude,latitude,is_medical_history,medical_description,psychological_description,
|
|
|
|
+ is_lset,is_poverty 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_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
|
|
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>
|
|
@@ -79,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="address != null and address != ''"> and s.address = #{address}</if>
|
|
<if test="address != null and address != ''"> and s.address = #{address}</if>
|
|
<if test="classId != null "> and f.class_id = #{classId}</if>
|
|
<if test="classId != null "> and f.class_id = #{classId}</if>
|
|
</where>
|
|
</where>
|
|
- order by create_time desc;
|
|
|
|
|
|
+ order by create_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectStudentInfoById" parameterType="Long" resultMap="StudentInfoResult">
|
|
<select id="selectStudentInfoById" parameterType="Long" resultMap="StudentInfoResult">
|
|
@@ -129,6 +134,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="isMedicalHistory != null">is_medical_history,</if>
|
|
<if test="isMedicalHistory != null">is_medical_history,</if>
|
|
<if test="medicalDescription != null">medical_description,</if>
|
|
<if test="medicalDescription != null">medical_description,</if>
|
|
<if test="psychologicalDescription != null">psychological_description,</if>
|
|
<if test="psychologicalDescription != null">psychological_description,</if>
|
|
|
|
+
|
|
|
|
+ <if test="isLset != null">is_lset,</if>
|
|
|
|
+ <if test="isPoverty != null">is_poverty,</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>
|
|
@@ -166,6 +174,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="medicalDescription != null">#{medicalDescription},</if>
|
|
<if test="medicalDescription != null">#{medicalDescription},</if>
|
|
<if test="psychologicalDescription != null">#{psychologicalDescription},</if>
|
|
<if test="psychologicalDescription != null">#{psychologicalDescription},</if>
|
|
|
|
|
|
|
|
+
|
|
|
|
+ <if test="isLset != null">#{isLset},</if>
|
|
|
|
+ <if test="isPoverty != null">#{isPoverty},</if>
|
|
|
|
+
|
|
|
|
+
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -206,6 +219,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="isMedicalHistory != null">is_medical_history = #{isMedicalHistory},</if>
|
|
<if test="isMedicalHistory != null">is_medical_history = #{isMedicalHistory},</if>
|
|
<if test="medicalDescription != null">medical_description = #{medicalDescription},</if>
|
|
<if test="medicalDescription != null">medical_description = #{medicalDescription},</if>
|
|
<if test="psychologicalDescription != null">psychological_description = #{psychologicalDescription},</if>
|
|
<if test="psychologicalDescription != null">psychological_description = #{psychologicalDescription},</if>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <if test="isLset != null">is_lset= #{isLset},</if>
|
|
|
|
+ <if test="isPoverty != null">is_poverty= #{isPoverty},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|