Commit dedd3028 by Administrator

Merge branch 'fixbug/1024701' into 'master'

bug: [1024701] 点击已经被删除的群提示报错

See merge request rays/pcloud-book!857
parents 180ba1d0 74940dd1
...@@ -990,6 +990,9 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz { ...@@ -990,6 +990,9 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
@Override @Override
public ClassifyQrcodeVO getGroupQrcodeInfo(String groupQrCode, Long classifyId) { public ClassifyQrcodeVO getGroupQrcodeInfo(String groupQrCode, Long classifyId) {
List<ClassifyQrcodeVO> qrcodeVOS = groupQrcodeDao.getQrcodeByClassifyId(classifyId); List<ClassifyQrcodeVO> qrcodeVOS = groupQrcodeDao.getQrcodeByClassifyId(classifyId);
if (ListUtils.isEmpty(qrcodeVOS)){
return null;
}
for (ClassifyQrcodeVO qrcodeVO : qrcodeVOS) { for (ClassifyQrcodeVO qrcodeVO : qrcodeVOS) {
if (!StringUtil.isEmpty(groupQrCode) && qrcodeVO.getQrcodeUrl().equals(groupQrCode)){ if (!StringUtil.isEmpty(groupQrCode) && qrcodeVO.getQrcodeUrl().equals(groupQrCode)){
......
...@@ -807,7 +807,9 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -807,7 +807,9 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
if (!MapUtils.isEmpty(nowItemMap)) { if (!MapUtils.isEmpty(nowItemMap)) {
// 填充应用、作品、社群、资讯 // 填充应用、作品、社群、资讯
for (RightsSettingTitle rightsSettingTitle : rightsSettingTitles) { for (RightsSettingTitle rightsSettingTitle : rightsSettingTitles) {
rightsSettingTitle.setRightsSettingItemList(nowItemMap.get(rightsSettingTitle.getId())); if (!ListUtils.isEmpty(nowItemMap.get(rightsSettingTitle.getId()))){ //add py pansy 删除的群不显示
rightsSettingTitle.setRightsSettingItemList(nowItemMap.get(rightsSettingTitle.getId()));
}
} }
} }
fillProductAndApp(nowItems); fillProductAndApp(nowItems);
...@@ -1978,6 +1980,9 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -1978,6 +1980,9 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
} }
//移除不能购买的应用或作品 //移除不能购买的应用或作品
removeCanNotBuy(nowItems); removeCanNotBuy(nowItems);
fillProductAndApp(nowItems);
for (RightsNowItem nowItem : nowItems) { for (RightsNowItem nowItem : nowItems) {
if (itemType.value.equals(nowItem.getType())) { if (itemType.value.equals(nowItem.getType())) {
items.add(nowItem); items.add(nowItem);
......
...@@ -573,17 +573,19 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -573,17 +573,19 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
String groupQrCode = groupQrcodeBiz.getChangeGroupQrCode(activity4AppletDTO.getClassifyId()); String groupQrCode = groupQrcodeBiz.getChangeGroupQrCode(activity4AppletDTO.getClassifyId());
// 通过群二维码链接反查群ID // 通过群二维码链接反查群ID
if (activity4AppletDTO.getClassifyId() != null && activity4AppletDTO.getClassifyId() != 0){ if (activity4AppletDTO.getGroupType() == null|| activity4AppletDTO.getGroupType()!=1){
ClassifyQrcodeVO groupQrcodeInfo = groupQrcodeBiz ClassifyQrcodeVO groupQrcodeInfo = groupQrcodeBiz
.getGroupQrcodeInfo(groupQrCode, activity4AppletDTO.getClassifyId()); .getGroupQrcodeInfo(groupQrCode, activity4AppletDTO.getClassifyId());
//头像、对话 //头像、对话
List<String> headUrlList = appletGroupSearchRecordBiz if(groupQrcodeInfo != null && groupQrcodeInfo.getId()!= null){
.getHeadUrlList(groupQrcodeInfo.getUserNumber(), groupQrcodeInfo.getId()); List<String> headUrlList = appletGroupSearchRecordBiz
activity4AppletDTO.setHeadUrlList(headUrlList); .getHeadUrlList(groupQrcodeInfo.getUserNumber(), groupQrcodeInfo.getId());
List<AppletGroupStatementDTO> statementDTOS = appletGroupSearchRecordBiz activity4AppletDTO.setHeadUrlList(headUrlList);
.getStatementList(groupQrcodeInfo.getUserNumber(), headUrlList, groupQrcodeInfo.getId()); List<AppletGroupStatementDTO> statementDTOS = appletGroupSearchRecordBiz
activity4AppletDTO.setStatementDTOList(statementDTOS); .getStatementList(groupQrcodeInfo.getUserNumber(), headUrlList, groupQrcodeInfo.getId());
activity4AppletDTO.setStatementDTOList(statementDTOS);
}
}else{ }else{
//头像、对话 //头像、对话
List<String> headUrlList = appletGroupSearchRecordBiz List<String> headUrlList = appletGroupSearchRecordBiz
......
...@@ -227,10 +227,11 @@ ...@@ -227,10 +227,11 @@
FROM FROM
pcloud_group_activity a pcloud_group_activity a
LEFT JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0 LEFT JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
LEFT JOIN book_group_qrcode b ON b.classify_id = c.id AND b.is_delete = 0 LEFT JOIN book_group_qrcode b ON b.classify_id = c.id
LEFT JOIN book_group d ON c.book_group_id = d.id LEFT JOIN book_group d ON c.book_group_id = d.id
WHERE WHERE
a.is_delete = 0 AND a.is_show = 1 a.is_delete = 0 AND a.is_show = 1 AND IFNULL(b.is_delete,0) = 0
and !(c.id is null and a.group_type!=1)
<if test="firstClassify != null"> <if test="firstClassify != null">
and a.first_classify = #{firstClassify} and a.first_classify = #{firstClassify}
</if> </if>
...@@ -301,7 +302,7 @@ ...@@ -301,7 +302,7 @@
LEFT JOIN pcloud_group_activity a ON a.book_group_classify_id = c.id LEFT JOIN pcloud_group_activity a ON a.book_group_classify_id = c.id
LEFT JOIN book_group_qrcode b on b.classify_id = c.id LEFT JOIN book_group_qrcode b on b.classify_id = c.id
where where
b.is_delete = 0 IFNULL(b.is_delete,0) = 0
and and
c.id IN c.id IN
<foreach collection="list" item="item" open="(" close=")" separator=","> <foreach collection="list" item="item" open="(" close=")" separator=",">
...@@ -333,11 +334,12 @@ ...@@ -333,11 +334,12 @@
'GROUP' as serveType 'GROUP' as serveType
FROM FROM
pcloud_group_activity a pcloud_group_activity a
left JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0 left JOIN book_group_classify c ON a.book_group_classify_id = c.id
left JOIN book_group_qrcode b on b.classify_id = c.id AND b.is_delete = 0 left JOIN book_group_qrcode b on b.classify_id = c.id
left JOIN book_group d ON c.book_group_id = d.id left JOIN book_group d ON c.book_group_id = d.id
WHERE WHERE
a.is_delete = 0 a.is_delete = 0 AND IFNULL(b.is_delete,0) = 0
AND IFNULL(c.is_delete, 0) = 0
<if test="isShow != null"> <if test="isShow != null">
AND a.is_show = #{isShow} AND a.is_show = #{isShow}
</if> </if>
...@@ -401,9 +403,9 @@ ...@@ -401,9 +403,9 @@
FROM FROM
pcloud_group_activity a pcloud_group_activity a
INNER JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0 INNER JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
INNER JOIN book_group_qrcode b on c.id = b.classify_id AND b.is_delete = 0 INNER JOIN book_group_qrcode b on c.id = b.classify_id
WHERE WHERE
a.is_delete = 0 AND a.is_show = 1 a.is_delete = 0 AND a.is_show = 1 AND IFNULL(b.is_delete,0) = 0
<if test="firstClassify != null"> <if test="firstClassify != null">
and a.first_classify = #{firstClassify} and a.first_classify = #{firstClassify}
</if> </if>
...@@ -557,10 +559,11 @@ ...@@ -557,10 +559,11 @@
FROM FROM
pcloud_group_activity a pcloud_group_activity a
LEFT JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0 LEFT JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
LEFT JOIN book_group_qrcode b on c.id = b.classify_id AND b.is_delete = 0 LEFT JOIN book_group_qrcode b on c.id = b.classify_id
LEFT JOIN book_group g ON g.id = c.book_group_id LEFT JOIN book_group g ON g.id = c.book_group_id
WHERE WHERE
a.is_delete = 0 AND a.is_show = 1 a.is_delete = 0 AND a.is_show = 1 AND IFNULL(b.is_delete,0) = 0
and !(c.id is null and a.group_type!=1)
<if test="firstClassify != null"> <if test="firstClassify != null">
and a.first_classify = #{firstClassify} and a.first_classify = #{firstClassify}
</if> </if>
...@@ -600,10 +603,10 @@ ...@@ -600,10 +603,10 @@
FROM FROM
pcloud_group_activity a pcloud_group_activity a
INNER JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0 INNER JOIN book_group_classify c ON a.book_group_classify_id = c.id AND c.is_delete = 0
INNER JOIN book_group_qrcode b on c.id = b.classify_id AND b.is_delete = 0 INNER JOIN book_group_qrcode b on c.id = b.classify_id
LEFT JOIN book_group g ON g.id = c.book_group_id LEFT JOIN book_group g ON g.id = c.book_group_id
WHERE WHERE
a.is_delete = 0 AND a.is_show = 1 a.is_delete = 0 AND a.is_show = 1 AND IFNULL(b.is_delete,0) = 0
and c.city_code = #{cityCode} and c.city_code = #{cityCode}
and a.group_type != 1 and a.group_type != 1
GROUP BY a.id GROUP BY a.id
......
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