소스 검색

辉南林业

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