|
@@ -1,4 +1,4 @@
|
|
|
-<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
<!DOCTYPE mapper
|
|
<!DOCTYPE mapper
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
@@ -28,7 +28,7 @@
|
|
|
<result property="isDel" column="is_del" />
|
|
<result property="isDel" column="is_del" />
|
|
|
<result property="userCode" column="user_code" />
|
|
<result property="userCode" column="user_code" />
|
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
|
- <result property="nickname" column="nickname" />
|
|
|
|
|
|
|
+ <result property="nickname" column="nick_name" />
|
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="lastIp" column="last_ip" />
|
|
<result property="lastIp" column="last_ip" />
|
|
@@ -75,7 +75,7 @@
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsUserVo">
|
|
<sql id="selectFsUserVo">
|
|
|
- select user_id, username, nick_name, avatar, phone, integral, status, `level`, spread_user_id, spread_time, user_type, is_promoter, pay_count, spread_count, addres, tui_user_id, tui_time, tui_user_count, ma_open_id, mp_open_id, union_id, is_del, user_code, remark, nickname, create_time, update_time, last_ip, now_money, brokerage_price, balance, sign_num, integral_status, is_buy, password, real_name, birthday, id_card, jpush_id, is_vip, vip_start_date, vip_end_date, vip_level, vip_status, sex, store_open_id, is_official_account_auth, is_push, is_individuation_push, is_weixin_auth, company_id, company_user_id, register_date, register_code, test, login_device, source, is_add_qw, qw_user_id, is_show, parent_id, course_ma_open_id, history_app, qw_ext_id, `rank`, react,order_count,bind_company_user_id,app_id from fs_user
|
|
|
|
|
|
|
+ select user_id, username, nick_name, avatar, phone, integral, status, `level`, spread_user_id, spread_time, user_type, is_promoter, pay_count, spread_count, addres, tui_user_id, tui_time, tui_user_count, ma_open_id, mp_open_id, union_id, is_del, user_code, remark, create_time, update_time, last_ip, now_money, brokerage_price, balance, sign_num, integral_status, is_buy, password, real_name, birthday, id_card, jpush_id, is_vip, vip_start_date, vip_end_date, vip_level, vip_status, sex, store_open_id, is_official_account_auth, is_push, is_individuation_push, is_weixin_auth, company_id, company_user_id, register_date, register_code, test, login_device, source, is_add_qw, qw_user_id, is_show, parent_id, course_ma_open_id, history_app, qw_ext_id, `rank`, react,order_count,bind_company_user_id,app_id from fs_user
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectFsUserList" resultMap="FsUserResult">
|
|
<select id="selectFsUserList" resultMap="FsUserResult">
|
|
@@ -88,7 +88,7 @@
|
|
|
<if test="birthday != null ">and birthday = #{birthday}</if>
|
|
<if test="birthday != null ">and birthday = #{birthday}</if>
|
|
|
<if test="idCard != null and idCard != ''">and id_card = #{idCard}</if>
|
|
<if test="idCard != null and idCard != ''">and id_card = #{idCard}</if>
|
|
|
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
|
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
|
|
- <if test="nickname != null and nickname != ''">and nickname like concat('%', #{nickname}, '%')</if>
|
|
|
|
|
|
|
+ <if test="nickname != null and nickname != ''">and nick_name like concat('%', #{nickname}, '%')</if>
|
|
|
<if test="avatar != null and avatar != ''">and avatar = #{avatar}</if>
|
|
<if test="avatar != null and avatar != ''">and avatar = #{avatar}</if>
|
|
|
<if test="phone != null and phone != ''">and phone = #{phone}</if>
|
|
<if test="phone != null and phone != ''">and phone = #{phone}</if>
|
|
|
<if test="lastIp != null and lastIp != ''">and last_ip = #{lastIp}</if>
|
|
<if test="lastIp != null and lastIp != ''">and last_ip = #{lastIp}</if>
|
|
@@ -161,7 +161,7 @@
|
|
|
and (
|
|
and (
|
|
|
<if test="username != null and username != ''">username like concat('%', #{username}, '%')</if>
|
|
<if test="username != null and username != ''">username like concat('%', #{username}, '%')</if>
|
|
|
<if test="userId != null and userId != ''">or user_id = #{userId}</if>
|
|
<if test="userId != null and userId != ''">or user_id = #{userId}</if>
|
|
|
- <if test="nickname != null and nickname != ''">or nickname like concat('%', #{nickname}, '%')</if>
|
|
|
|
|
|
|
+ <if test="nickname != null and nickname != ''">or nick_name like concat('%', #{nickname}, '%')</if>
|
|
|
<if test="phone != null and phone != ''">or phone like concat('%',#{phone},'%')</if>
|
|
<if test="phone != null and phone != ''">or phone like concat('%',#{phone},'%')</if>
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
@@ -179,7 +179,7 @@
|
|
|
user.id_card,
|
|
user.id_card,
|
|
|
user.phone,
|
|
user.phone,
|
|
|
user.addres,
|
|
user.addres,
|
|
|
- user.nickname,
|
|
|
|
|
|
|
+ user.nick_name,
|
|
|
user.status,
|
|
user.status,
|
|
|
user.company_id,
|
|
user.company_id,
|
|
|
user.company_user_id,
|
|
user.company_user_id,
|
|
@@ -260,12 +260,12 @@
|
|
|
LEFT JOIN company_user ON company_user.user_id = u.company_user_id
|
|
LEFT JOIN company_user ON company_user.user_id = u.company_user_id
|
|
|
LEFT JOIN company on company.company_id = company_user.company_id
|
|
LEFT JOIN company on company.company_id = company_user.company_id
|
|
|
<where>
|
|
<where>
|
|
|
- 1 = 1 and u.nickname is not null
|
|
|
|
|
|
|
+ 1 = 1 and u.nick_name is not null
|
|
|
<if test = "maps.userId != null" >
|
|
<if test = "maps.userId != null" >
|
|
|
AND u.user_id = #{maps.userId}
|
|
AND u.user_id = #{maps.userId}
|
|
|
</if >
|
|
</if >
|
|
|
<if test = "maps.nickname != null and maps.nickname !='' " >
|
|
<if test = "maps.nickname != null and maps.nickname !='' " >
|
|
|
- AND u.nickname LIKE CONCAT("%",#{maps.nickname},"%")
|
|
|
|
|
|
|
+ AND u.nick_name LIKE CONCAT("%",#{maps.nickname},"%")
|
|
|
</if >
|
|
</if >
|
|
|
<if test = "maps.phone != null and maps.phone !='' " >
|
|
<if test = "maps.phone != null and maps.phone !='' " >
|
|
|
AND u.phone LIKE CONCAT("%",#{maps.phone},"%")
|
|
AND u.phone LIKE CONCAT("%",#{maps.phone},"%")
|
|
@@ -338,9 +338,9 @@
|
|
|
LEFT JOIN company_user ON company_user.user_id = ucu.company_user_id
|
|
LEFT JOIN company_user ON company_user.user_id = ucu.company_user_id
|
|
|
LEFT JOIN company on company.company_id = company_user.company_id
|
|
LEFT JOIN company on company.company_id = company_user.company_id
|
|
|
<where>
|
|
<where>
|
|
|
- 1 = 1 and u.nickname is not null
|
|
|
|
|
|
|
+ 1 = 1 and u.nick_name is not null
|
|
|
<if test = "maps.nickname != null and maps.nickname !='' " >
|
|
<if test = "maps.nickname != null and maps.nickname !='' " >
|
|
|
- AND u.nickname LIKE CONCAT("%",#{maps.nickname},"%")
|
|
|
|
|
|
|
+ AND u.nick_name LIKE CONCAT("%",#{maps.nickname},"%")
|
|
|
</if >
|
|
</if >
|
|
|
<if test = "maps.userId != null and maps.userId !='' " >
|
|
<if test = "maps.userId != null and maps.userId !='' " >
|
|
|
AND u.user_id = #{maps.userId}
|
|
AND u.user_id = #{maps.userId}
|
|
@@ -408,7 +408,7 @@
|
|
|
<if test="isDel != null">is_del,</if>
|
|
<if test="isDel != null">is_del,</if>
|
|
|
<if test="userCode != null">user_code,</if>
|
|
<if test="userCode != null">user_code,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
|
- <if test="nickname != null">nickname,</if>
|
|
|
|
|
|
|
+ <if test="nickname != null">nick_name,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="lastIp != null">last_ip,</if>
|
|
<if test="lastIp != null">last_ip,</if>
|
|
@@ -524,7 +524,6 @@
|
|
|
update fs_user
|
|
update fs_user
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="nickname != null">nick_name = #{nickname},</if>
|
|
<if test="nickname != null">nick_name = #{nickname},</if>
|
|
|
- <if test="nickname != null">nickname = #{nickname},</if>
|
|
|
|
|
<if test="avatar != null">avatar = #{avatar},</if>
|
|
<if test="avatar != null">avatar = #{avatar},</if>
|
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
|
<if test="integral != null">integral = #{integral},</if>
|
|
<if test="integral != null">integral = #{integral},</if>
|
|
@@ -598,7 +597,7 @@
|
|
|
<select id="selectFsUserPageListNew" resultType="com.fs.hisStore.vo.h5.FsUserPageListVO">
|
|
<select id="selectFsUserPageListNew" resultType="com.fs.hisStore.vo.h5.FsUserPageListVO">
|
|
|
SELECT
|
|
SELECT
|
|
|
fs_user.user_id,
|
|
fs_user.user_id,
|
|
|
- fs_user.nickname,
|
|
|
|
|
|
|
+ fs_user.nick_name,
|
|
|
fs_user.avatar,
|
|
fs_user.avatar,
|
|
|
fs_user.phone,
|
|
fs_user.phone,
|
|
|
fs_user.status,
|
|
fs_user.status,
|
|
@@ -633,7 +632,7 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="nickname != null and nickname != ''">
|
|
<if test="nickname != null and nickname != ''">
|
|
|
- AND fs_user.nickname like concat('%', #{nickname},'%')
|
|
|
|
|
|
|
+ AND fs_user.nick_name like concat('%', #{nickname},'%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="phone != null and phone != ''">
|
|
<if test="phone != null and phone != ''">
|
|
|
AND fs_user.phone like concat('%', #{phone},'%')
|
|
AND fs_user.phone like concat('%', #{phone},'%')
|
|
@@ -649,7 +648,7 @@
|
|
|
SELECT
|
|
SELECT
|
|
|
fs_user.user_id,
|
|
fs_user.user_id,
|
|
|
fs_user.avatar,
|
|
fs_user.avatar,
|
|
|
- fs_user.nickname,
|
|
|
|
|
|
|
+ fs_user.nick_name,
|
|
|
fs_user.phone,
|
|
fs_user.phone,
|
|
|
fs_user_course_count.id,
|
|
fs_user_course_count.id,
|
|
|
fs_user_course_count.watch_course_count,
|
|
fs_user_course_count.watch_course_count,
|
|
@@ -691,7 +690,7 @@
|
|
|
AND fs_user_company_user.project_id = #{projectId}
|
|
AND fs_user_company_user.project_id = #{projectId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="keyword != null and keyword !='' ">
|
|
<if test="keyword != null and keyword !='' ">
|
|
|
- AND (fs_user.nickname LIKE concat('%',#{keyword},'%')
|
|
|
|
|
|
|
+ AND (fs_user.nick_name LIKE concat('%',#{keyword},'%')
|
|
|
or fs_user.phone LIKE concat('%',#{keyword},'%')
|
|
or fs_user.phone LIKE concat('%',#{keyword},'%')
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
@@ -764,7 +763,7 @@
|
|
|
fs_user_company_user.create_time desc
|
|
fs_user_company_user.create_time desc
|
|
|
</when>
|
|
</when>
|
|
|
<when test = "continueMissCourseSort == 1">
|
|
<when test = "continueMissCourseSort == 1">
|
|
|
- fs_user.nickname asc
|
|
|
|
|
|
|
+ fs_user.nick_name asc
|
|
|
</when>
|
|
</when>
|
|
|
</choose>
|
|
</choose>
|
|
|
</if>
|
|
</if>
|
|
@@ -1701,7 +1700,7 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="nickname != null and nickname!=''">
|
|
<if test="nickname != null and nickname!=''">
|
|
|
- AND fs_user.nickname like concat(#{nickname},'%')
|
|
|
|
|
|
|
+ AND fs_user.nick_name like concat(#{nickname},'%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="phone != null and phone!=''">
|
|
<if test="phone != null and phone!=''">
|
|
|
AND fs_user.phone like concat('%', #{phone},'%')
|
|
AND fs_user.phone like concat('%', #{phone},'%')
|
|
@@ -1774,11 +1773,11 @@
|
|
|
<select id="selectUserListByMap" resultType="com.fs.his.vo.OptionsVO">
|
|
<select id="selectUserListByMap" resultType="com.fs.his.vo.OptionsVO">
|
|
|
select
|
|
select
|
|
|
u.user_id dictValue,
|
|
u.user_id dictValue,
|
|
|
- u.nickname dictLabel
|
|
|
|
|
|
|
+ u.nick_name dictLabel
|
|
|
from fs_user u
|
|
from fs_user u
|
|
|
<where>
|
|
<where>
|
|
|
<if test="params.nickName != null and params.nickName != ''">
|
|
<if test="params.nickName != null and params.nickName != ''">
|
|
|
- u.nickname like concat('%', #{params.nickName}, '%')
|
|
|
|
|
|
|
+ u.nick_name like concat('%', #{params.nickName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
@@ -1908,7 +1907,7 @@
|
|
|
<where>
|
|
<where>
|
|
|
<if test="userName != null and userName != ''">
|
|
<if test="userName != null and userName != ''">
|
|
|
AND (
|
|
AND (
|
|
|
- nickname like concat('%', #{userName}, '%')
|
|
|
|
|
|
|
+ nick_name like concat('%', #{userName}, '%')
|
|
|
or user_id LIKE concat('%',#{userName},'%')
|
|
or user_id LIKE concat('%',#{userName},'%')
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|