下拉选
This commit is contained in:
parent
6a17d1d210
commit
b5e5d6317b
|
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
<!--组织机构树-->
|
<!--组织机构树-->
|
||||||
<select id="getOrgTree" resultType="com.securitycontrol.entity.system.vo.TreeNode">
|
<select id="getOrgTree" resultType="com.securitycontrol.entity.system.vo.TreeNode">
|
||||||
SELECT dict_id AS id,
|
SELECT org_id AS id,
|
||||||
p_code AS parentId,
|
p_id AS parentId,
|
||||||
dict_value AS label
|
org_name AS label
|
||||||
FROM sys_dict
|
FROM sys_org
|
||||||
WHERE del_flag = '0'
|
WHERE del_flag = 0
|
||||||
</select>
|
</select>
|
||||||
<!--角色下拉选-->
|
<!--角色下拉选-->
|
||||||
<select id="getRoleLists" resultType="com.securitycontrol.entity.system.vo.SelectVo">
|
<select id="getRoleLists" resultType="com.securitycontrol.entity.system.vo.SelectVo">
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@
|
||||||
<if test="createTime != null and createTime != ''">create_time,</if>
|
<if test="createTime != null and createTime != ''">create_time,</if>
|
||||||
<if test="phone != null and phone != ''">phone,</if>
|
<if test="phone != null and phone != ''">phone,</if>
|
||||||
<if test="loginType != null and loginType != ''">login_type,</if>
|
<if test="loginType != null and loginType != ''">login_type,</if>
|
||||||
<if test="userType != null and userType != ''">user_type,</if>
|
<if test="userType != null">user_type,</if>
|
||||||
<if test="isAdmin != null and isAdmin != ''">is_admin,</if>
|
<if test="isAdmin != null and isAdmin != ''">is_admin,</if>
|
||||||
<if test="roleId != null and roleId != ''">role_id,</if>
|
<if test="roleId != null and roleId != ''">role_id,</if>
|
||||||
<if test="accountStatus != null and accountStatus != ''">status,</if>
|
<if test="accountStatus != null">status,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="userName != null and userName != ''">#{userName},</if>
|
<if test="userName != null and userName != ''">#{userName},</if>
|
||||||
|
|
@ -30,10 +30,10 @@
|
||||||
<if test="createTime != null and createTime != ''">#{createTime},</if>
|
<if test="createTime != null and createTime != ''">#{createTime},</if>
|
||||||
<if test="phone != null and phone != ''">#{phone},</if>
|
<if test="phone != null and phone != ''">#{phone},</if>
|
||||||
<if test="loginType != null and loginType != ''">#{loginType},</if>
|
<if test="loginType != null and loginType != ''">#{loginType},</if>
|
||||||
<if test="userType != null and userType != ''">#{userType},</if>
|
<if test="userType != null">#{userType},</if>
|
||||||
<if test="isAdmin != null and isAdmin != ''">#{isAdmin},</if>
|
<if test="isAdmin != null and isAdmin != ''">#{isAdmin},</if>
|
||||||
<if test="roleId != null and roleId != ''">#{roleId},</if>
|
<if test="roleId != null and roleId != ''">#{roleId},</if>
|
||||||
<if test="accountStatus != null and accountStatus != ''">#{accountStatus},</if>
|
<if test="accountStatus != null">#{accountStatus},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</if>
|
</if>
|
||||||
<if test="type == 2">
|
<if test="type == 2">
|
||||||
|
|
@ -80,7 +80,12 @@
|
||||||
su.user_name AS userName,
|
su.user_name AS userName,
|
||||||
su.login_name AS loginName,
|
su.login_name AS loginName,
|
||||||
su.del_flag AS delFlag,
|
su.del_flag AS delFlag,
|
||||||
su.phone
|
su.phone,
|
||||||
|
su.org_id AS orgId,
|
||||||
|
su.login_type AS loginType,
|
||||||
|
su.user_type AS userType,
|
||||||
|
su.role_id AS roleId,
|
||||||
|
su.status AS accountStatus
|
||||||
FROM sys_user su
|
FROM sys_user su
|
||||||
WHERE user_id = #{userId}
|
WHERE user_id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue