| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.service_community.dao.ComBpActivityDAO; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | private ComActDiscussOptionService comActDiscussOptionService; |
| | | @Resource |
| | | private ComActActivityService comActActivityService; |
| | | @Resource |
| | | private ComBpActivityDAO comBpActivityDAO; |
| | | |
| | | /** |
| | | * 查询用户某个时间段交易数量 |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R addIntegralTradeAdmin(AddComActIntegralUserDTO integralUserDTO) { |
| | | // 判断增加积分类型 积分任务类型(1.发布随手拍 2.发布微心愿 3.参与议事投票 4.参与志愿者活动 5.参与社区活动 6.参与党员活动 7.参与调查问卷) |
| | | // 判断增加积分类型 积分任务类型(1.发布随手拍 2.发布微心愿 3.参与议事投票 4.参与志愿者活动 5.参与社区活动 6.参与党员活动 7.参与调查问卷 8.活动签到 9.取消活动) |
| | | Integer type = integralUserDTO.getIntegralType(); |
| | | // 业务id |
| | | Long serviceId = integralUserDTO.getServiceId(); |
| | |
| | | remark.append(questnaireDO.getTitle()); |
| | | remark.append("】"); |
| | | break; |
| | | case 8: |
| | | remark.append("成功参加活动奖励积分"); |
| | | if(integralUserDTO.getActivityType()==1){ |
| | | ComActActivityDO actActivityDO1 = comActActivityService.getById(serviceId); |
| | | if(actActivityDO1!=null){ |
| | | amount=actActivityDO1.getRewardIntegral(); |
| | | if(actActivityDO1.getVolunteerMax()!=0){ |
| | | identityType=3; |
| | | }else { |
| | | identityType=1; |
| | | } |
| | | } |
| | | } |
| | | // else { |
| | | // ComPbActivityDO comPbActivityDO = comBpActivityDAO.selectById(serviceId); |
| | | // if(comPbActivityDO!=null){ |
| | | // amount=comPbActivityDO.getRewardIntegral(); |
| | | // identityType=2; |
| | | // } |
| | | // } |
| | | default: |
| | | break; |
| | | } |