Эх сурвалжийг харах

getPhoneListByRole过滤删除用户

weijianghai 1 өдөр өмнө
parent
commit
df7c489e73

+ 1 - 1
src/main/resources/mapper/UserMapper.xml

@@ -122,6 +122,6 @@ where
     <select id="getPhoneListByRole" resultType="java.lang.String">
         select distinct  phone 
             from sqmdb_rpt.acl_user au , sqmdb_rpt.acl_user_role_city aurc 
-            where au.user_id = aurc.user_id and aurc.role_id = #{roleId} and aurc.city_id = #{cityId}
+            where au.user_id = aurc.user_id and aurc.role_id = #{roleId} and aurc.city_id = #{cityId} and au.deleted = 0
     </select>
 </mapper>