| | |
| | | import com.panzhihua.common.model.vos.grid.EventGridDataDetailsVO; |
| | | import com.panzhihua.common.model.vos.grid.EventGridDataVO; |
| | | import com.panzhihua.service_grid.service.EventGridDataService; |
| | | import com.panzhihua.service_grid.service.LcCompareCodeService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @Resource |
| | | private EventGridDataService eventGridDataService; |
| | | @Resource |
| | | private LcCompareCodeService lcCompareCodeService; |
| | | |
| | | |
| | | /** |
| | |
| | | * @return 网格员列表 |
| | | */ |
| | | @PostMapping("/member/list") |
| | | public R getGridMemberLists(@RequestParam("communityId") Long communityId){ |
| | | public R getGridMemberLists(@RequestParam(value = "communityId",required = false) Long communityId){ |
| | | return eventGridDataService.getGridMemberLists(communityId); |
| | | } |
| | | |
| | |
| | | return eventGridDataService.editGridDataByAdmin(eventGridDataDTO); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询网格下所有网格员 |
| | | * @param gridId |
| | | * @return |
| | | */ |
| | | @PostMapping("/grid/member") |
| | | R getGridMemberListsByGrid(@RequestParam("gridId") Long gridId){ |
| | | return eventGridDataService.getGridMemberListsByGrid(gridId); |
| | | } |
| | | |
| | | /** |
| | | * 查询网格下所有网格员 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @PostMapping("/communitygrid") |
| | | R getGridDataListByCommunity(@RequestParam("gridId") Long communityId){ |
| | | return eventGridDataService.getGridDataListByCommunity(communityId); |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/data/delete") |
| | | public R deleteGridDataByAdmin(@RequestBody List<Long> Ids){ |
| | | return eventGridDataService.deleteGridDataByAdmin(Ids); |
| | | } |
| | | |
| | | /** |
| | | * 综治后台-查询所有市平台网格列表 |
| | | * @return 市平台网格列表 |
| | | */ |
| | | @GetMapping("/lc/list") |
| | | public R getLcGridLists(){ |
| | | return lcCompareCodeService.getLcGridLists(); |
| | | } |
| | | |
| | | |
| | | } |