| | |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.modules.dp.service.IMilitaryLocalCoordinationService; |
| | | import org.springblade.modules.fire.service.IFireService; |
| | | import org.springblade.modules.fire.vo.FireVO; |
| | | import org.springblade.modules.fireSupplement.entity.FireSupplementEntity; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @RequestMapping("dp/militaryLocalCoordination") |
| | | @Api(value = "军地协同", tags = "军地协同接口") |
| | | public class MilitaryLocalCoordinationController extends BladeController { |
| | | private IFireService fireService; |
| | | private IFireSupplementService fireSupplementService; |
| | | private final IFireService fireService; |
| | | private final IFireSupplementService fireSupplementService; |
| | | private final IDeptService deptService; |
| | | private final IMilitaryLocalCoordinationService militaryLocalCoordinationService; |
| | | |
| | | /** |
| | | * 火警事件 |
| | |
| | | List<DeptDTO> deptDTO = deptService.getUserGroupByDept(); |
| | | return R.data(deptDTO); |
| | | } |
| | | |
| | | /** |
| | | * 周边查询 |
| | | * @param lon 经度 |
| | | * @param lat 纬度 |
| | | * @param distance 查询范围 |
| | | * @return |
| | | */ |
| | | @GetMapping("/surroundingQuery") |
| | | @ApiOperation(value = "周边查询", notes = "周边查询") |
| | | public R getSurroundingQueryList(String lon,String lat,String distance) { |
| | | HashMap<String, List<HashMap<String, String>>> surroundingQueryList = militaryLocalCoordinationService.getSurroundingQueryList(lon,lat,distance); |
| | | return R.data(surroundingQueryList); |
| | | } |
| | | } |