Browse Source

党群话题排序bug修复

feature/syp_points
songyunpeng 5 years ago
parent
commit
53cfadd76e
  1. 4
      esua-epdc/epdc-module/epdc-party-group/epdc-party-group-server/src/main/resources/mapper/PartyTopicDao.xml

4
esua-epdc/epdc-module/epdc-party-group/epdc-party-group-server/src/main/resources/mapper/PartyTopicDao.xml

@ -179,7 +179,7 @@
left join epdc_party_topic_user_attitude t1 on t.ID = t1.PARTY_TOPIC_ID and t1.DEL_FLAG='0' and t1.USER_ID = #{userId} left join epdc_party_topic_user_attitude t1 on t.ID = t1.PARTY_TOPIC_ID and t1.DEL_FLAG='0' and t1.USER_ID = #{userId}
</if> </if>
left join epdc_party_topic_img t2 on t.ID = t2.REFERENCE_ID and t2.DEL_FLAG='0' left join epdc_party_topic_img t2 on t.ID = t2.REFERENCE_ID and t2.DEL_FLAG='0'
left join (select ID,USERNAME,USER_FACE,PARTY_MEMBER,CONTENT,TOPIC_ID,DEL_FLAG from epdc_party_topic_comment order by CREATED_TIME desc) t3 on t.ID = t3.TOPIC_ID and t3.DEL_FLAG='0' left join (select ID,USERNAME,USER_FACE,PARTY_MEMBER,CONTENT,TOPIC_ID,DEL_FLAG,CREATED_TIME from epdc_party_topic_comment order by CREATED_TIME desc) t3 on t.ID = t3.TOPIC_ID and t3.DEL_FLAG='0'
where where
t.ID in (select tmp.ID from (SELECT t.ID in (select tmp.ID from (SELECT
t1.ID t1.ID
@ -199,7 +199,7 @@
ORDER BY ORDER BY
t1.CREATED_TIME DESC t1.CREATED_TIME DESC
LIMIT #{pageIndex},#{pageSize}) tmp) LIMIT #{pageIndex},#{pageSize}) tmp)
order by t.CREATED_TIME desc order by t.CREATED_TIME desc,t3.CREATED_TIME
</select> </select>
<update id="updateCommentNum"> <update id="updateCommentNum">

Loading…
Cancel
Save