Browse Source

数据权限修改

gao.qiang 2 năm trước cách đây
mục cha
commit
d20366a779

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

@@ -39,7 +39,8 @@
                 and a.end_mile <=#{endMile}
             </if>
             <if test="!dsFlay">
-                and (
+                and
+                <trim prefix="(" prefixOverrides="or" suffix=")">
                 <if test="dsUserId != null and dsUserId != ''">
                     or a.create_by=#{dsUserId}  
                 </if>
@@ -52,7 +53,7 @@
                         #{item}
                     </foreach>
                 </if>
-                )
+                </trim>
             </if>
         </where>
     </select>

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

@@ -207,7 +207,8 @@
                 and b.end_mile &lt;=#{endMile}
             </if>
             <if test="!dsFlay">
-            and (
+                and
+                <trim prefix="(" prefixOverrides="or" suffix=")">
                 <if test="dsUserId != null and dsUserId != ''">
                     or  a.create_by=#{dsUserId}  
                 </if>
@@ -220,7 +221,7 @@
                         #{item}
                     </foreach>
                 </if>
-                )
+                </trim>
             </if>
             <if test="alarmType != null and alarmType != 0">
                 and a.alarm_type=#{alarmType}