44323
2024-04-23 16b704d18a875d1fb63827aaa507790ba2bef5be
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
26
27
28
29
30
31
32
33
34
35
36
37
<?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.stylefeng.guns.modular.system.dao.AppUserMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.stylefeng.guns.modular.system.model.AppUser">
        <id column="id" property="id" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, code, name, phone, password, openId, appleId, birthday, gender, height, weight, unit, headImg, balance, constellation, clockIn, inviteUserId, address
    </sql>
    <select id="inviteUserList" resultType="com.stylefeng.guns.modular.system.vo.InviteUserVO">
        select t1.* from t_user t1
        where t1.inviteUserId = #{req.id} AND t1.state != 3
    </select>
    <select id="teamList" resultType="com.stylefeng.guns.modular.system.vo.TeamDetailVO">
        select t1.* from t_user
    </select>
    <select id="selectList1" resultType="com.stylefeng.guns.modular.system.model.AppUser">
        select *
         from t_user
         where 1=1
        <if test="name !=null and name!=''">
            AND name LIKE concat('%',#{name},'%')
        </if>
        <if test="phone !=null and phone!=''">
            AND phone LIKE concat('%',#{phone},'%')
        </if>
        and state!=3
        and !ISNULL(phone)
        order by insertTime desc
    </select>
 
 
</mapper>