瀏覽代碼

修复Bug

weiximei 6 年之前
父節點
當前提交
3ef5289e19

+ 6
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpAnnouncementMapper.java 查看文件

@@ -23,5 +23,11 @@ public interface TpAnnouncementMapper {
23 23
 	
24 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 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,6 +278,6 @@
278 278
     select
279 279
     <include refid="Base_Column_List" />
280 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 282
   </select>
283 283
 </mapper>

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpAnnouncementMapper.xml 查看文件

@@ -183,6 +183,6 @@
183 183
     select
184 184
     <include refid="Base_Column_List" />
185 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 187
   </select>
188 188
 </mapper>