소스 검색

修复Bug

weiximei 6 년 전
부모
커밋
3ef5289e19

+ 6
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpAnnouncementMapper.java 파일 보기

23
 	
23
 	
24
 	List<TpAnnouncement> getAnnouncements(@Param("communityId") Integer communityId,@Param("title") String title);
24
 	List<TpAnnouncement> getAnnouncements(@Param("communityId") Integer communityId,@Param("title") String title);
25
 
25
 
26
+    /**
27
+     * 公告轮播图
28
+     * @param communityId
29
+     * @param sum
30
+     * @return
31
+     */
26
     List<TpAnnouncement> getAnnouncement(@Param("communityId")Integer communityId, @Param("sum")Integer sum);
32
     List<TpAnnouncement> getAnnouncement(@Param("communityId")Integer communityId, @Param("sum")Integer sum);
27
 }
33
 }

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpActivityMapper.xml 파일 보기

278
     select
278
     select
279
     <include refid="Base_Column_List" />
279
     <include refid="Base_Column_List" />
280
     from tp_activity
280
     from tp_activity
281
-    where community_id = #{communityId,jdbcType=INTEGER}  and status=1 limit  #{num,jdbcType=INTEGER}
281
+    where community_id = #{communityId,jdbcType=INTEGER}  and status=1  order by create_date DESC limit  #{num,jdbcType=INTEGER}
282
   </select>
282
   </select>
283
 </mapper>
283
 </mapper>

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpAnnouncementMapper.xml 파일 보기

183
     select
183
     select
184
     <include refid="Base_Column_List" />
184
     <include refid="Base_Column_List" />
185
     from tp_announcement
185
     from tp_announcement
186
-    where community_id = #{communityId,jdbcType=INTEGER}  and status=1 limit  #{sum,jdbcType=INTEGER}
186
+    where community_id = #{communityId,jdbcType=INTEGER}  and status=1  order by create_date DESC limit  #{sum,jdbcType=INTEGER}
187
   </select>
187
   </select>
188
 </mapper>
188
 </mapper>