xiaoyong931011
2021-07-23 4602ddaa6f8c408411aa6521b1f70ba3af629713
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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>