|
|
@@ -1188,12 +1188,14 @@ order by release_date desc limit #{0}
|
|
|
where di.uid=#{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<select id="MyCollectionDemandList" resultType="com.goafanti.common.bo.MyCollection">
|
|
|
- select a.id,a.name,a.problem_des as introduction,b.name as fieidA,
|
|
|
+ select a.id,a.name,a.problem_des as introduction,b.name as fieidA,ifnull(c.x,0) as interestCount,
|
|
|
a.is_urgent as textA
|
|
|
from demand a
|
|
|
left join demand_interest di on di.demand_id=a.id
|
|
|
left join industry_category b on a.industry_category_a= b.id
|
|
|
- where a.deleted_sign=0
|
|
|
+ left join (select demand_id,count(*) as x from demand_interest GROUP by demand_id) c
|
|
|
+ on c.demand_id=a.id
|
|
|
+ where a.deleted_sign=0
|
|
|
and di.uid= #{uid,jdbcType=VARCHAR}
|
|
|
order by di.create_time desc
|
|
|
<if test="page_sql !=null">
|