mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-26 22:15:06 +08:00
update 电池算法应用Service
This commit is contained in:
@@ -108,6 +108,12 @@ public class ChargeAlgorithmRecordServiceImpl implements ChargeAlgorithmRecordSe
|
||||
String securitySystemLevel = record.getSecuritySystemLevel();
|
||||
ChargeAlgorithmRecordVO.SecuritySystem securitySystem = JSON.parseObject(securitySystemLevel, ChargeAlgorithmRecordVO.SecuritySystem.class);
|
||||
|
||||
String failureMetricsStr = record.getFailureMetrics();
|
||||
ChargeAlgorithmRecordVO.FailureMetrics failureMetrics = JSON.parseObject(failureMetricsStr, ChargeAlgorithmRecordVO.FailureMetrics.class);
|
||||
|
||||
String performanceMetricsStr = record.getPerformanceMetrics();
|
||||
ChargeAlgorithmRecordVO.PerformanceMetrics performanceMetrics = JSON.parseObject(performanceMetricsStr, ChargeAlgorithmRecordVO.PerformanceMetrics.class);
|
||||
|
||||
ChargeAlgorithmRecordVO vo = ChargeAlgorithmRecordVO.builder()
|
||||
.orderCode(record.getOrderCode())
|
||||
.score(record.getScore())
|
||||
@@ -128,7 +134,8 @@ public class ChargeAlgorithmRecordServiceImpl implements ChargeAlgorithmRecordSe
|
||||
.maxAllowableVoltageAlarm(record.getMaxAllowableVoltageAlarm())
|
||||
.maxAllowableElectricityAlarm(record.getMaxAllowableElectricityAlarm())
|
||||
.securitySystemLevel(securitySystem)
|
||||
.failureMetrics(record.getFailureMetrics())
|
||||
.failureMetrics(failureMetrics)
|
||||
.performanceMetrics(performanceMetrics)
|
||||
|
||||
.build();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user