<?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>
|