@Override | @Override | ||||
public JsonResult getAirportMsg(Integer airportId) { | public JsonResult getAirportMsg(Integer airportId) { | ||||
String url = CommonConfig.airportURL + "/api/airportInterface/getAirportStatus"; | String url = CommonConfig.airportURL + "/api/airportInterface/getAirportStatus"; | ||||
String param = "airportId" + airportId; | |||||
String param = "airportId=" + airportId; | |||||
String result = HttpUtils.sendGet(url, param); | String result = HttpUtils.sendGet(url, param); | ||||
//JSONObject jsonObject = JSON.parseObject(result); | |||||
JsonResult jsonResult = JacksonUtil.json2pojo(result, JsonResult.class); | JsonResult jsonResult = JacksonUtil.json2pojo(result, JsonResult.class); | ||||
AirportMsgVo airportMsgVo = new AirportMsgVo(); | AirportMsgVo airportMsgVo = new AirportMsgVo(); | ||||
JSONObject dataObject = (JSONObject) JSONObject.toJSON(jsonResult.getData()); | JSONObject dataObject = (JSONObject) JSONObject.toJSON(jsonResult.getData()); |
DroneDataVo droneDataVo = new DroneDataVo(); | DroneDataVo droneDataVo = new DroneDataVo(); | ||||
droneDataVo.setInspectionId(flightData.getInspectionId()); | droneDataVo.setInspectionId(flightData.getInspectionId()); | ||||
droneDataVo.setUavPower(79 + "%"); | droneDataVo.setUavPower(79 + "%"); | ||||
droneDataVo.setRange(""); | |||||
droneDataVo.setRange(6 + "km"); | |||||
double dist = Integer.valueOf(flightData.getDistHome())/1000d; | double dist = Integer.valueOf(flightData.getDistHome())/1000d; | ||||
droneDataVo.setTargetLocation(dist+ "km"); | droneDataVo.setTargetLocation(dist+ "km"); | ||||
droneDataVo.setYsingal(flightData.getYsingal() + "%"); | droneDataVo.setYsingal(flightData.getYsingal() + "%"); |
#飞手平台地址 | #飞手平台地址 | ||||
pilot-url: http://192.168.11.11:7011/pilot/web/ | pilot-url: http://192.168.11.11:7011/pilot/web/ | ||||
#airport配置地址 | #airport配置地址 | ||||
airport-url: http://192.168.11.22:9060 | |||||
#airport-url: http://192.168.11.22:9060 | |||||
airport-url: https://airport-test.t-aaron.com | |||||
# 文件配置 | # 文件配置 | ||||
uploads: | uploads: | ||||
#上传的服务器上的映射文件夹 | #上传的服务器上的映射文件夹 |
select | select | ||||
<include refid="Base_Column_List"/> | <include refid="Base_Column_List"/> | ||||
from op_menus | from op_menus | ||||
where mark = 1 and parent_id = 0 and client_id = #{clientId} | |||||
where mark = 1 and parent_id = 0 | |||||
<if test="clientId != null and clientId !=''"> | |||||
and client_id = #{clientId} | |||||
</if> | |||||
and status = 1 | and status = 1 | ||||
and id in (select menu_id from op_role_menu where role_id = #{roleId} and mark = 1) | and id in (select menu_id from op_role_menu where role_id = #{roleId} and mark = 1) | ||||
order by sort asc | order by sort asc |