From ce4a770744d7a0b4e4ea3b5101556b94e72bdf1c Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期二, 14 十一月 2023 17:49:20 +0800 Subject: [PATCH] 修改打卡 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerActivitiesPeopleServiceImpl.java | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerActivitiesPeopleServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerActivitiesPeopleServiceImpl.java index f5f88b2..eaeebd9 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerActivitiesPeopleServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerActivitiesPeopleServiceImpl.java @@ -81,6 +81,7 @@ VolunteerActivitiesPeopleVO vla=new VolunteerActivitiesPeopleVO(); vla.setId(item.getId()); + vla.setUserId(item.getUserId()); vla.setIssuePoints(item.getGrantIntegral()); vla.setCommunityId(sysUser.getCommunityId()+""); vla.setIssueStatus("1"); @@ -102,15 +103,19 @@ volunteerIntegralRecordVO.setVolunteerId(item.getVolunteerId()); volunteerIntegralRecordVO.setUserId(item.getUserId()); volunteerIntegralRecordVO.setIType("1"); - volunteerIntegralRecordVO.setCommunityId(item.getCommunityId()); + volunteerIntegralRecordVO.setCommunityId(sysUser.getCommunityId()+""); volunteerIntegralRecordService.insertVolunteer(volunteerIntegralRecordVO); } - -// VolunteerActivityVO activityVO=new VolunteerActivityVO(); -// activityVO.setId(grantIntegral.getActivityId()); -// activityVO.setAwardState("1"); -// volunteerActivityService.updateById(activityVO); + //判断活动奖励是否发放完 + int num=baseMapper.vapGetUnissuedQuantity(grantIntegral.getActivityId()); + if(num==0) + { + VolunteerActivityVO activityVO=new VolunteerActivityVO(); + activityVO.setId(grantIntegral.getActivityId()); + activityVO.setAwardState("1"); + volunteerActivityService.updateById(activityVO); + } return R.ok(); } -- Gitblit v1.7.1