|
@@ -182,7 +182,8 @@
|
|
|
<result property="portrait" column="avatar_"/>
|
|
|
</resultMap>
|
|
|
<select id="getBasic" resultMap="ImUserModel">
|
|
|
- select * from sys_user where id_ = #{userId} LIMIT 1
|
|
|
+ select CASE WHEN real_name_ IS NULL THEN username_ ELSE real_name_ END username_,id_,avatar_
|
|
|
+ from sys_user where id_ = #{userId} LIMIT 1
|
|
|
</select>
|
|
|
|
|
|
<select id="queryByStatus" resultMap="SysUser">
|