Parcourir la source

Merge branch 'develop' of gitadmin/tuoheng_lc into release

tags/v1.2.0^2
wanjing il y a 1 an
Parent
révision
7bfeb64661
2 fichiers modifiés avec 6 ajouts et 9 suppressions
  1. +5
    -5
      tuoheng-admin/src/main/java/com/tuoheng/admin/entity/vo/AirWeatherVO.java
  2. +1
    -4
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java

+ 5
- 5
tuoheng-admin/src/main/java/com/tuoheng/admin/entity/vo/AirWeatherVO.java Voir le fichier

@@ -32,7 +32,7 @@ public class AirWeatherVO implements Serializable {
@ApiModelProperty(value = "parm")
private ParmDTO parm;
@ApiModelProperty(value = "mid")
private Integer mid;
private Double mid;
@ApiModelProperty(value = "deviceid")
private String deviceid;
@ApiModelProperty(value = "timestamp")
@@ -53,11 +53,11 @@ public class AirWeatherVO implements Serializable {
private ParmDTO parm;
private ParmNewDTO parmNew;
@ApiModelProperty(value = "mid")
private Integer mid;
private Double mid;
@ApiModelProperty(value = "deviceid")
private String deviceid;
@ApiModelProperty(value = "timestamp")
private Integer timestamp;
private Double timestamp;

@NoArgsConstructor
@Data
@@ -112,11 +112,11 @@ public class AirWeatherVO implements Serializable {
@ApiModelProperty(value = "parm")
private ParmDTO parm;
@ApiModelProperty(value = "mid")
private Integer mid;
private Double mid;
@ApiModelProperty(value = "deviceid")
private String deviceid;
@ApiModelProperty(value = "timestamp")
private Integer timestamp;
private Double timestamp;

@NoArgsConstructor
@Data

+ 1
- 4
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java Voir le fichier

@@ -235,10 +235,7 @@ public class ThInspectionServiceImpl extends BaseServiceImpl<ThInspectionMapper,
log.info("获取天气信息,返回数据为空");
return new AirWeatherVO();
}
log.info("获取天气信息,jsonResult Data={}", jsonResult.getData());
AirWeatherVO airWeatherVO = JSONObject.parseObject(JSONObject.toJSONString(jsonResult.getData()), AirWeatherVO.class);
log.info("获取天气信息,airWeatherVO={}", airWeatherVO);
return airWeatherVO;
return JSONObject.parseObject(JSONObject.toJSONString(jsonResult.getData()), AirWeatherVO.class);
} catch (Exception e) {
log.info("获取天气信息异常,url={}", url);
log.info("获取天气信息异常,param={}", param);

Chargement…
Annuler
Enregistrer