| | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.VolunteerActivitiesPeopleVO; |
| | | import com.panzhihua.common.model.vos.community.VolunteerIntegralRecordVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | { |
| | | return R.fail("活动id不能为空"); |
| | | } |
| | | getLoginUserInfo() |
| | | |
| | | if(StringUtils.isEmpty(communityId)) |
| | | { |
| | | communityId=getLoginUserInfo().getCommunityId()+""; |
| | |
| | | return volunteerActivitiesPeople.volunteerTypeGetList(pageNum,pageSize); |
| | | } |
| | | |
| | | /************************************************************************************************** |
| | | * |
| | | * 积分明细 |
| | | * |
| | | ***************************************************************************************************/ |
| | | /** |
| | | * 获取单个详情 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/IntegralRecord/getId") |
| | | public R VolunteerIntegralRecordGetId(@RequestParam("id") String id) |
| | | { |
| | | return volunteerActivitiesPeople.VolunteerIntegralRecordGetId(id); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping("/IntegralRecord/getId") |
| | | public R VolunteerIntegralRecordGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam("userId") String userId) |
| | | { |
| | | return volunteerActivitiesPeople.VolunteerIntegralRecordGetList(pageNum,pageSize,userId); |
| | | } |
| | | |
| | | /** |
| | | * 新增 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/IntegralRecord/insertVolunteer") |
| | | public R VolunteerIntegralRecordInsertVolunteer(@RequestBody() VolunteerIntegralRecordVO volunteerIntegralRecordVO) |
| | | { |
| | | return volunteerActivitiesPeople.VolunteerIntegralRecordInsertVolunteer(volunteerIntegralRecordVO); |
| | | } |
| | | |
| | | /** |
| | | * 便捷 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/VolunteerIntegralRecord/updateId") |
| | | public R VolunteerIntegralRecordUpdateId(@RequestBody() VolunteerIntegralRecordVO volunteerIntegralRecordVO) |
| | | { |
| | | return volunteerActivitiesPeople.VolunteerIntegralRecordUpdateId(volunteerIntegralRecordVO); |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/IntegralRecord/deleteId") |
| | | public R VolunteerIntegralRecordDeleteId(@RequestParam("id") String id) |
| | | { |
| | | return volunteerActivitiesPeople.VolunteerIntegralRecordDeleteId(id); |
| | | } |
| | | |
| | | |
| | | |
| | | } |