|
@@ -206,8 +206,11 @@ public class SocialServiceImpl implements SocialServiceI {
|
206
|
206
|
activity.setViewCount(allViewNum);
|
207
|
207
|
tpActivityMapper.updateByPrimaryKeySelective(activity);
|
208
|
208
|
}
|
209
|
|
-
|
210
|
|
- TpActivity tpActivity = tpActivityMapper.selectByPrimaryKey(activityId, communityId);
|
|
209
|
+ TpActivity tpActivity=new TpActivity();
|
|
210
|
+ tpActivity = tpActivityMapper.selectByPrimaryKey(activityId, communityId);
|
|
211
|
+ if(null == tpActivity){
|
|
212
|
+ tpActivity = tpActivityMapper.selectActivity(activityId);
|
|
213
|
+ }
|
211
|
214
|
TpUser tpUser = tpUserMapper.selectByPrimaryKey(tpActivity.getCreateUser());
|
212
|
215
|
if (null != tpUser) {
|
213
|
216
|
tpActivity.setUserName(tpUser.getUserName());
|
|
@@ -620,7 +623,7 @@ public class SocialServiceImpl implements SocialServiceI {
|
620
|
623
|
ResponseBean responseBean = new ResponseBean();
|
621
|
624
|
Map<String, Object> parameter = Maps.newHashMap();
|
622
|
625
|
Page<TpActivity> pageList = PageHelper.startPage(pageNum, paeSize);
|
623
|
|
- List<TpActivity> tpActivity = tpActivityMapper.selecttpActivity(userElement.getId(), userElement.getCommunityId());
|
|
626
|
+ List<TpActivity> tpActivity = tpActivityMapper.selecttpActivity(userElement.getUserVerifyId(), userElement.getCommunityId());
|
624
|
627
|
parameter.put("list", tpActivity);
|
625
|
628
|
parameter.put("total", pageList.getTotal());
|
626
|
629
|
responseBean.addSuccess(parameter);
|