lyhzzz 9 月之前
父節點
當前提交
66a8442130
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/mapper/manage/JyUserPlatformMapper.xml

+ 2 - 2
src/main/resources/mapper/manage/JyUserPlatformMapper.xml

@@ -30,12 +30,12 @@
 
     </select>
     <select id="queryByKey" resultType="com.fdkankan.manage.vo.JyUserPlatform">
-        select  id,id_card,ry_nick_name as name ,phone,platform_id,status,create_time from  jy_user where rec_status = 'A'
+        select  id,id_card,ry_nick_name as name ,phone,platform_id,status,create_time from  jy_user where rec_status = 'A' and status = 1
         <if test="queryKey != null and queryKey !=''">
             and ( ry_nick_name = #{queryKey} or phone = #{queryKey} or id_card = #{queryKey}  )
         </if>
         <if test="noInIds != null and noInIds.size >0">
-            and  id_card not in
+            and id_card is null or  id_card not in
             <foreach collection="noInIds" item="idCard" open="(" close=")" separator=",">
                 #{idCard}
             </foreach>