소스 검색

排除包含0,8

njs 2 년 전
부모
커밋
4085d41f89
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      suishenbang-system/src/main/resources/mapper/system/SysUserSalesExtMapper.xml

+ 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">