Browse Source

权限划分

njs 1 year ago
parent
commit
3ddc666278

+ 3 - 2
suishenbang-system/src/main/resources/mapper/system/AlertConfigurationMapper.xml

@@ -44,9 +44,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectAlertConfigurationListFilter" parameterType="Long" resultMap="AlertConfigurationResult">
         <include refid="selectAlertConfigurationVo"/>
         WHERE alert_status = 1
-        <if test="userType !=null and userType !='' ">
-          and  user_type =#{userType}
+        <if test="userType !=null and userType !='' and userType !='2'.toString() ">
+          and ( user_type =#{userType}  or user_type ='2')
         </if>
+
     </select>
     
     <select id="selectAlertConfigurationById" parameterType="Long" resultMap="AlertConfigurationResult">