手表数据修改
This commit is contained in:
+6
-14
@@ -23,7 +23,7 @@ public class UserStat {
|
|||||||
private BigDecimal max;
|
private BigDecimal max;
|
||||||
private BigDecimal min;
|
private BigDecimal min;
|
||||||
private BigDecimal avg;
|
private BigDecimal avg;
|
||||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date latestTime;
|
private Date latestTime;
|
||||||
|
|
||||||
public UserStat() {
|
public UserStat() {
|
||||||
@@ -49,19 +49,11 @@ public class UserStat {
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (watchH5IndexItemNewVo.getWdType().equals("sleep")) {
|
this.latest = parseSafe(watchH5IndexItemNewVo.getDataValue());
|
||||||
this.latest = parseSafe(watchH5IndexItemNewVo.getDataMax());// 总时长
|
this.max = parseSafe(watchH5IndexItemNewVo.getDataMax());
|
||||||
this.max = parseSafe(watchH5IndexItemNewVo.getDataMax());
|
this.min = parseSafe(watchH5IndexItemNewVo.getDataMin());
|
||||||
this.min = parseSafe(watchH5IndexItemNewVo.getDataMin());
|
this.avg = parseSafe(watchH5IndexItemNewVo.getDataAvg());
|
||||||
this.avg = parseSafe(watchH5IndexItemNewVo.getDataAvg());
|
this.latestTime = watchH5IndexItemNewVo.getDataDate();
|
||||||
this.latestTime = watchH5IndexItemNewVo.getDataDate();
|
|
||||||
}else {
|
|
||||||
this.latest = parseSafe(watchH5IndexItemNewVo.getDataValue());
|
|
||||||
this.max = parseSafe(watchH5IndexItemNewVo.getDataMax());
|
|
||||||
this.min = parseSafe(watchH5IndexItemNewVo.getDataMin());
|
|
||||||
this.avg = parseSafe(watchH5IndexItemNewVo.getDataAvg());
|
|
||||||
this.latestTime = watchH5IndexItemNewVo.getDataDate();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user