|
@@ -1105,12 +1105,15 @@
|
|
|
and t.uid = #{uid,jdbcType=VARCHAR}
|
|
and t.uid = #{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getAppHomeRecommended" resultType="com.goafanti.user.bo.UserIdentityRecommended">
|
|
<select id="getAppHomeRecommended" resultType="com.goafanti.user.bo.UserIdentityRecommended">
|
|
|
- select
|
|
|
|
|
|
|
+ select
|
|
|
ep.expert_id as id, u.identify_name as name, ui.work_unit as workUnit, u.introduction as introduction,
|
|
ep.expert_id as id, u.identify_name as name, ui.work_unit as workUnit, u.introduction as introduction,
|
|
|
- u.head_portrait_url as headPortraitUrl
|
|
|
|
|
|
|
+ u.head_portrait_url as headPortraitUrl,ifnull(o.x,0) as reservationCount
|
|
|
from expert_publish ep
|
|
from expert_publish ep
|
|
|
left join user_identity ui on ep.expert_id = ui.uid
|
|
left join user_identity ui on ep.expert_id = ui.uid
|
|
|
left join user u on ep.expert_id = u.id
|
|
left join user u on ep.expert_id = u.id
|
|
|
|
|
+ left join (select count(0) as x,seller_id from t_order
|
|
|
|
|
+ where order_status != 4
|
|
|
|
|
+ group by seller_id ) o on ep.expert_id=o.seller_id
|
|
|
where
|
|
where
|
|
|
ep.publish_client = '1'
|
|
ep.publish_client = '1'
|
|
|
and ep.publish_page = 'W01'
|
|
and ep.publish_page = 'W01'
|