岗位管理操作人中文显示
This commit is contained in:
@@ -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}),'%')
|
||||
|
||||
Reference in New Issue
Block a user