|
@@ -418,7 +418,7 @@
|
|
|
<if test="rqrmntName !=null and rqrmntName!=''">
|
|
|
<bind name="rqrmntNameLike" value="'%'+rqrmntName+'%'"></bind>
|
|
|
</if>
|
|
|
- SELECT DISTINCT(r.id) AS rqrmnt_id,r.platform_type,r.rqrmnt_name,r.rqrmnt_summary,r.publish_at,r.rqrmnt_state,r.view_times,
|
|
|
+ SELECT r.id AS rqrmnt_id,r.platform_type,r.rqrmnt_name,r.rqrmnt_summary,r.publish_at,r.rqrmnt_state,r.view_times,
|
|
|
(SELECT COUNT(*) FROM requirement_follow rfw WHERE rfw.rqrmnt_id=r.id) AS follow_times,a.id AS admin_id, a.username,s.id AS sector_id,s.sector_name,r.rqrmnt_state
|
|
|
FROM requirement r
|
|
|
LEFT JOIN requirement_follow rf ON rf.rqrmnt_id=r.id
|