Wubaozaizhong 2 سال پیش
والد
کامیت
1917d7eb25
1فایلهای تغییر یافته به همراه8 افزوده شده و 5 حذف شده
  1. 8 5
      mybusiness/src/main/resources/mapper/grid/app/AppBusCenterMapper.xml

+ 8 - 5
mybusiness/src/main/resources/mapper/grid/app/AppBusCenterMapper.xml

@@ -95,11 +95,14 @@
         FROM
             t_u_event_fire d
         WHERE
-             DEPT_ID IN (
-        <include refid="Depts">
-            <property name="dept_id" value="#{dept_id}"/>
-        </include>
-        )
+        1=1
+        <if test="dept_id != null and dept_id != ''">
+            DEPT_ID IN (
+                <include refid="Depts">
+                    <property name="dept_id" value="#{dept_id}"/>
+                </include>
+            )
+        </if>
             ${params.dataScope}
         UNION
         SELECT