huanghongfa
2021-07-14 e23b79710c7cdc13001aa468c7ef64cfd04e7ebf
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EventGridDataApi.java
@@ -7,6 +7,7 @@
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.*;
@@ -27,6 +28,8 @@
    @Resource
    private EventGridDataService eventGridDataService;
    @Resource
    private LcCompareCodeService lcCompareCodeService;
    /**
@@ -95,7 +98,7 @@
     * @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);
    }
@@ -139,8 +142,42 @@
        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();
    }
}