Commit 88056b89 by Administrator

Merge branch 'fixbug/optimizeTypeNull' into 'master'

bug: [none] 分组类型为null时,提示空指针异常

See merge request rays/pcloud-book!793
parents e02a66de 9a2ab4f0
...@@ -868,19 +868,24 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -868,19 +868,24 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
Long classifyId = groupActivity4AppletDTO.getClassifyId(); Long classifyId = groupActivity4AppletDTO.getClassifyId();
String groupQrCode = groupQrcodeBiz.getChangeGroupQrCode(classifyId); String groupQrCode = groupQrcodeBiz.getChangeGroupQrCode(classifyId);
// 通过群二维码链接反查群ID 并补充信息 // 通过群二维码链接反查群ID 并补充信息
ClassifyQrcodeVO groupQrcodeInfo = groupQrcodeBiz.getGroupQrcodeInfo(groupQrCode, classifyId); if (!StringUtil.isEmpty(groupQrCode)){ //2020/06/30 add by pansy 第三方群为空
groupActivity4AppletDTO.setBookGroupQrcodeId(groupQrcodeInfo.getId()); ClassifyQrcodeVO groupQrcodeInfo = groupQrcodeBiz.getGroupQrcodeInfo(groupQrCode, classifyId);
groupActivity4AppletDTO.setGroupName(groupQrcodeInfo.getGroupName()); groupActivity4AppletDTO.setBookGroupQrcodeId(groupQrcodeInfo.getId());
groupActivity4AppletDTO.setGroupPic(groupQrcodeInfo.getQrcodeUrl()); groupActivity4AppletDTO.setGroupName(groupQrcodeInfo.getGroupName());
groupActivity4AppletDTO.setUserNumber(groupQrcodeInfo.getUserNumber()); groupActivity4AppletDTO.setGroupPic(groupQrcodeInfo.getQrcodeUrl());
//头像列表从缓存里取 groupActivity4AppletDTO.setUserNumber(groupQrcodeInfo.getUserNumber());
List<String> headUrlList = appletGroupSearchRecordBiz
.getHeadUrlList(groupActivity4AppletDTO.getUserNumber(), groupActivity4AppletDTO.getBookGroupQrcodeId()); //头像列表从缓存里取
groupActivity4AppletDTO.setHeadUrlList(headUrlList); List<String> headUrlList = appletGroupSearchRecordBiz
List<AppletGroupStatementDTO> statementDTOS = appletGroupSearchRecordBiz .getHeadUrlList(groupActivity4AppletDTO.getUserNumber(), groupActivity4AppletDTO.getBookGroupQrcodeId());
.getStatementList(groupActivity4AppletDTO.getUserNumber(), headUrlList,
groupActivity4AppletDTO.getBookGroupQrcodeId()); groupActivity4AppletDTO.setHeadUrlList(headUrlList);
groupActivity4AppletDTO.setStatementDTOList(statementDTOS);
List<AppletGroupStatementDTO> statementDTOS = appletGroupSearchRecordBiz
.getStatementList(groupActivity4AppletDTO.getUserNumber(), headUrlList,
groupActivity4AppletDTO.getBookGroupQrcodeId());
groupActivity4AppletDTO.setStatementDTOList(statementDTOS);
}
} }
} }
} }
......
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