|
@@ -22,6 +22,7 @@
|
|
|
<result column="contact_mobile_" jdbcType="VARCHAR" property="contactMobile"/>
|
|
|
<result column="address_" jdbcType="VARCHAR" property="address"/>
|
|
|
<result column="pay_status_" jdbcType="INTEGER" property="payStatus"/>
|
|
|
+ <result column="repair_status_" jdbcType="INTEGER" property="repairStatus"/>
|
|
|
<result column="create_time_" jdbcType="TIMESTAMP" property="createTime"/>
|
|
|
<result column="update_time_" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
</resultMap>
|
|
@@ -41,7 +42,7 @@
|
|
|
description_, amount_, finish_time_,
|
|
|
send_type_, contact_name_, contact_mobile_,
|
|
|
address_, pay_status_, create_time_,
|
|
|
- update_time_)
|
|
|
+ update_time_,repair_status_)
|
|
|
values (#{id,jdbcType=INTEGER}, #{transNo,jdbcType=VARCHAR}, #{organId,jdbcType=INTEGER},
|
|
|
#{studentId,jdbcType=INTEGER}, #{studentName,jdbcType=VARCHAR}, #{studentSchool,jdbcType=VARCHAR},
|
|
|
#{employeeId,jdbcType=INTEGER}, #{employeeName,jdbcType=VARCHAR}, #{subjectId,jdbcType=INTEGER},
|
|
@@ -49,7 +50,7 @@
|
|
|
#{description,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{finishTime,jdbcType=TIMESTAMP},
|
|
|
#{sendType,jdbcType=INTEGER}, #{contactName,jdbcType=VARCHAR}, #{contactMobile,jdbcType=VARCHAR},
|
|
|
#{address,jdbcType=VARCHAR}, #{payStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},#{repairStatus})
|
|
|
</insert>
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.StudentRepair">
|
|
|
<!--@mbg.generated-->
|
|
@@ -58,6 +59,9 @@
|
|
|
<if test="transNo != null">
|
|
|
trans_no_ = #{transNo},
|
|
|
</if>
|
|
|
+ <if test="repairStatus != null">
|
|
|
+ repair_status_ = #{repairStatus},
|
|
|
+ </if>
|
|
|
<if test="organId != null">
|
|
|
organ_id_ = ##{organId},
|
|
|
</if>
|
|
@@ -151,4 +155,42 @@
|
|
|
AND mg.repair_user_id_ != #{employeeId}
|
|
|
)
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="queryPage" resultMap="StudentRepair">
|
|
|
+ SELECT * FROM student_repair sr
|
|
|
+ <include refid="queryPageSql"/>
|
|
|
+ <include refid="global.limit"/>
|
|
|
+ </select>
|
|
|
+ <sql id="queryPageSql">
|
|
|
+ <where>
|
|
|
+ <if test="search != null and search != ''">
|
|
|
+ AND (sr.trans_no_ LIKE CONCAT('%',#{search},'%') OR sr.student_id_ = #{search} OR sr.student_name_ LIKE CONCAT('%',#{search},'%'))
|
|
|
+ </if>
|
|
|
+ <if test="employeeId != null">
|
|
|
+ AND sr.employee_id_ = #{employeeId}
|
|
|
+ </if>
|
|
|
+ <if test="organIdList != null">
|
|
|
+ AND FIND_IN_SET(sr.organ_id_,#{organIdList})
|
|
|
+ </if>
|
|
|
+ <if test="subjectId != null">
|
|
|
+ AND sr.subject_id_ = #{subjectId}
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ AND sr.type = #{type}
|
|
|
+ </if>
|
|
|
+ <if test="repairStatus != null">
|
|
|
+ AND sr.repair_status_ = #{repairStatus}
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null">
|
|
|
+ AND sr.create_time_ >= #{startTime}
|
|
|
+ </if>
|
|
|
+ <if test="endTime != null">
|
|
|
+ AND sr.create_time_ <= #{endTime}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <select id="queryCount" resultType="int">
|
|
|
+ SELECT COUNT(id_) FROM student_repair sr
|
|
|
+ <include refid="queryPageSql"/>
|
|
|
+ </select>
|
|
|
</mapper>
|