|
@@ -228,10 +228,12 @@ public class ContentPlatformDatastatJob {
|
|
|
}
|
|
|
List<ContentPlatformGzhAccount> gzhAccounts = gzhAccountMap.get(account.getId());
|
|
|
int fansIncreaseCount = 0;
|
|
|
- for (ContentPlatformGzhAccount gzhAccount : gzhAccounts) {
|
|
|
- WxAccountDatastatVO wxAccountDatastatVO = wxAccountDatastatMap.get(gzhAccount.getExternalId());
|
|
|
- if (Objects.nonNull(wxAccountDatastatVO)) {
|
|
|
- fansIncreaseCount += wxAccountDatastatVO.getFansIncreaseCount();
|
|
|
+ if (CollectionUtils.isNotEmpty(gzhAccounts)) {
|
|
|
+ for (ContentPlatformGzhAccount gzhAccount : gzhAccounts) {
|
|
|
+ WxAccountDatastatVO wxAccountDatastatVO = wxAccountDatastatMap.get(gzhAccount.getExternalId());
|
|
|
+ if (Objects.nonNull(wxAccountDatastatVO)) {
|
|
|
+ fansIncreaseCount += wxAccountDatastatVO.getFansIncreaseCount();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
item.setFansIncreaseCount(fansIncreaseCount);
|
|
@@ -376,10 +378,12 @@ public class ContentPlatformDatastatJob {
|
|
|
}
|
|
|
List<ContentPlatformGzhAccount> gzhAccounts = gzhAccountMap.get(account.getId());
|
|
|
int fansIncreaseCount = 0;
|
|
|
- for (ContentPlatformGzhAccount gzhAccount : gzhAccounts) {
|
|
|
- WxAccountDatastatVO wxAccountDatastatVO = wxAccountDatastatMap.get(gzhAccount.getExternalId());
|
|
|
- if (Objects.nonNull(wxAccountDatastatVO)) {
|
|
|
- fansIncreaseCount += wxAccountDatastatVO.getFansIncreaseCount();
|
|
|
+ if (CollectionUtils.isNotEmpty(gzhAccounts)) {
|
|
|
+ for (ContentPlatformGzhAccount gzhAccount : gzhAccounts) {
|
|
|
+ WxAccountDatastatVO wxAccountDatastatVO = wxAccountDatastatMap.get(gzhAccount.getExternalId());
|
|
|
+ if (Objects.nonNull(wxAccountDatastatVO)) {
|
|
|
+ fansIncreaseCount += wxAccountDatastatVO.getFansIncreaseCount();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
item.setFansIncreaseCount(fansIncreaseCount);
|