| | |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.grid.EventDetailsVO; |
| | | import com.panzhihua.common.model.vos.grid.EventGridMemberAdminVO; |
| | | import com.panzhihua.common.model.vos.grid.EventVO; |
| | | import com.panzhihua.common.service.grid.GridService; |
| | | import com.panzhihua.common.utlis.ClazzUtils; |
| | |
| | | eventRevokeDTO.setCommunityId(loginUserInfoVO.getCommunityId()); |
| | | return gridService.markEventInvalid(eventRevokeDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询当前社区所有网格员", response = EventGridMemberAdminVO.class) |
| | | @GetMapping("/member/list") |
| | | public R getGridMemberLists(){ |
| | | Long communityId = this.getCommunityId(); |
| | | if(communityId == null){ |
| | | return R.fail("请先登录"); |
| | | } |
| | | return gridService.getGridMemberLists(communityId); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询网格下所有网格员", response = EventGridMemberAdminVO.class) |
| | | @GetMapping("/member/{gridId}") |
| | | public R getGridMemberInLists(@PathVariable("gridId") Long gridId){ |
| | | return gridService.getGridMemberListsByGrid(gridId); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询社区所有网格", response = EventGridMemberAdminVO.class) |
| | | @GetMapping("/grid/list/{communityId}") |
| | | public R getGridLists(@PathVariable("communityId") Long communityId){ |
| | | return gridService.getGridDataListByCommunity(communityId); |
| | | } |
| | | } |