Przeglądaj źródła

需求BUG修复

anderx 7 lat temu
rodzic
commit
29bd0892ac

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

@@ -73,7 +73,7 @@
 	GROUP by b.commodity_id) t on d.id=t.id
 	left join (select count(0) as y,demand_id from demand_interest
 		group by demand_id ) i on d.id=i.demand_id
-	left join (select demand_id from demand_interest where uid=#{uid,jdbcType=VARCHAR}) a on d.id=a.demand_id
+	left join (select demand_id from demand_interest where uid=#{uid,jdbcType=VARCHAR}  group by demand_id) a on d.id=a.demand_id
 	left join industry_category f on d.industry_category_a=f.id
   	left join industry_category f2 on d.industry_category_b=f2.id
 	where d.deleted_sign=0 and d.info_sources=1			
@@ -566,7 +566,7 @@
 	left join	industry_category g2 on d.industry_category_b=g2.id
 	left join (select count(0)  as countInterest ,demand_id from demand_interest 
 				group by demand_id) t on d.id=t.demand_id
-	left join (select demand_id from demand_interest where uid= #{uid,jdbcType=VARCHAR}) y on d.id=y.demand_id		
+	left join (select demand_id from demand_interest where uid= #{uid,jdbcType=VARCHAR} group by demand_id) y on d.id=y.demand_id		
 	where d.deleted_sign = 0 and d.audit_status=2 and d.info_sources=1  
 	<if test="employerId != null">
 	and d.employer_id = #{employerId, jdbcType=VARCHAR}