手表数据修改
This commit is contained in:
+5
-1
@@ -19,9 +19,13 @@ public class WatchH5IndexItemNewVo {
|
|||||||
@Schema(title = "数据类型名称")
|
@Schema(title = "数据类型名称")
|
||||||
private String wdTypeName;
|
private String wdTypeName;
|
||||||
@Schema(title = "最新数据日期")
|
@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")
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date dataDate;
|
private Date dataDateNew;
|
||||||
/**
|
/**
|
||||||
* 注意 当wdType=sleep时此字段返回长睡时长
|
* 注意 当wdType=sleep时此字段返回长睡时长
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-1
@@ -53,7 +53,7 @@ public class UserStat {
|
|||||||
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.getDataDateNew();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+5
-5
@@ -970,7 +970,7 @@ public class WatchDataApiServiceImpl implements WatchDataApiService {
|
|||||||
wrapper.selectAs(WatchStatUserInfoDaySleep::getDeepSleepTimes,WatchH5IndexItemNewVo::getDataMax);
|
wrapper.selectAs(WatchStatUserInfoDaySleep::getDeepSleepTimes,WatchH5IndexItemNewVo::getDataMax);
|
||||||
wrapper.selectAs(WatchStatUserInfoDaySleep::getLightSleepTimes,WatchH5IndexItemNewVo::getDataMin);
|
wrapper.selectAs(WatchStatUserInfoDaySleep::getLightSleepTimes,WatchH5IndexItemNewVo::getDataMin);
|
||||||
wrapper.selectAs(WatchStatUserInfoDaySleep::getSleepAvg,WatchH5IndexItemNewVo::getDataAvg);
|
wrapper.selectAs(WatchStatUserInfoDaySleep::getSleepAvg,WatchH5IndexItemNewVo::getDataAvg);
|
||||||
wrapper.selectAs(WatchStatUserInfoDaySleep::getLastUploadTime,WatchH5IndexItemNewVo::getDataDate);
|
wrapper.selectAs(WatchStatUserInfoDaySleep::getLastUploadTime,WatchH5IndexItemNewVo::getDataDateNew);
|
||||||
wrapper.eq(WatchStatUserInfoDaySleep::getUserId, userId);
|
wrapper.eq(WatchStatUserInfoDaySleep::getUserId, userId);
|
||||||
wrapper.orderByDesc(WatchStatUserInfoDaySleep::getDataDate);
|
wrapper.orderByDesc(WatchStatUserInfoDaySleep::getDataDate);
|
||||||
wrapper.last("limit 1");
|
wrapper.last("limit 1");
|
||||||
@@ -984,7 +984,7 @@ public class WatchDataApiServiceImpl implements WatchDataApiService {
|
|||||||
wrapper.selectAs(WatchStatUserInfoDayHeartRate::getMaxValue,WatchH5IndexItemNewVo::getDataMax);
|
wrapper.selectAs(WatchStatUserInfoDayHeartRate::getMaxValue,WatchH5IndexItemNewVo::getDataMax);
|
||||||
wrapper.selectAs(WatchStatUserInfoDayHeartRate::getMinValue,WatchH5IndexItemNewVo::getDataMin);
|
wrapper.selectAs(WatchStatUserInfoDayHeartRate::getMinValue,WatchH5IndexItemNewVo::getDataMin);
|
||||||
wrapper.selectAs(WatchStatUserInfoDayHeartRate::getAvgValue,WatchH5IndexItemNewVo::getDataAvg);
|
wrapper.selectAs(WatchStatUserInfoDayHeartRate::getAvgValue,WatchH5IndexItemNewVo::getDataAvg);
|
||||||
wrapper.selectAs(WatchStatUserInfoDayHeartRate::getLastUploadTime,WatchH5IndexItemNewVo::getDataDate);
|
wrapper.selectAs(WatchStatUserInfoDayHeartRate::getLastUploadTime,WatchH5IndexItemNewVo::getDataDateNew);
|
||||||
wrapper.eq(WatchStatUserInfoDayHeartRate::getUserId, userId);
|
wrapper.eq(WatchStatUserInfoDayHeartRate::getUserId, userId);
|
||||||
wrapper.orderByDesc(WatchStatUserInfoDayHeartRate::getDataDate);
|
wrapper.orderByDesc(WatchStatUserInfoDayHeartRate::getDataDate);
|
||||||
wrapper.last("limit 1");
|
wrapper.last("limit 1");
|
||||||
@@ -998,7 +998,7 @@ public class WatchDataApiServiceImpl implements WatchDataApiService {
|
|||||||
wrapper.selectAs(WatchStatUserInfoDaySpo2::getMaxValue,WatchH5IndexItemNewVo::getDataMax);
|
wrapper.selectAs(WatchStatUserInfoDaySpo2::getMaxValue,WatchH5IndexItemNewVo::getDataMax);
|
||||||
wrapper.selectAs(WatchStatUserInfoDaySpo2::getMinValue,WatchH5IndexItemNewVo::getDataMin);
|
wrapper.selectAs(WatchStatUserInfoDaySpo2::getMinValue,WatchH5IndexItemNewVo::getDataMin);
|
||||||
wrapper.selectAs(WatchStatUserInfoDaySpo2::getAvgValue,WatchH5IndexItemNewVo::getDataAvg);
|
wrapper.selectAs(WatchStatUserInfoDaySpo2::getAvgValue,WatchH5IndexItemNewVo::getDataAvg);
|
||||||
wrapper.selectAs(WatchStatUserInfoDaySpo2::getLastUploadTime,WatchH5IndexItemNewVo::getDataDate);
|
wrapper.selectAs(WatchStatUserInfoDaySpo2::getLastUploadTime,WatchH5IndexItemNewVo::getDataDateNew);
|
||||||
wrapper.eq(WatchStatUserInfoDaySpo2::getUserId, userId);
|
wrapper.eq(WatchStatUserInfoDaySpo2::getUserId, userId);
|
||||||
wrapper.orderByDesc(WatchStatUserInfoDaySpo2::getDataDate);
|
wrapper.orderByDesc(WatchStatUserInfoDaySpo2::getDataDate);
|
||||||
wrapper.last("limit 1");
|
wrapper.last("limit 1");
|
||||||
@@ -1012,7 +1012,7 @@ public class WatchDataApiServiceImpl implements WatchDataApiService {
|
|||||||
wrapper.selectAs(WatchStatUserInfoDayStress::getMaxValue,WatchH5IndexItemNewVo::getDataMax);
|
wrapper.selectAs(WatchStatUserInfoDayStress::getMaxValue,WatchH5IndexItemNewVo::getDataMax);
|
||||||
wrapper.selectAs(WatchStatUserInfoDayStress::getMinValue,WatchH5IndexItemNewVo::getDataMin);
|
wrapper.selectAs(WatchStatUserInfoDayStress::getMinValue,WatchH5IndexItemNewVo::getDataMin);
|
||||||
wrapper.selectAs(WatchStatUserInfoDayStress::getAvgValue,WatchH5IndexItemNewVo::getDataAvg);
|
wrapper.selectAs(WatchStatUserInfoDayStress::getAvgValue,WatchH5IndexItemNewVo::getDataAvg);
|
||||||
wrapper.selectAs(WatchStatUserInfoDayStress::getLastUploadTime,WatchH5IndexItemNewVo::getDataDate);
|
wrapper.selectAs(WatchStatUserInfoDayStress::getLastUploadTime,WatchH5IndexItemNewVo::getDataDateNew);
|
||||||
wrapper.eq(WatchStatUserInfoDayStress::getUserId, userId);
|
wrapper.eq(WatchStatUserInfoDayStress::getUserId, userId);
|
||||||
wrapper.orderByDesc(WatchStatUserInfoDayStress::getDataDate);
|
wrapper.orderByDesc(WatchStatUserInfoDayStress::getDataDate);
|
||||||
wrapper.last("limit 1");
|
wrapper.last("limit 1");
|
||||||
@@ -1026,7 +1026,7 @@ public class WatchDataApiServiceImpl implements WatchDataApiService {
|
|||||||
wrapper.selectAs(WatchStatUserInfoDayTemp::getMaxValue,WatchH5IndexItemNewVo::getDataMax);
|
wrapper.selectAs(WatchStatUserInfoDayTemp::getMaxValue,WatchH5IndexItemNewVo::getDataMax);
|
||||||
wrapper.selectAs(WatchStatUserInfoDayTemp::getMinValue,WatchH5IndexItemNewVo::getDataMin);
|
wrapper.selectAs(WatchStatUserInfoDayTemp::getMinValue,WatchH5IndexItemNewVo::getDataMin);
|
||||||
wrapper.selectAs(WatchStatUserInfoDayTemp::getAvgValue,WatchH5IndexItemNewVo::getDataAvg);
|
wrapper.selectAs(WatchStatUserInfoDayTemp::getAvgValue,WatchH5IndexItemNewVo::getDataAvg);
|
||||||
wrapper.selectAs(WatchStatUserInfoDayTemp::getLastUploadTime,WatchH5IndexItemNewVo::getDataDate);
|
wrapper.selectAs(WatchStatUserInfoDayTemp::getLastUploadTime,WatchH5IndexItemNewVo::getDataDateNew);
|
||||||
wrapper.eq(WatchStatUserInfoDayTemp::getUserId, userId);
|
wrapper.eq(WatchStatUserInfoDayTemp::getUserId, userId);
|
||||||
wrapper.orderByDesc(WatchStatUserInfoDayTemp::getDataDate);
|
wrapper.orderByDesc(WatchStatUserInfoDayTemp::getDataDate);
|
||||||
wrapper.last("limit 1");
|
wrapper.last("limit 1");
|
||||||
|
|||||||
Reference in New Issue
Block a user