zouxuan há 5 anos atrás
pai
commit
b13aa918b9

+ 4 - 4
mec-biz/src/main/resources/config/mybatis/TeacherCourseRewardDao.xml

@@ -135,16 +135,16 @@
 
     <sql id="queryCondition">
         <where>
-            <if test="teacherId!=null">
+            <if test="teacherId != null">
                 AND tcr.teacher_id_=#{teacherId}
             </if>
-            <if test="search!=null">
+            <if test="search != null and search != ''">
                 AND (tcr.course_group_name_ LIKE CONCAT('%', #{search}, '%') OR tcr.music_group_id_ LIKE CONCAT(#{search}, '%'))
             </if>
-            <if test="organId!=null">
+            <if test="organId != null and organId != ''">
                 AND FIND_IN_SET(tcr.organ_id_ ,#{organId})
             </if>
-            <if test="settlementStatus!=null">
+            <if test="settlementStatus != null">
                 AND tcr.settlement_status_ = #{settlementStatus}
             </if>
             <if test="startTime != null">