| | |
| | | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_grid.service.EventGridDataService; |
| | | import com.panzhihua.service_grid.service.EventGridMemberGpsLogService; |
| | | import com.panzhihua.service_grid.service.EventGridMemberRelationService; |
| | | import com.panzhihua.service_grid.service.EventService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | private EventService eventService; |
| | | @Resource |
| | | private EventGridDataService eventGridDataService; |
| | | @Resource |
| | | private EventGridMemberGpsLogService eventGridMemberGpsLogService; |
| | | @Resource |
| | | private EventGridMemberRelationService eventGridMemberRelationService; |
| | | |
| | | /** |
| | | * 地图模块-根据网格id查询网格详细信息 |
| | |
| | | return eventGridDataService.getMapGridDetail(gridId); |
| | | } |
| | | |
| | | /** |
| | | * 根据网格员id查询今日轨迹 |
| | | * @param userId 网格员id |
| | | * @return 网格员今日轨迹 |
| | | */ |
| | | @PostMapping("/getTrajectoryByApp") |
| | | public R getTrajectoryByApp(@RequestParam("userId") Long userId){ |
| | | return eventGridMemberGpsLogService.getTrajectoryByApp(userId); |
| | | } |
| | | |
| | | /** |
| | | * 根据网格员id查询关联网格列表 |
| | | * @param userId 网格员id |
| | | * @return 网格列表 |
| | | */ |
| | | @PostMapping("getMapGridListByApp") |
| | | public R getMapGridListByApp(@RequestParam("userId") Long userId){ |
| | | return eventGridMemberRelationService.getMapGridListByApp(userId); |
| | | } |
| | | |
| | | } |