Browse Source

sql修改

gao.qiang 2 years ago
parent
commit
0ad0279fba

+ 3 - 3
business-service/src/main/resources/mapper/service/BaseCameraManagementMapper.xml

@@ -41,13 +41,13 @@
             <if test="!dsFlay">
                 and (
                 <if test="dsUserId != null and dsUserId != ''">
-                    a.create_by=#{dsUserId}  or
+                    or a.create_by=#{dsUserId}  
                 </if>
                 <if test="dsDeptId != null and dsDeptId != 0">
-                    a.dept_id=#{dsDeptId}  or
+                    or  a.dept_id=#{dsDeptId}  
                 </if>
                 <if test="dsDeptIds != null">
-                    a.dept_id in
+                    or a.dept_id in
                     <foreach item="item" collection="dsDeptIds" separator="," open="(" close=")" index="">
                         #{item}
                     </foreach>

+ 3 - 3
business-service/src/main/resources/mapper/service/MsgAlarmMapper.xml

@@ -209,13 +209,13 @@
             <if test="!dsFlay">
             and (
                 <if test="dsUserId != null and dsUserId != ''">
-                     a.create_by=#{dsUserId}  or
+                    or  a.create_by=#{dsUserId}  
                 </if>
                 <if test="dsDeptId != null and dsDeptId != 0">
-                     b.dept_id=#{dsDeptId}  or
+                    or b.dept_id=#{dsDeptId} 
                 </if>
                 <if test="dsDeptIds != null">
-                     b.dept_id in
+                    or b.dept_id in
                     <foreach item="item" collection="dsDeptIds" separator="," open="(" close=")" index="">
                         #{item}
                     </foreach>