Pārlūkot izejas kodu

修改获取添加中hpa参数

tags/v1.2.0^2
wanjing pirms 1 gada
vecāks
revīzija
46b6beb840
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/IndexServiceImpl.java

+ 2
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/IndexServiceImpl.java Parādīt failu

@@ -90,7 +90,7 @@ public class IndexServiceImpl implements IndexService {

@Override
public JsonResult getAirportDetail(Integer airportId){
String url = CommonConfig.airportURL +"/api/airportInterface/getAirportStatus";
String url = CommonConfig.airportURL + "/api/airportInterface/getAirportStatus";
String param = "airportId=" + airportId;
String result = HttpUtils.sendGet(url, param);
JsonResult jsonResult = JacksonUtil.json2pojo(result, JsonResult.class);
@@ -114,6 +114,7 @@ public class IndexServiceImpl implements IndexService {
if(hpa != null){
BigDecimal mpa = hpa.divide(new BigDecimal(100000), 1, BigDecimal.ROUND_HALF_UP);
airportDetailDto.setHpa(mpa + "Mpa");
airportDetailDto.setHpa(hpa + "Mpa");
}
}
JSONObject tahJson = dataObject.getJSONObject("TAH");

Notiek ielāde…
Atcelt
Saglabāt