|
@@ -33,19 +33,28 @@
|
|
|
<sql id="queryPageCondition">
|
|
|
<where>
|
|
|
<if test="extracurricularExercisesId != null">
|
|
|
- extracurricular_exercises_id_ = #{extracurricularExercisesId}
|
|
|
+ AND extracurricular_exercises_id_ = #{extracurricularExercisesId}
|
|
|
</if>
|
|
|
<if test="teacherId != null">
|
|
|
- teacher_id_ = #{teacherId}
|
|
|
+ AND teacher_id_ = #{teacherId}
|
|
|
</if>
|
|
|
<if test="studentId != null">
|
|
|
- user_id_ = #{studentId}
|
|
|
+ AND user_id_ = #{studentId}
|
|
|
</if>
|
|
|
<if test="title != null">
|
|
|
- title_ like '%' #{title} '%'
|
|
|
+ AND title_ like '%' #{title} '%'
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ AND status_ = #{status}
|
|
|
+ </if>
|
|
|
+ <if test="isReplied != null">
|
|
|
+ AND is_replied_ = #{isReplied}
|
|
|
+ </if>
|
|
|
+ <if test="isView != null">
|
|
|
+ AND is_view_ = #{isView}
|
|
|
</if>
|
|
|
<if test="search != null">
|
|
|
- title_ like concat('%',#{search},'%') or u.username_ like concat('%',#{search},'%')
|
|
|
+ AND title_ like concat('%',#{search},'%') or u.username_ like concat('%',#{search},'%')
|
|
|
</if>
|
|
|
<if test="submitStartTime != null">
|
|
|
AND date(eer.create_time_) >= #{submitStartTime}
|