开发OTA备案工具-车辆升级

This commit is contained in:
高嵩
2023-03-28 18:59:37 +08:00
parent 24f08f90df
commit 0fd317c03c
@@ -85,7 +85,7 @@ public class ComparisonUtil<T> {
for (T oldObj : oldList) {
String oldId = idField.get(oldObj).toString();
if (oldId.equals(id.toString())) {
resList.addAll(comparisonCertRecord(otaId, otaModuleEnum, tableTitle, newObj, oldObj, sysDictService));
resList.addAll(comparisonCertRecord(otaId, otaModuleEnum, tableTitle, oldObj, newObj, sysDictService));
}
}
}
@@ -148,7 +148,7 @@ public class ComparisonUtil<T> {
if (ObjectUtils.isNotEmpty(newVal)) {
Field tableField = newClazz.getClass().getDeclaredField(tableTitle);
tableField.setAccessible(true);
Object newTitleVal = tableField.get(newVal);
Object newTitleVal = tableField.get(newClazz);
if (ObjectUtils.isNotEmpty(newTitleVal)) {
newTitleStr = newTitleVal.toString();
}