| | |
| | | import com.panzhihua.common.model.dtos.community.PageCommunityQuestnaireDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageQuestnaireDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageQuestnaireSubDetailsDTO; |
| | | import com.panzhihua.common.model.dtos.community.integral.admin.AddComActIntegralUserDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActQuestnaireAnswerContentVO; |
| | |
| | | if(false){ |
| | | return R.fail("用户写问卷调查问卷!"); |
| | | } |
| | | //填写调查问卷发放积分 |
| | | communityService.addIntegralTradeAdmin(new AddComActIntegralUserDTO(usersAnswerQuestnaireVO.getQuestId() |
| | | ,AddComActIntegralUserDTO.integralType.cydcwj,loginUserInfo.getCommunityId(),loginUserInfo.getUserId())); |
| | | return communityService.usersAnsweQuestnaire(usersAnswerQuestnaireVO, loginUserInfo.getUserId()); |
| | | |
| | | } |
| | |
| | | import com.panzhihua.applets.weixin.CheckService; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.*; |
| | | import com.panzhihua.common.model.dtos.community.integral.admin.AddComActIntegralUserDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActDiscussCommentVO; |
| | |
| | | return R.fail("一起议主键不能为空"); |
| | | } |
| | | comActDiscussCommentDTO.setUserId(this.getUserId()); |
| | | //议事投票计算积分 |
| | | AddComActIntegralUserDTO integralUserDTO = new AddComActIntegralUserDTO(discussId,AddComActIntegralUserDTO.integralType.cyystp,this.getCommunityId(),this.getUserId()); |
| | | integralUserDTO.setIsComment(1); |
| | | communityService.addIntegralTradeAdmin(integralUserDTO); |
| | | return communityService.addDiscussComment(comActDiscussCommentDTO); |
| | | |
| | | } |
| | |
| | | ComActDiscussOptionUserDTO comActDiscussOptionUserDTO=new ComActDiscussOptionUserDTO(); |
| | | comActDiscussOptionUserDTO.setDiscussOptionId(id); |
| | | comActDiscussOptionUserDTO.setUserId(this.getUserId()); |
| | | //议事投票计算积分 |
| | | AddComActIntegralUserDTO integralUserDTO = new AddComActIntegralUserDTO(id,AddComActIntegralUserDTO.integralType.cyystp,this.getCommunityId(),this.getUserId()); |
| | | integralUserDTO.setIsComment(2); |
| | | communityService.addIntegralTradeAdmin(integralUserDTO); |
| | | return communityService.addDiscussOptionUser(comActDiscussOptionUserDTO); |
| | | } |
| | | |
| | |
| | | |
| | | @ApiModelProperty("变动类型(1.增加 2.减少)") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("交易业务类型(1.发布随手拍 2.发布微心愿 3.参与议事投票 4.参与志愿者活动 5.参与社区活动 6.参与党员活动 7.参与调查问卷)") |
| | | private Integer serviceType; |
| | | } |
| | |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "是否是评论(1.是 2.否)") |
| | | private Integer isComment; |
| | | |
| | | |
| | | /** |
| | | * 积分任务类型(1.发布随手拍 2.发布微心愿 3.参与议事投票 4.参与志愿者活动 5.参与社区活动 6.参与党员活动 7.参与调查问卷) |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.integral.admin; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel("参加活动人员信息") |
| | | public class ComActActivityPeopleVO { |
| | | |
| | | @ApiModelProperty("用户id") |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty("活动id") |
| | | private Long activityId; |
| | | |
| | | @ApiModelProperty("是否志愿者 0 否 1 是") |
| | | private Integer isVolunteer; |
| | | |
| | | @ApiModelProperty("社区id") |
| | | private Long communityId; |
| | | } |
| | |
| | | */ |
| | | @PostMapping("/integral/user/add/admin") |
| | | R addIntegralTradeAdmin(@RequestBody AddComActIntegralUserDTO integralUserDTO); |
| | | |
| | | /** |
| | | * 根据社区活动id查询社区活动报名人员列表 |
| | | * @param activityId 活动id |
| | | * @return 社区活动报名人员列表 |
| | | */ |
| | | @PostMapping("/integral/act/activity/admin") |
| | | R getTaskActivityPeopleList(@RequestParam("activityId") Long activityId); |
| | | } |
| | |
| | | */ |
| | | @PostMapping("/partybuildIng/exportPbMember") |
| | | R exportPbMember(@RequestBody PagePartyOrganizationVO organizationVO); |
| | | |
| | | /** |
| | | * 根据党员活动id查询活动下报名人员 |
| | | * @param activityId 党员活动id |
| | | * @return 活动下报名人员 |
| | | */ |
| | | @PostMapping("/partybuildIng/getTaskPbActivityPeopleList") |
| | | R getTaskPbActivityPeopleList(@RequestParam("activityId") Long activityId); |
| | | } |
| | |
| | | return comActIntegralUserTradeService.addIntegralTradeAdmin(integralUserDTO); |
| | | } |
| | | |
| | | /** |
| | | * 根据社区活动id查询社区活动报名人员列表 |
| | | * @param activityId 活动id |
| | | * @return 社区活动报名人员列表 |
| | | */ |
| | | @PostMapping("/act/activity/admin") |
| | | public R getTaskActivityPeopleList(@RequestParam("activityId") Long activityId){ |
| | | return comActIntegralUserService.getTaskActivityPeopleList(activityId); |
| | | } |
| | | |
| | | } |
| | |
| | | public R readUserReward(@RequestParam("userId") Long userId,@RequestParam("communityId") Long communityId) { |
| | | return comActEasyPhotoService.readUserReward(userId,communityId); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | "</script>") |
| | | IPage<ComActActivityVO> pageActivityCommunityBack(Page page, @Param("comActActivityVO") ComActActivityVO comActActivityVO); |
| | | |
| | | @Select("select id from com_act_activity where `status` in (3,4) and TIMESTAMPDIFF(MINUTE,SYSDATE(),sign_up_end)<=0") |
| | | List<Long> getActivityEndIds(); |
| | | |
| | | @Update("update com_act_activity set `status`=4 where `status`=3 and TIMESTAMPDIFF(MINUTE,SYSDATE(),sign_up_end)<=0") |
| | | int updateStatusToBeginAfterSingEnd(); |
| | | @Select("select GROUP_CONCAT(t.x1,',',t.x2,',',t.x3,',',t.x4) from ( " + |
| | |
| | | import com.panzhihua.common.model.vos.community.integral.ComActIntegralUserListVO; |
| | | import com.panzhihua.common.model.vos.community.integral.ComActIntegralUserRuleVO; |
| | | import com.panzhihua.common.model.vos.community.integral.IntegralUserRankVO; |
| | | import com.panzhihua.common.model.vos.community.integral.admin.ComActActivityPeopleVO; |
| | | import com.panzhihua.service_community.model.dos.ComActIntegralUserDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | */ |
| | | IPage<ComActIntegralCommunityRankVO> getIntegralCommunityRankApplets(Page page,@Param("communityRankDTO") ComActIntegralCommunityRankDTO communityRankDTO); |
| | | |
| | | /** |
| | | * 根据社区活动id查询社区活动报名人员列表 |
| | | * @param activityId 活动id |
| | | * @return 社区活动报名人员列表 |
| | | */ |
| | | List<ComActActivityPeopleVO> getTaskActivityPeopleList(@Param("activityId") Long activityId); |
| | | } |
| | |
| | | */ |
| | | R getIntegralCommunityRankApplets(ComActIntegralCommunityRankDTO communityRankDTO); |
| | | |
| | | /** |
| | | * 根据社区活动id查询社区活动报名人员列表 |
| | | * @param activityId 活动id |
| | | * @return 社区活动报名人员列表 |
| | | */ |
| | | R getTaskActivityPeopleList(Long activityId); |
| | | |
| | | } |
| | |
| | | log.info("定时任务--修改社区活动进行状态活动数量【{}】",num2); |
| | | int num3=comActActivityDAO.updateStatusToBeginAfterSingEnd(); |
| | | log.info("定时任务--报名结束修改社区活动进行状态活动数量【{}】",num3); |
| | | return R.ok(); |
| | | //查询已经结束的活动,需要计算积分 |
| | | return R.ok(comActActivityDAO.getActivityEndIds()); |
| | | } |
| | | |
| | | /** |
| | |
| | | integralRuleWXYDO.setIsRestrict(1); |
| | | integralRuleWXYDO.setType(ComActIntegralRuleDO.type.month); |
| | | integralRuleWXYDO.setCount(5); |
| | | integralRuleWXYDO.setIntegralType(ComActIntegralRuleDO.integralType.fbssp); |
| | | integralRuleWXYDO.setIntegralType(ComActIntegralRuleDO.integralType.fbwxy); |
| | | integralRuleList.add(integralRuleWXYDO); |
| | | |
| | | //议事投票默认积分规则 |
| | |
| | | public R getIntegralCommunityRankApplets(ComActIntegralCommunityRankDTO communityRankDTO){ |
| | | return R.ok(this.baseMapper.getIntegralCommunityRankApplets(new Page(communityRankDTO.getPageNum(),communityRankDTO.getPageSize()),communityRankDTO)); |
| | | } |
| | | |
| | | /** |
| | | * 根据社区活动id查询社区活动报名人员列表 |
| | | * @param activityId 活动id |
| | | * @return 社区活动报名人员列表 |
| | | */ |
| | | @Override |
| | | public R getTaskActivityPeopleList(Long activityId){ |
| | | return R.ok(this.baseMapper.getTaskActivityPeopleList(activityId)); |
| | | } |
| | | } |
| | |
| | | private ComActMicroWishService comActMicroWishService; |
| | | @Resource |
| | | private ComActDiscussDAO comActDiscussDAO; |
| | | @Resource |
| | | private ComActDiscussOptionService comActDiscussOptionService; |
| | | @Resource |
| | | private ComActActivityService comActActivityService; |
| | | |
| | | /** |
| | | * 查询用户某个时间段交易数量 |
| | |
| | | } |
| | | //判断规则是否有次数限制 |
| | | if(integralRuleDO.getIsRestrict().equals(ComActIntegralRuleDO.isRestrict.yes)){ |
| | | Integer count = this.baseMapper.getIntegralCount(getIntegralCountDTO(integralRuleDO.getType(),userId,communityId)); |
| | | Integer count = this.baseMapper.getIntegralCount(getIntegralCountDTO(integralRuleDO.getType(),userId,communityId,integralRuleDO.getIntegralType())); |
| | | if(count >= integralRuleDO.getCount()){ |
| | | log.error("该用户参加任务次数已达上限"); |
| | | return R.fail("该用户参加任务次数已达上限"); |
| | |
| | | break; |
| | | case 3: |
| | | remark.append("参与议事投票奖励积分"); |
| | | ComActDiscussDO discussDO = comActDiscussDAO.selectById(serviceId); |
| | | if(discussDO != null){ |
| | | remark.append("【"); |
| | | remark.append(discussDO.getVoteTitle()); |
| | | remark.append("】"); |
| | | if(integralUserDTO.getIsComment().equals(1)){ |
| | | ComActDiscussDO discussDO = comActDiscussDAO.selectById(serviceId); |
| | | if(discussDO != null){ |
| | | remark.append("【"); |
| | | remark.append(discussDO.getVoteTitle()); |
| | | remark.append("】"); |
| | | } |
| | | }else{ |
| | | ComActDiscussOptionDO discussOptionDO = comActDiscussOptionService.getById(serviceId); |
| | | if(discussOptionDO != null){ |
| | | ComActDiscussDO discussDO = comActDiscussDAO.selectById(discussOptionDO.getDiscussId()); |
| | | if(discussDO != null){ |
| | | remark.append("【"); |
| | | remark.append(discussDO.getVoteTitle()); |
| | | remark.append("】"); |
| | | } |
| | | } |
| | | } |
| | | break; |
| | | case 4: |
| | | identityType = 3; |
| | | remark.append("参与志愿者活动奖励积分"); |
| | | ComActActivityDO actActivityZYZDO = comActActivityService.getById(serviceId); |
| | | if(actActivityZYZDO != null){ |
| | | remark.append("【"); |
| | | remark.append(actActivityZYZDO.getActivityName()); |
| | | remark.append("】"); |
| | | } |
| | | break; |
| | | case 5: |
| | | remark.append("参与社区活动奖励积分"); |
| | | ComActActivityDO actActivityDO = comActActivityService.getById(serviceId); |
| | | if(actActivityDO != null){ |
| | | remark.append("【"); |
| | | remark.append(actActivityDO.getActivityName()); |
| | | remark.append("】"); |
| | | } |
| | | break; |
| | | case 6: |
| | | identityType = 2; |
| | |
| | | identityType = 3; |
| | | } |
| | | remark.append("参与调查问卷奖励积分"); |
| | | remark.append("【"); |
| | | remark.append(questnaireDO.getTitle()); |
| | | remark.append("】"); |
| | | break; |
| | | default: |
| | | break; |
| | |
| | | * @param communityId 社区id |
| | | * @return 查询请求参数 |
| | | */ |
| | | private ComActIntegralCountDTO getIntegralCountDTO(Integer type,Long userId,Long communityId){ |
| | | private ComActIntegralCountDTO getIntegralCountDTO(Integer type,Long userId,Long communityId,Integer integralType){ |
| | | ComActIntegralCountDTO integralCountDTO = new ComActIntegralCountDTO(); |
| | | integralCountDTO.setUserId(userId); |
| | | integralCountDTO.setCommunityId(communityId); |
| | | integralCountDTO.setServiceType(integralType); |
| | | integralCountDTO.setType(ComActIntegralUserTradeDO.changeType.add); |
| | | if(type.equals(ComActIntegralRuleDO.type.month)){ |
| | | integralCountDTO.setStartTime(DateUtils.getFirstDayOfMonthString()); |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getTaskActivityPeopleList" resultType="com.panzhihua.common.model.vos.community.integral.admin.ComActActivityPeopleVO"> |
| | | select caas.user_id,caas.activity_id,caa.community_id,caas.is_volunteer from com_act_act_sign as caas left join com_act_activity as caa on caa.id = caas.activity_id where caa.id = #{activityId} |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | </sql> |
| | | |
| | | <select id="getIntegralCount" resultType="Integer" parameterType="com.panzhihua.common.model.dtos.community.integral.ComActIntegralCountDTO"> |
| | | select count(id) from com_act_integral_user_trade where community_id = #{integralCountDTO.communityId} and user_id = #{integralCountDTO.userId} and change_type = #{integralCountDTO.type} and create_at between #{integralCountDTO.startTime} and #{integralCountDTO.endTime} |
| | | select count(id) from com_act_integral_user_trade where community_id = #{integralCountDTO.communityId} and service_type = #{integralCountDTO.serviceType} and user_id = #{integralCountDTO.userId} and change_type = #{integralCountDTO.type} and create_at between #{integralCountDTO.startTime} and #{integralCountDTO.endTime} |
| | | </select> |
| | | |
| | | <select id="getIntegralCommunityTradeApplets" parameterType="com.panzhihua.common.model.dtos.community.integral.ComActIntegralCommunityRankDTO" |
| | |
| | | </select> |
| | | |
| | | <select id="getUserInfo" resultType="com.panzhihua.common.model.vos.community.integral.admin.IntegralUserVO"> |
| | | select user_id,phone,nick_name,id_card,`name`,`status`,is_volunteer,is_partymember,create_at,update_at from sys_user where user_id = #{userId} |
| | | select user_id,phone,nick_name,id_card,`name`,`status`,is_volunteer,is_partymember,create_at from sys_user where user_id = #{userId} |
| | | </select> |
| | | </mapper> |
| | |
| | | public R exportPbMember(@RequestBody PagePartyOrganizationVO organizationVO){ |
| | | return comPbMemberService.exportPbMember(organizationVO); |
| | | } |
| | | |
| | | /** |
| | | * 根据党员活动id查询活动下报名人员 |
| | | * @param activityId 党员活动id |
| | | * @return 活动下报名人员 |
| | | */ |
| | | @PostMapping("getTaskPbActivityPeopleList") |
| | | public R getTaskPbActivityPeopleList(@RequestParam("activityId")Long activityId){ |
| | | return comBpActivityService.getTaskPbActivityPeopleList(activityId); |
| | | } |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.community.integral.admin.ComActActivityPeopleVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.PageActivityMembersVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.PartyBuildingActivityVO; |
| | | import com.panzhihua.service_dangjian.model.dos.ComPbActivityDO; |
| | |
| | | |
| | | @Update("update com_pb_activity set status=5 where `status` in (3,4) and TIMESTAMPDIFF(MINUTE,SYSDATE(),enroll_time_end)<=0") |
| | | int updateStatusToActiveOrEnd(); |
| | | |
| | | @Select("select id from com_pb_activity where `status` in (3,4) and TIMESTAMPDIFF(MINUTE,SYSDATE(),enroll_time_end)<=0") |
| | | List<Long> getTaskPbActivityEndIds(); |
| | | |
| | | @Select("select caas.user_id,caas.activity_id,caa.community_id from com_pb_activity_member as caas left join com_pb_activity as caa on caa.id = caas.activity_id where caa.id = #{activityId}") |
| | | List<ComActActivityPeopleVO> getTaskPbActivityPeopleList(@Param("activityId") Long activityId); |
| | | |
| | | @Select("select type,name from sys_user where user_id=#{createBy}") |
| | | LoginUserInfoVO selectUserInfoByUserId(Long createBy); |
| | | |
| | |
| | | * @return 创建结果 |
| | | */ |
| | | R addActivityApplets(ComPbActivityDTO comPbActivityDTO); |
| | | |
| | | /** |
| | | * 根据党员活动id查询活动下报名人员 |
| | | * @param activityId 党员活动id |
| | | * @return 活动下报名人员 |
| | | */ |
| | | R getTaskPbActivityPeopleList(Long activityId); |
| | | } |
| | |
| | | // 修改进行状态为进行中 或者已结束 |
| | | int num2=comBpActivityDAO.updateStatusToActiveOrEnd(); |
| | | log.info("定时任务修改党建活动--修改进行状态为进行中 或者已结束数量【{}】",num2); |
| | | return R.ok(); |
| | | return R.ok(comBpActivityDAO.getTaskPbActivityEndIds()); |
| | | } |
| | | |
| | | /** |
| | |
| | | return R.fail(); |
| | | } |
| | | |
| | | /** |
| | | * 根据党员活动id查询活动下报名人员 |
| | | * @param activityId 党员活动id |
| | | * @return 活动下报名人员 |
| | | */ |
| | | @Override |
| | | public R getTaskPbActivityPeopleList(Long activityId){ |
| | | return R.ok(this.comBpActivityDAO.getTaskPbActivityPeopleList(activityId)); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | DateFormat formatTo = new SimpleDateFormat("M月d ahh:mm"); |
| | | String format = formatTo.format(new Date()); |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.model.dtos.community.integral.admin.AddComActIntegralUserDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ActivitySignVO; |
| | | import com.panzhihua.common.model.vos.community.ComActActivityVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngCarExcelVO; |
| | | import com.panzhihua.common.model.vos.community.integral.admin.ComActActivityPeopleVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserNoticeVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | |
| | | public ReturnT<String> timedTaskActActivityAllJobHandler(String param) throws Exception { |
| | | log.info("定时任务刷新社区活动的各个状态 除取消外"); |
| | | R r=communityService.timedTaskActActivityAll(); |
| | | if(R.isOk(r)){ |
| | | //获取待结束的活动列表 |
| | | List<Long> activityList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), Long.class); |
| | | if(!activityList.isEmpty()){ |
| | | log.info("社区活动结束时计算积分"); |
| | | activityList.forEach(activityId -> { |
| | | R r1 = communityService.getTaskActivityPeopleList(activityId); |
| | | if (R.isOk(r1)){ |
| | | List<ComActActivityPeopleVO> peopleList = JSONArray.parseArray(JSONArray.toJSONString(r1.getData()), ComActActivityPeopleVO.class); |
| | | if (!peopleList.isEmpty()){ |
| | | peopleList.forEach(people -> { |
| | | if(people.getIsVolunteer().equals(1)){ |
| | | communityService.addIntegralTradeAdmin(new AddComActIntegralUserDTO(people.getActivityId() |
| | | ,AddComActIntegralUserDTO.integralType.cyzyzhd,people.getCommunityId(),people.getUserId())); |
| | | }else{ |
| | | communityService.addIntegralTradeAdmin(new AddComActIntegralUserDTO(people.getActivityId() |
| | | ,AddComActIntegralUserDTO.integralType.cysqhd,people.getCommunityId(),people.getUserId())); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | log.info("执行结果【{}】",r.toString()); |
| | | return ReturnT.SUCCESS; |
| | | } |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.model.dtos.community.integral.admin.AddComActIntegralUserDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.integral.admin.ComActActivityPeopleVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.PartyBuildingActivityVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserNoticeVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.partybuilding.PartyBuildingService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.xxl.job.core.biz.model.ReturnT; |
| | |
| | | private PartyBuildingService partyBuildingService; |
| | | @Resource |
| | | private UserService userService; |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | /** |
| | | * 定时任务刷新党建动态发布状态 |
| | |
| | | public ReturnT<String> timedTaskPartyBuildingActivityAllJobHandler(String param) throws Exception { |
| | | log.info("定时任务刷新党建活动的各个状态 除取消外"); |
| | | R r=partyBuildingService.timedTaskPartyBuildingActivityAll(); |
| | | if(R.isOk(r)){ |
| | | //获取待结束的活动列表 |
| | | List<Long> activityList = JSONArray.parseArray(JSONArray.toJSONString(r.getData()), Long.class); |
| | | if(!activityList.isEmpty()){ |
| | | log.info("党员活动结束计算积分"); |
| | | activityList.forEach(activityId -> { |
| | | R r1 = partyBuildingService.getTaskPbActivityPeopleList(activityId); |
| | | if (R.isOk(r1)){ |
| | | List<ComActActivityPeopleVO> peopleList = JSONArray.parseArray(JSONArray.toJSONString(r1.getData()), ComActActivityPeopleVO.class); |
| | | if(!peopleList.isEmpty()){ |
| | | peopleList.forEach(people -> { |
| | | communityService.addIntegralTradeAdmin(new AddComActIntegralUserDTO(people.getActivityId() |
| | | ,AddComActIntegralUserDTO.integralType.cydyhd,people.getCommunityId(),people.getUserId())); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | log.info("执行结果【{}】",r.toString()); |
| | | return ReturnT.SUCCESS; |
| | | } |