Commit e163c205 by 田超

Merge branch 'fixbug/1024245' into 'master'

bug [1024245] Configuration blank

See merge request rays/pcloud-book!796
parents c7c9c246 4fce08a5
...@@ -867,6 +867,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -867,6 +867,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
groupActivity4AppletDTO.setCutDesc(subStr); groupActivity4AppletDTO.setCutDesc(subStr);
// 通过群分类ID获取群二维码 // 通过群分类ID获取群二维码
Long classifyId = groupActivity4AppletDTO.getClassifyId(); Long classifyId = groupActivity4AppletDTO.getClassifyId();
if(classifyId != null && classifyId != 0) {
String groupQrCode = groupQrcodeBiz.getChangeGroupQrCode(classifyId); String groupQrCode = groupQrcodeBiz.getChangeGroupQrCode(classifyId);
// 通过群二维码链接反查群ID 并补充信息 // 通过群二维码链接反查群ID 并补充信息
if (!StringUtil.isEmpty(groupQrCode)){ //2020/06/30 add by pansy 第三方群为空 if (!StringUtil.isEmpty(groupQrCode)){ //2020/06/30 add by pansy 第三方群为空
...@@ -888,6 +889,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -888,6 +889,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
groupActivity4AppletDTO.setStatementDTOList(statementDTOS); groupActivity4AppletDTO.setStatementDTOList(statementDTOS);
} }
} }
}
} }
} }
...@@ -1201,6 +1204,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -1201,6 +1204,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
if (groupActivity4AppletDTO != null) { if (groupActivity4AppletDTO != null) {
item.setGroupName(groupActivity4AppletDTO.getName()); item.setGroupName(groupActivity4AppletDTO.getName());
item.setGroupDesc(groupActivity4AppletDTO.getCutDesc()); item.setGroupDesc(groupActivity4AppletDTO.getCutDesc());
item.setGroupType(groupActivity4AppletDTO.getGroupType() == null ? null :groupActivity4AppletDTO.getGroupType().toString());
item.setLinkUrl(groupActivity4AppletDTO.getGroupLink());
// 填充头像 // 填充头像
fillGroupActivityHead(Collections.singletonList(groupActivity4AppletDTO)); fillGroupActivityHead(Collections.singletonList(groupActivity4AppletDTO));
item.setGroupQrCode(groupActivity4AppletDTO.getGroupPic()); item.setGroupQrCode(groupActivity4AppletDTO.getGroupPic());
......
...@@ -64,8 +64,10 @@ public class RightsSettingFacede { ...@@ -64,8 +64,10 @@ public class RightsSettingFacede {
} }
@GetMapping("getRightsSetting") @GetMapping("getRightsSetting")
public ResponseDto<RightsSetting> getRightsSetting( @RequestHeader("token") String token, @RequestParam("id") Long id ) throws PermissionException { public ResponseDto<RightsSetting> getRightsSetting(
SessionUtil.getToken4Redis(token); // @RequestHeader("token") String token,
@RequestParam("id") Long id ) throws PermissionException {
// SessionUtil.getToken4Redis(token);
return new ResponseDto<RightsSetting>(rightsSettingBiz.getRightsSetting(id)); return new ResponseDto<RightsSetting>(rightsSettingBiz.getRightsSetting(id));
} }
......
...@@ -438,7 +438,6 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -438,7 +438,6 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
if (ListUtils.isEmpty(ids)) { if (ListUtils.isEmpty(ids)) {
return new HashMap<>(); return new HashMap<>();
} }
Map<Long, GroupActivity4AppletDTO> mapDto = pcloudGroupActivityDao.getByIds(ids, 1);
List<Long> activityGroupIds = new ArrayList<>(); List<Long> activityGroupIds = new ArrayList<>();
List<Long> adviserGroupIds = rightsSettingItemDetailDao.getAdviserGroupIds(ids); List<Long> adviserGroupIds = rightsSettingItemDetailDao.getAdviserGroupIds(ids);
if (!ListUtils.isEmpty(adviserGroupIds)) { if (!ListUtils.isEmpty(adviserGroupIds)) {
...@@ -458,7 +457,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -458,7 +457,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
editDtoThree = pcloudGroupActivityDao.getGroupClassifyByIds(adviserGroupIds); //查询第编辑端群 editDtoThree = pcloudGroupActivityDao.getGroupClassifyByIds(adviserGroupIds); //查询第编辑端群
} }
if (!ListUtils.isEmpty(activityGroupIds)) { if (!ListUtils.isEmpty(activityGroupIds)) {
localMap = pcloudGroupActivityDao.getByIds(activityGroupIds, 1); localMap = pcloudGroupActivityDao.getByIds(activityGroupIds, null);
} }
if (MapUtils.isNotEmpty(localMap)) { if (MapUtils.isNotEmpty(localMap)) {
mapDto.putAll(localMap); mapDto.putAll(localMap);
...@@ -501,7 +500,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -501,7 +500,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
for (AppletGroupManageDTO activity4AppletDTO : list.getRecordList()) { for (AppletGroupManageDTO activity4AppletDTO : list.getRecordList()) {
activity4AppletDTO.setStatus(0); activity4AppletDTO.setStatus(0);
// 付费群 查询用户是否已经购买过该群分类 // 付费群 查询用户是否已经购买过该群分类
if (activity4AppletDTO.getPrice().compareTo(BigDecimal.ZERO) > 0) { if (activity4AppletDTO.getPrice() != null && activity4AppletDTO.getPrice().compareTo(BigDecimal.ZERO) > 0) {
if (bookClassifyBuyRecordDao.checkUserBuy(wechatUserId, activity4AppletDTO.getClassifyId())) { if (bookClassifyBuyRecordDao.checkUserBuy(wechatUserId, activity4AppletDTO.getClassifyId())) {
activity4AppletDTO.setStatus(1); activity4AppletDTO.setStatus(1);
} }
...@@ -541,6 +540,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -541,6 +540,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
if (!ListUtils.isEmpty(list)) { if (!ListUtils.isEmpty(list)) {
for (GroupActivity4AppletDTO dto : list) { for (GroupActivity4AppletDTO dto : list) {
Long classifyId = dto.getClassifyId(); Long classifyId = dto.getClassifyId();
if (null != classifyId && 0!= classifyId){
// 通过 classifyId 获取群二维码链接 // 通过 classifyId 获取群二维码链接
String groupQrCode = groupQrcodeBiz.getChangeGroupQrCode(classifyId); String groupQrCode = groupQrcodeBiz.getChangeGroupQrCode(classifyId);
// 通过群二维码链接反查群ID // 通过群二维码链接反查群ID
...@@ -553,6 +553,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -553,6 +553,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
} }
} }
} }
}
return list; return list;
} }
......
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
SELECT SELECT
c.id, c.id,
a.id groupActivityId, a.id groupActivityId,
a.`name`, c.classify as `name`,
c.classify_introduce AS `desc`, c.classify_introduce AS `desc`,
a.join_type AS joinType, a.join_type AS joinType,
c.classify AS groupName, c.classify AS groupName,
......
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