|
@@ -22,8 +22,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="loginDate" column="login_date" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
<result property="remark" column="remark" />
|
|
|
<result property="tenantId" column="tenant_id" />
|
|
|
<result property="address" column="address" />
|
|
@@ -61,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectUserList" parameterType="com.usky.system.domain.SysUser" resultMap="SysUserResult">
|
|
|
- select u.user_id, u.dept_id, u.nick_name, u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.password, u.sex,
|
|
|
+ select u.user_id, u.dept_id, u.user_name, u.nick_name, u.user_type, u.email, u.phonenumber, u.sex, u.full_name, u.avatar, u.password,
|
|
|
u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader
|
|
|
from sys_user_tenant ut
|
|
|
left join sys_user u on ut.user_id = u.user_id
|
|
@@ -98,6 +96,43 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
${params.dataScope}
|
|
|
ORDER BY u.user_id DESC
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="platAccountlist" parameterType="com.usky.system.domain.SysUser" resultMap="SysUserResult">
|
|
|
+ select u.user_id, u.dept_id, u.user_name, u.nick_name, u.user_type, u.email, u.phonenumber, u.sex, u.full_name, u.avatar, u.password,
|
|
|
+ u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark
|
|
|
+ from sys_user u
|
|
|
+ where u.del_flag = '0'
|
|
|
+ <if test="userName != null and userName != ''">
|
|
|
+ AND u.user_name like concat('%', #{userName}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="createBy != null and createBy != ''">
|
|
|
+ AND u.create_by = #{createBy}
|
|
|
+ </if>
|
|
|
+ <if test="status != null and status != ''">
|
|
|
+ AND u.status = #{status}
|
|
|
+ </if>
|
|
|
+ <if test="tenantId != null and tenantId != '' and tenantId !=0">
|
|
|
+ AND u.tenant_id = #{tenantId}
|
|
|
+ </if>
|
|
|
+ <if test="userType != null and userType != ''">
|
|
|
+ AND u.user_type = #{userType}
|
|
|
+ </if>
|
|
|
+ <if test="phonenumber != null and phonenumber != ''">
|
|
|
+ AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
+ AND date_format(u.create_time,'%Y-%m-%d %H:%i:%s') >= date_format(#{params.beginTime},'%Y-%m-%d %H:%i:%s')
|
|
|
+ </if>
|
|
|
+ <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
+ AND date_format(u.create_time,'%Y-%m-%d %H:%i:%s') <= date_format(#{params.endTime},'%Y-%m-%d %H:%i:%s')
|
|
|
+ </if>
|
|
|
+ <if test="deptId != null and deptId != 0">
|
|
|
+ AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) ))
|
|
|
+ </if>
|
|
|
+ <!-- 数据范围过滤 -->
|
|
|
+ ${params.dataScope}
|
|
|
+ ORDER BY u.user_id DESC
|
|
|
+ </select>
|
|
|
|
|
|
<select id="selectAllocatedList" parameterType="com.usky.system.domain.SysUser" resultMap="SysUserResult">
|
|
|
select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
|