|
@@ -132,8 +132,11 @@ public class SocialServiceImpl implements SocialServiceI {
|
132
|
132
|
*/
|
133
|
133
|
@Override
|
134
|
134
|
public List<TpAnnouncement> getAnnouncement(Integer communityId) {
|
135
|
|
- Integer Num=tpCarouselSettingMapper.getcarouselNum(Constant.ANNOUNCEMENT, communityId);
|
136
|
|
- List<TpAnnouncement> listAnnouncement=tpAnnouncementMapper.getAnnouncement(communityId,Num);
|
|
135
|
+ Integer num=tpCarouselSettingMapper.getcarouselNum(Constant.ANNOUNCEMENT, communityId);
|
|
136
|
+ if (null == num) {
|
|
137
|
+ num = 0;
|
|
138
|
+ }
|
|
139
|
+ List<TpAnnouncement> listAnnouncement=tpAnnouncementMapper.getAnnouncement(communityId,num);
|
137
|
140
|
return listAnnouncement;
|
138
|
141
|
}
|
139
|
142
|
|
|
@@ -614,8 +617,11 @@ public class SocialServiceImpl implements SocialServiceI {
|
614
|
617
|
|
615
|
618
|
@Override
|
616
|
619
|
public List<TpActivity> getActivity(Integer communityId) {
|
617
|
|
- Integer Num=tpCarouselSettingMapper.getcarouselNum(Constant.ACTIVITY, communityId);
|
618
|
|
- List<TpActivity> listActivity=tpActivityMapper.getActivity(communityId,Num);
|
|
620
|
+ Integer num = tpCarouselSettingMapper.getcarouselNum(Constant.ACTIVITY, communityId);
|
|
621
|
+ if (null == num) {
|
|
622
|
+ num = 0;
|
|
623
|
+ }
|
|
624
|
+ List<TpActivity> listActivity=tpActivityMapper.getActivity(communityId,num);
|
619
|
625
|
return listActivity;
|
620
|
626
|
}
|
621
|
627
|
|