Bläddra i källkod

工作台代码提交

jingyuanchao 2 år sedan
förälder
incheckning
b8cff3be75

+ 6 - 7
soc-modules/soc-modules-core/src/main/resources/mapper/drill/CoreDrillTaskMapper.xml

@@ -196,13 +196,12 @@
 
     <select id="selectRecPage" resultType="com.xunmei.common.core.domain.drill.vo.CoreDrillTaskRecPageVo">
         select * from core_drill_task t
-        <where>
-            <if test="request.recStatus!=null">
-                t.rec_status =#{request.recStatus}
-            </if>
-            and t.org_path like concat(#{request.orgPath},'%')
-            <include refid="timeRangeSql"/>
-        </where>
+        where t.rec_status is not null
+        <if test="request.recStatus!=null">
+            and t.rec_status =#{request.recStatus}
+        </if>
+        and t.org_path like concat(#{request.orgPath},'%')
+        <include refid="timeRangeSql"/>
     </select>
     <sql id="recTaskListPage">
         <if test="request.orgPath !=null and request.orgPath != ''">