| | |
| | | inviteList.forEach(e -> { |
| | | ComActActivityInvite inviteEntity = new ComActActivityInvite(); |
| | | BeanUtils.copyProperties(e, inviteEntity); |
| | | inviteEntity.setActivityId(activityId); |
| | | inviteEntity.setCreatedBy(comActActivityVO.getUserId()); |
| | | inviteEntityList.add(inviteEntity); |
| | | }); |
| | |
| | | comActNeighborCircleTopicWestMapper.insert(topicWestDO); |
| | | |
| | | ComActActivityDO activityUpdate = new ComActActivityDO(); |
| | | activityUpdate.setId(activityId); |
| | | BeanUtils.copyProperties(comActActivityDO, activityUpdate); |
| | | activityUpdate.setTopicId(topicWestDO.getId()); |
| | | this.baseMapper.updateById(activityUpdate); |
| | | |
| | |
| | | comActActRegistDO.setSignIdentity(comActActSignDO.getSignIdentity()); |
| | | comActActRegistDO.setCreateAt(nowDate); |
| | | comActActRegistDO.setCodeId(comActActRegistVO.getCodeId()); |
| | | comActActRegistDO.setAward(rewardWay == 1 ? rewardIntegral : 0); |
| | | comActActRegistDO.setAward(0); |
| | | comActActRegistDO.setPosition(comActActRegistVO.getPosition()); |
| | | comActActRegistDO.setTimes(signAllCount + 1); |
| | | int result = comActActRegistDAO.insert(comActActRegistDO); |
| | | if (result > 0 && isHave && rewardWay == 1) { |
| | | AddComActIntegralUserDTO addComActIntegralUserDTO = new AddComActIntegralUserDTO(); |
| | | addComActIntegralUserDTO.setUserId(userId); |
| | | addComActIntegralUserDTO.setIntegralType(integralType); |
| | | addComActIntegralUserDTO.setIntegral(rewardIntegral); |
| | | addComActIntegralUserDTO.setSignIdentity(comActActSignDO.getSignIdentity()); |
| | | addComActIntegralUserDTO.setCommunityId(comActActivityDO.getCommunityId()); |
| | | addComActIntegralUserDTO.setServiceId(activityId); |
| | | addComActIntegralUserDTO.setRemark(remark); |
| | | comActIntegralUserTradeService.addIntegralTradeAdmin(addComActIntegralUserDTO); |
| | | return R.ok(rewardIntegral); |
| | | } else { |
| | | if (result > 0) { |
| | | return R.ok(); |
| | | } |
| | | } |