| | |
| | | package com.panzhihua.grid_app.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.grid.EventGridCascadeListDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.grid.ComMapGridDetailVO; |
| | | import com.panzhihua.common.model.vos.grid.EventMapGridCascadeVO; |
| | | import com.panzhihua.common.model.vos.grid.EventMapGridVO; |
| | | import com.panzhihua.common.model.vos.grid.EventMapTrajectoryVO; |
| | | import com.panzhihua.common.service.grid.GridService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | return gridService.getMapGridListByApp(userInfoVO.getUserId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询网格员关联网格列表级联-lyq",response = EventMapGridVO.class) |
| | | @PostMapping("getGridLists") |
| | | public R getGridLists(@RequestBody EventGridCascadeListDTO cascadeListDTO){ |
| | | LoginUserInfoVO userInfoVO = this.getLoginUserInfo(); |
| | | if(userInfoVO == null || userInfoVO.getUserId() == null){ |
| | | return R.fail("请先登录"); |
| | | } |
| | | if(cascadeListDTO.getType() == null){ |
| | | return R.fail("参数错误"); |
| | | } |
| | | cascadeListDTO.setUserId(userInfoVO.getUserId()); |
| | | return gridService.getMapGridListsByApp(cascadeListDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询网格员关联网格列表级联2-lyq",response = EventMapGridCascadeVO.class) |
| | | @PostMapping("getGridsLists") |
| | | public R getGridsLists(){ |
| | | LoginUserInfoVO userInfoVO = this.getLoginUserInfo(); |
| | | if(userInfoVO == null || userInfoVO.getUserId() == null){ |
| | | return R.fail("请先登录"); |
| | | } |
| | | return gridService.getMapGridsListsByApp(userInfoVO.getUserId()); |
| | | } |
| | | |
| | | } |