|
|
@ -346,9 +346,33 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD |
|
|
|
pointsLogsDTO.setStatus(YesOrNoEnum.YES.value()); |
|
|
|
pointsLogsDTO.setReferenceId(actUserPointsLog.getId()); |
|
|
|
pointsFeignClient.addPointsLog(pointsLogsDTO); |
|
|
|
//发送消息通知
|
|
|
|
this.sendUserInformation(actUserRelationDTO, actInfoDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param actUserRelationDTO |
|
|
|
* @param actInfoDTO |
|
|
|
* @return void |
|
|
|
* @Author yinzuomei |
|
|
|
* @Description 取消活动扣减积分发送用户消息 |
|
|
|
* @Date 2020/2/8 19:37 |
|
|
|
**/ |
|
|
|
private void sendUserInformation(ActUserRelationDTO actUserRelationDTO, ActInfoDTO actInfoDTO) { |
|
|
|
EpdcInformationFormDTO informationFormDTO = new EpdcInformationFormDTO(); |
|
|
|
informationFormDTO.setTitle(HeartNoticeConstant.CANCEL_ACT_TITLE); |
|
|
|
informationFormDTO.setUserId(actUserRelationDTO.getUserId()); |
|
|
|
informationFormDTO.setType(HeartNoticeConstant.NOTICE_TYPE_INTERACTIVE_NOTICE); |
|
|
|
informationFormDTO.setBusinessType(HeartNoticeConstant.NOTICE__BUSINESS_TYPE_ACTIVITY); |
|
|
|
informationFormDTO.setBusinessId(actUserRelationDTO.getActId()); |
|
|
|
// 您未参加“活动名称”,根据规则未参加将扣除积分
|
|
|
|
informationFormDTO.setContent("您未参加“" + actInfoDTO.getTitle() + "”,根据规则未参加将扣除积分" + actInfoDTO.getPunishmentPoints()); |
|
|
|
informationFormDTO.setRelBusinessContent(actInfoDTO.getTitle()); |
|
|
|
newsTask.insertUserInformation(informationFormDTO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public ActUserRelationDTO getActUserRelationId(String userId, String actId, List<String> statusList) { |
|
|
|
List<ActUserRelationDTO> data = baseDao.selectOneActUserRelationInfo(userId, actId, statusList); |
|
|
|
ActUserRelationDTO actUserRelationDTO = new ActUserRelationDTO(); |
|
|
|