Commit ba1fe81a by 田超

Merge branch 'fixbug/errornull' into 'master'

bug:[none]空指针异常

See merge request rays/pcloud-book!1418
parents 55641f75 9037b8dd
...@@ -303,7 +303,7 @@ public class AnswerSubscribeBizImpl implements AnswerSubscribeBiz { ...@@ -303,7 +303,7 @@ public class AnswerSubscribeBizImpl implements AnswerSubscribeBiz {
String openId = readerConsr.getOpenIdByWechatUserIdAndOfficialAccountsId(wechatUserId, accountSettingId); String openId = readerConsr.getOpenIdByWechatUserIdAndOfficialAccountsId(wechatUserId, accountSettingId);
WechatUserOfficialAccounts accounts = readerConsr.getOfficialAccounts(accountSettingId, openId, wechatUserId); WechatUserOfficialAccounts accounts = readerConsr.getOfficialAccounts(accountSettingId, openId, wechatUserId);
Boolean isSubscribe = false; Boolean isSubscribe = false;
if (null != accounts) { if (null != accounts && null != accounts.getIsSubscribe()) {
isSubscribe = accounts.getIsSubscribe() == 1 ? true : false; isSubscribe = accounts.getIsSubscribe() == 1 ? true : false;
} }
GroupQrcodeVO groupQrcodeVO = qrcodeSceneConsr.getSubscribeQrcode(accountSettingId); GroupQrcodeVO groupQrcodeVO = qrcodeSceneConsr.getSubscribeQrcode(accountSettingId);
......
...@@ -409,11 +409,15 @@ public class AppletRecordAggrStatisBizImpl implements AppletRecordAggrStatisBiz ...@@ -409,11 +409,15 @@ public class AppletRecordAggrStatisBizImpl implements AppletRecordAggrStatisBiz
//年龄段下所有年级 //年龄段下所有年级
List<Long> gradeLabelIds = readerConsr.getUserGradeIdByParentId(parentLabel); List<Long> gradeLabelIds = readerConsr.getUserGradeIdByParentId(parentLabel);
//年级排序,当前年级在前 //年级排序,当前年级在前
List<Long> orderFieldIds = new ArrayList<>(Arrays.asList(gradeLabelId)); List<Long> orderFieldIds = new ArrayList<>();
if (!ListUtils.isEmpty(gradeLabelIds) && gradeLabelIds.contains(gradeLabelId)) { if (null != gradeLabelId) {
orderFieldIds.add(gradeLabelId);
}
if (!ListUtils.isEmpty(gradeLabelIds) && null != gradeLabelId && gradeLabelIds.contains(gradeLabelId)) {
gradeLabelIds.remove(gradeLabelId); gradeLabelIds.remove(gradeLabelId);
} }
orderFieldIds.addAll(gradeLabelIds); orderFieldIds.addAll(gradeLabelIds);
countList = appletRecordSevenDayDao.getResourceByGrade4H5(sourceType, orderFieldIds, maxCount, sourceFrom); countList = appletRecordSevenDayDao.getResourceByGrade4H5(sourceType, orderFieldIds, maxCount, sourceFrom);
} }
if (ListUtils.isEmpty(countList)) { if (ListUtils.isEmpty(countList)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment