|
@@ -48,6 +48,23 @@
|
|
|
id, account, username, password, mobile, role_type, company_id, parent_id, sex, role_name, work_state, is_disable, indate, head_imgurl, team_name, subordinate_type, openid
|
|
|
</sql>
|
|
|
|
|
|
+ <select id="selsctUsersByUids" resultMap="BaseResultMapVO">
|
|
|
+ SELECT
|
|
|
+ u.id id, u.username username, u.mobile mobile, u.company_id company_id, c.`company_name` company_name,
|
|
|
+ u.parent_id parent_id, u.work_state work_state, u.is_disable is_disable,
|
|
|
+ u.indate indate, u.head_imgurl head_imgurl, u.team_name team_name, u.subordinate_type subordinate_type
|
|
|
+ FROM
|
|
|
+ tb_user AS u
|
|
|
+ LEFT JOIN tb_company c
|
|
|
+ ON u.company_id = c.`id`
|
|
|
+ <where>
|
|
|
+ <foreach collection="list" separator="," close=")" item="item" open="u.id in (" index="index">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ and u.id != #{id}
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectListByCondition" resultMap="BaseResultMapVO">
|
|
|
SELECT
|
|
|
u.id id, u.account account, u.username username, u.password password, u.mobile mobile, u.role_type role_type, u.company_id company_id, c.`company_name` company_name,
|