瀏覽代碼

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.2.0^2
xuziqing 1 年之前
父節點
當前提交
d50b7b685b
共有 4 個檔案被更改,包括 8 行新增5 行删除
  1. +1
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/index/IndexServiceImpl.java
  2. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetDroneDataByIdService.java
  3. +2
    -1
      tuoheng-service/tuoheng-admin/src/main/resources/application-dev.yml
  4. +4
    -1
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/MenuMapper.xml

+ 1
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/index/IndexServiceImpl.java 查看文件

@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());

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetDroneDataByIdService.java 查看文件

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() + "%");

+ 2
- 1
tuoheng-service/tuoheng-admin/src/main/resources/application-dev.yml 查看文件

#飞手平台地址 #飞手平台地址
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:
#上传的服务器上的映射文件夹 #上传的服务器上的映射文件夹

+ 4
- 1
tuoheng-service/tuoheng-admin/src/main/resources/mapper/MenuMapper.xml 查看文件

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

Loading…
取消
儲存