|
@@ -14,6 +14,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="schoolName" column="school_name" />
|
|
|
<result property="classId" column="class_id" />
|
|
|
<result property="className" column="class_name" />
|
|
|
+ <result property="period" column="period" />
|
|
|
+
|
|
|
<result property="studentName" column="student_name" />
|
|
|
<result property="studentNumber" column="student_number" />
|
|
|
<result property="isPass" column="is_pass" />
|
|
@@ -28,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectRegisterParentsStudentVo">
|
|
|
- select id, parents_id,parents_name,parents_phone, school_id, school_name, class_id, class_name, student_name, student_number, is_pass,audit_id,audit_user,opinion, create_by, create_time, update_by, update_time, remark from register_parents_student
|
|
|
+ select id, parents_id,parents_name,parents_phone, school_id, school_name, class_id, class_name, period,student_name, student_number, is_pass,audit_id,audit_user,opinion, create_by, create_time, update_by, update_time, remark from register_parents_student
|
|
|
</sql>
|
|
|
<update id="updateMapperById">
|
|
|
update register_parents_student
|
|
@@ -40,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="schoolName != null">school_name = #{schoolName},</if>
|
|
|
<if test="classId != null">class_id = #{classId},</if>
|
|
|
<if test="className != null">class_name = #{className},</if>
|
|
|
+ <if test="period != null">period = #{period},</if>
|
|
|
<if test="studentName != null">student_name = #{studentName},</if>
|
|
|
<if test="studentNumber != null">student_number = #{studentNumber},</if>
|
|
|
<if test="isPass != null">is_pass = #{isPass},</if>
|
|
@@ -65,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectRegisterParentsStudentListByTime" resultMap="RegisterParentsStudentResult">
|
|
|
<include refid="selectRegisterParentsStudentVo"/>
|
|
|
where date_format(create_time,'%Y%m') = date_format(#{monthFirst},'%Y%m')
|
|
|
+ <if test="period != null">period = #{period},</if>
|
|
|
and class_id in
|
|
|
<foreach collection="classIds" index="index" item="item" open="(" separator="," close=")">
|
|
|
#{item}
|