fix(watch): 漏合并
This commit is contained in:
-8
@@ -49,20 +49,12 @@ public class UserStat {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (watchH5IndexItemNewVo.getWdType().equals("sleep")) {
|
||||
this.latest = parseSafe(watchH5IndexItemNewVo.getDataMax());// 总时长
|
||||
this.max = parseSafe(watchH5IndexItemNewVo.getDataMax());
|
||||
this.min = parseSafe(watchH5IndexItemNewVo.getDataMin());
|
||||
this.avg = parseSafe(watchH5IndexItemNewVo.getDataAvg());
|
||||
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.getDataDateNew();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 安全解析字符串为 BigDecimal,入参为 null 或空串时返回 null
|
||||
|
||||
Reference in New Issue
Block a user