岗位管理操作人中文显示

This commit is contained in:
庄新伟
2022-03-16 16:28:41 +08:00
parent 0f9d226a23
commit b20950e6e4
3 changed files with 21 additions and 3 deletions
@@ -13,6 +13,9 @@
<result property="id" column="rid"/>
<result property="name" column="r_name"/>
</collection>
<collection property="tsUser" ofType="com.adc.da.slrs.sarUser.entity.TsUser">
<result property="uname" column="UNAME"/>
</collection>
</resultMap>
<select id="getRole" resultType="com.adc.da.slrs.sarRole.entity.TsRole">
select * from ts_role r
@@ -22,11 +25,12 @@
</select>
<select id="selectPositionAndRole" resultMap="PositionAndRole">
select p.*,r.id rid,r.name r_name from ts_position p
select p.*,r.id rid,r.name r_name ,tu.UNAME as UNAME from ts_position p
left join ts_position_role pr
on p.id=pr.position_id
left join ts_role r
on pr.role_id=r.id
left join ts_user tu on tu.account = p.operator
<where>
<if test="name!=null">
p.name like concat(concat('%',#{name}),'%')