|
|
@@ -622,9 +622,11 @@
|
|
|
jtbp.release_Date as releaseDate,
|
|
|
jtbp.advertisement,
|
|
|
ifnull(dct.dealCount,0) as dealCount,
|
|
|
+ ifnull(x.count,0) as interestCount,
|
|
|
u.identify_name as companyName,u.id as companyId
|
|
|
from jt_business_project jtbp
|
|
|
left join user u on u.id=jtbp.owner_id
|
|
|
+ left join (select project_id as id,count(*) as count from project_interest group by project_id)x on jtbp.id=x.id
|
|
|
left join (select sum(commodity_quantity) as dealCount ,commodity_id from jt_order_detail group by commodity_id) dct on jtbp.id=dct.commodity_id
|
|
|
<if test="topId!=null">
|
|
|
left join jt_business_category jtbc on jtbc.super_id =#{topId,jdbcType=VARCHAR}
|