Browse Source

排除包含0,8

njs 1 year ago
parent
commit
4085d41f89

+ 1 - 1
suishenbang-system/src/main/resources/mapper/system/SysUserSalesExtMapper.xml

@@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </select>
     <select id="selectSysUserCustomerExtById" parameterType="Long" resultMap="SysUserExtResult">
         <include refid="selectSysUserExtVo"/>
-        where user_id = #{userId} and is_customer_manager !='0' and is_customer_manager !='8'
+        where user_id = #{userId} and is_customer_manager  NOT LIKE ('%0%,%8%' )
     </select>
         
     <insert id="insertSysUserExt" parameterType="SysUserExt">