Browse Source

修改sql

lidongyang 5 years ago
parent
commit
650ac9558e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/sqlmaps/RequirementMapper.xml

+ 1 - 1
src/main/resources/sqlmaps/RequirementMapper.xml

@@ -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