Browse Source

专家列表显示BUG修改

anderx 8 years ago
parent
commit
02e7b826e6

+ 2 - 1
src/main/java/com/goafanti/common/mapper/ExpertPublishMapper.xml

@@ -364,10 +364,11 @@
     where id = #{id,jdbcType=VARCHAR}
   </update>
   <select id="findExpertPublishByPage" parameterType="String" resultType="com.goafanti.user.bo.ExpertPublishBo">
-  	select ep.id,ep.expert_id as expertId, ui.industry,ui.username as name,ep.publish_platform as publishPlatform,bi.platform_name as platformName,ep.publish_client as  publishClient,
+  	select ep.id,ep.expert_id as expertId, ui.industry,u.identify_name as name,ep.publish_platform as publishPlatform,bi.platform_name as platformName,ep.publish_client as  publishClient,
 		ep.publish_page as publishPage,ep.if_top as ifTop,ep.show_number as showNumber,ep.top_number as topNumber,ep.publisher,ad.name as publisherName,ep.publish_time as publishTime
 from expert_publish ep 
 left join user_identity ui on ep.expert_id=ui.uid
+left join user u on ep.expert_id=u.id
 left join admin ad on ep.publisher=ad.id
 left join branch_information bi on ep.publish_platform=bi.id
 where 1=1

+ 1 - 1
src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml

@@ -906,7 +906,7 @@
 	
  <select id="findSearchSubscriberListByPage" parameterType="String" resultType="com.goafanti.portal.bo.UserSubscriberListBo">
 		SELECT
-			u.id as uid, ui.username, u.number,
+			u.id as uid, u.identify_name as username, u.number,
 			ui.id as identityId, ui.province,
 			u.head_portrait_url as personPortraitUrl,
 			u.introduction as achievementNum,