手表数据修改

This commit is contained in:
wanghao
2026-03-05 17:05:31 +08:00
parent ad03177e50
commit 61e049cc47
3 changed files with 11 additions and 7 deletions
@@ -19,9 +19,13 @@ public class WatchH5IndexItemNewVo {
@Schema(title = "数据类型名称")
private String wdTypeName;
@Schema(title = "最新数据日期")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date dataDate;
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date dataDate;
private Date dataDateNew;
/**
* 注意 当wdType=sleep时此字段返回长睡时长
*/
@@ -53,7 +53,7 @@ public class UserStat {
this.max = parseSafe(watchH5IndexItemNewVo.getDataMax());
this.min = parseSafe(watchH5IndexItemNewVo.getDataMin());
this.avg = parseSafe(watchH5IndexItemNewVo.getDataAvg());
this.latestTime = watchH5IndexItemNewVo.getDataDate();
this.latestTime = watchH5IndexItemNewVo.getDataDateNew();
}
/**