|
|
@@ -870,11 +870,12 @@ public class DemandServiceImpl extends BaseMybatisDao<DemandMapper> implements D
|
|
|
if (StringUtils.isNotBlank(TokenManager.getUserId())) {
|
|
|
params.put("uid", TokenManager.getUserId());
|
|
|
}
|
|
|
+
|
|
|
if (type==InterestType.POLICY.getCode()) {
|
|
|
Pagination<ObjectInterestListBo> p=(Pagination<ObjectInterestListBo>) findPage("findAppNewsInterestByPage", "findAppNewsInterestCount", params, pNo, pSize);
|
|
|
List<ObjectInterestListBo> l=(List<ObjectInterestListBo>) p.getList();
|
|
|
for (ObjectInterestListBo o : l) {
|
|
|
- int i=newsInterestMapper.countInterest(o.getUid());
|
|
|
+ int i=newsInterestMapper.countInterest(o.getId());
|
|
|
o.setCountInterest(String.valueOf(i));
|
|
|
o.setType(type);
|
|
|
}
|
|
|
@@ -884,7 +885,7 @@ public class DemandServiceImpl extends BaseMybatisDao<DemandMapper> implements D
|
|
|
Pagination<ObjectInterestListBo> p=(Pagination<ObjectInterestListBo>) findPage("findAppUserInterestByPage", "findAppUserInterestCount", params, pNo, pSize);
|
|
|
List<ObjectInterestListBo> l=(List<ObjectInterestListBo>) p.getList();
|
|
|
for (ObjectInterestListBo o : l) {
|
|
|
- int i=userInterestMapper.countInterest(o.getUid());
|
|
|
+ int i=userInterestMapper.countInterest(o.getId());
|
|
|
o.setCountInterest(String.valueOf(i));
|
|
|
o.setType(type);
|
|
|
}
|
|
|
@@ -894,7 +895,7 @@ public class DemandServiceImpl extends BaseMybatisDao<DemandMapper> implements D
|
|
|
Pagination<ObjectInterestListBo> p=(Pagination<ObjectInterestListBo>) findPage("findAppDemandInterestByPage", "findAppDemandInterestCount", params, pNo, pSize);
|
|
|
List<ObjectInterestListBo> l=(List<ObjectInterestListBo>) p.getList();
|
|
|
for (ObjectInterestListBo o : l) {
|
|
|
- int i=demandInterestMapper.checkCount(o.getUid());
|
|
|
+ int i=demandInterestMapper.checkCount(o.getId());
|
|
|
o.setCountInterest(String.valueOf(i));
|
|
|
o.setType(type);
|
|
|
}
|
|
|
@@ -904,7 +905,7 @@ public class DemandServiceImpl extends BaseMybatisDao<DemandMapper> implements D
|
|
|
Pagination<ObjectInterestListBo> p=(Pagination<ObjectInterestListBo>) findPage("findAppAchievementInterestByPage", "findAppAchievementInterestCount", params, pNo, pSize);
|
|
|
List<ObjectInterestListBo> l=(List<ObjectInterestListBo>) p.getList();
|
|
|
for (ObjectInterestListBo o : l) {
|
|
|
- int i=achievementMapper.countInterest(o.getUid());
|
|
|
+ int i=achievementMapper.countInterest(o.getId());
|
|
|
o.setCountInterest(String.valueOf(i));
|
|
|
o.setType(type);
|
|
|
}
|