|
@@ -5,6 +5,7 @@
|
|
<mapper namespace="com.ruoyi.gas.mapper.GUserMapper">
|
|
<mapper namespace="com.ruoyi.gas.mapper.GUserMapper">
|
|
<resultMap type="com.ruoyi.gas.domain.GUser" id="GUserResult">
|
|
<resultMap type="com.ruoyi.gas.domain.GUser" id="GUserResult">
|
|
<result property="id" column="id"/>
|
|
<result property="id" column="id"/>
|
|
|
|
+ <result property="ranks" column="ranks"/>
|
|
<result property="name" column="name"/>
|
|
<result property="name" column="name"/>
|
|
<result property="jobNum" column="job_num"/>
|
|
<result property="jobNum" column="job_num"/>
|
|
<result property="password" column="password"/>
|
|
<result property="password" column="password"/>
|
|
@@ -20,10 +21,12 @@
|
|
</resultMap>
|
|
</resultMap>
|
|
<select id="getList" resultType="com.ruoyi.gas.domain.vo.GUserVo">
|
|
<select id="getList" resultType="com.ruoyi.gas.domain.vo.GUserVo">
|
|
select id as id,
|
|
select id as id,
|
|
|
|
+ b.post_id as ranks,
|
|
name as name,
|
|
name as name,
|
|
job_num as jobNum,
|
|
job_num as jobNum,
|
|
phone as phone
|
|
phone as phone
|
|
from g_user a
|
|
from g_user a
|
|
|
|
+ left join sys_post b on b.remark='ranks' and a.ranks = b.post_id
|
|
<where>
|
|
<where>
|
|
a.del_flag = '0'
|
|
a.del_flag = '0'
|
|
<if test="p.name != null and p.name != ''">
|
|
<if test="p.name != null and p.name != ''">
|
|
@@ -32,6 +35,9 @@
|
|
<if test="p.jobNum != null and p.jobNum != ''">
|
|
<if test="p.jobNum != null and p.jobNum != ''">
|
|
and a.job_num LIKE CONCAT('%',#{p.jobNum},'%')
|
|
and a.job_num LIKE CONCAT('%',#{p.jobNum},'%')
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="p.ranks != null and p.ranks != ''">
|
|
|
|
+ and a.ranks = #{p.ranks}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|