Browse Source

链接查看活动详情接口修改

dev_shibei_match
yinzuomei 4 years ago
parent
commit
6d22c08a5b
  1. 5
      epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/act/result/ActDetailByLinkResultDTO.java
  2. 4
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/act/service/impl/ActSignInRecordServiceImpl.java
  3. 8
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/act/service/impl/GroupActInfoServiceImpl.java

5
epmet-module/resi-group/resi-group-client/src/main/java/com/epmet/resi/group/dto/act/result/ActDetailByLinkResultDTO.java

@ -10,5 +10,10 @@ import lombok.Data;
*/
@Data
public class ActDetailByLinkResultDTO extends ActDetailResultDTO{
/**
* 在组内:yes不在组内no
*/
private String inGroup;
private String invitationRecordId;
}

4
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/act/service/impl/ActSignInRecordServiceImpl.java

@ -284,6 +284,7 @@ public class ActSignInRecordServiceImpl extends BaseServiceImpl<ActSignInRecordD
if (null != actSignInCodeDTO) {
resultDTO.setSignInCodeUrl(actSignInCodeDTO.getUrl());
} else {
GroupActInfoDTO groupActInfoDTO=groupActInfoService.getGroupActInfoDTO(actSignInCodeDTO.getGroupActId());
//获取AccessToken
String accessToken = ThirdUtils.getAccessToken(formDTO.getCustomerId()).getResiToken();
if (StringUtils.isBlank(accessToken)) {
@ -291,9 +292,8 @@ public class ActSignInRecordServiceImpl extends BaseServiceImpl<ActSignInRecordD
throw new RenException("获取accessToken失败,customerId:{}", formDTO.getCustomerId());
}
//跳转的页面
//todo
StringBuilder path = new StringBuilder(ModuleConstant.GROUP_ACT_DETAIL_PAGE);
path.append("?groupActId=").append(formDTO.getGroupActId());
path.append("?groupActId=").append(formDTO.getGroupActId()).append("&groupId=").append(groupActInfoDTO.getGroupId());
//需要发送的Json
JSONObject data = new JSONObject();

8
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/act/service/impl/GroupActInfoServiceImpl.java

@ -775,6 +775,14 @@ public class GroupActInfoServiceImpl extends BaseServiceImpl<GroupActInfoDao, Gr
log.warn("invitation_record is null invitationRecordId=" + formDTO.getInvitationRecordId());
throw new RenException(EpmetErrorCode.INVITATION_NOT_EXIST.getCode(), EpmetErrorCode.INVITATION_NOT_EXIST.getMsg());
}
//当前内容仅允许组内成员查看
ResiGroupMemberDTO resiGroupMemberDTO=resiGroupMemberService.getResiGroupMember(invitationRecordDTO.getGroupId(),formDTO.getUserId());
if(null==resiGroupMemberDTO){
ActDetailByLinkResultDTO resultDTO=new ActDetailByLinkResultDTO();
resultDTO.setInGroup(Constant.NO);
resultDTO.setInvitationRecordId(formDTO.getInvitationRecordId());
return resultDTO;
}
ActDetailFormDTO actDetailFormDTO = new ActDetailFormDTO();
actDetailFormDTO.setUserId(formDTO.getUserId());
actDetailFormDTO.setGroupActId(invitationRecordDTO.getSourceId());

Loading…
Cancel
Save