| | |
| | | |
| | | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.GrantIntegral; |
| | | import com.panzhihua.common.model.vos.community.VolunteerActivitiesPeopleVO; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.service.VolunteerActivitiesPeopleService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | { |
| | | @Resource |
| | | private VolunteerActivitiesPeopleService volunteerActivitiesPeople; |
| | | |
| | | |
| | | /** |
| | | * 志愿者单个详情 |
| | |
| | | return R.fail(); |
| | | } |
| | | |
| | | /** |
| | | * 志愿者活动 奖励发放 |
| | | * @param grantIntegral |
| | | * @return |
| | | */ |
| | | @PostMapping("/grantIntegral") |
| | | public R grantIntegral(@RequestBody GrantIntegral grantIntegral) |
| | | { |
| | | if(grantIntegral==null) |
| | | { |
| | | return R.fail("参数不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(grantIntegral.getActivityId())) |
| | | { |
| | | return R.fail("活动id不能为空"); |
| | | } |
| | | |
| | | if(grantIntegral.getPeopleAndGranList()==null || grantIntegral.getPeopleAndGranList().size()<=0 ) |
| | | { |
| | | return R.fail("奖励积分人员不能为空"); |
| | | } |
| | | return volunteerActivitiesPeople.grantIntegral(grantIntegral); |
| | | } |
| | | |
| | | |
| | | |
| | | } |