<?xml version="1.0" encoding="UTF-8"?> 
 | 
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 
 | 
<mapper namespace="com.xzx.gc.pay.mapper.OtherUserMapper"> 
 | 
  
 | 
  
 | 
    <select id="queryUserOtherInfoById" resultType="com.xzx.gc.model.admin.UserModel"> 
 | 
        select * from xzx_user_other_info where del_flag = 0 
 | 
        <if test="userId != null and userId != ''"> 
 | 
            and user_id=#{userId} 
 | 
        </if> 
 | 
        limit 1 
 | 
    </select> 
 | 
  
 | 
  
 | 
    <select id="queryRecoveryById" resultType="com.xzx.gc.model.admin.UserModel"> 
 | 
        select * from xzx_user_other_info where del_flag = 0 
 | 
        <if test=" userType!= null"> 
 | 
            and user_type=#{userType} 
 | 
        </if> 
 | 
        <if test="userId != null and userId != ''"> 
 | 
            and user_id=#{userId} 
 | 
        </if> 
 | 
        limit 1 
 | 
    </select> 
 | 
</mapper> 
 |