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

This commit is contained in:
高嵩
2023-03-30 16:12:53 +08:00
parent 42d30ee55a
commit b55744b27e
@@ -196,13 +196,11 @@ public class ComparisonUtil<T> {
if (!newStr.equals(oldStr)) {
Object newVal = field.get(newClazz);
String newTitleStr = "";
if (ObjectUtils.isNotEmpty(newVal)) {
Field tableField = newClazz.getClass().getDeclaredField(tableTitle);
tableField.setAccessible(true);
Object newTitleVal = tableField.get(newClazz);
if (ObjectUtils.isNotEmpty(newTitleVal)) {
newTitleStr = newTitleVal.toString();
}
Field tableField = newClazz.getClass().getDeclaredField(tableTitle);
tableField.setAccessible(true);
Object newTitleVal = tableField.get(newClazz);
if (ObjectUtils.isNotEmpty(newTitleVal)) {
newTitleStr = newTitleVal.toString();
}
String content = newTitleStr + "-" + title + "由'" + oldStr + "'改为'" + newStr + "'";
resList.add(new OtaBaCxTxjl(otaId, otaModuleEnum.getName(), content));