|
|
@@ -576,7 +576,7 @@
|
|
|
from jt_business_project jtbp left join `user` u on jtbp.owner_id=u.id
|
|
|
left join jt_business_category jtbc on jtbc.id = jtbp.category_id
|
|
|
left join (select project_id,count(*) as count from project_interest group by project_id) p on jtbp.id=p.project_id
|
|
|
- left join (select project_id from project_interest where uid= #{uid,jdbcType=VARCHAR} ) x on jtbp.id=x.project_id
|
|
|
+ left join (select project_id from project_interest <if test="uid != null"> where uid= #{uid,jdbcType=VARCHAR} </if>) x on jtbp.id=x.project_id
|
|
|
where jtbp.id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|