Joburgess преди 4 години
родител
ревизия
46a6f7e399
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/SysSuggestionMapper.xml

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/SysSuggestionMapper.xml

@@ -88,7 +88,7 @@
 
     <!-- 分页查询 -->
     <select id="queryPage" resultMap="SysSuggestion" parameterType="map">
-        SELECT ss.*,CASE WHEN su.real_name_ IS NULL THEN su.username_ ELSE su.real_name_ END username_ FROM sys_suggestion ss
+        SELECT ss.*,CASE WHEN ss.client_type_='STUDENT' THEN su.username_ ELSE su.real_name_ END username_ FROM sys_suggestion ss
         LEFT JOIN sys_user su ON su.id_ = ss.user_id_
         <include refid="queryCondition" />
         ORDER BY ss.id_ DESC