开发OTA备案工具-车辆升级
This commit is contained in:
+5
-7
@@ -196,13 +196,11 @@ public class ComparisonUtil<T> {
|
|||||||
if (!newStr.equals(oldStr)) {
|
if (!newStr.equals(oldStr)) {
|
||||||
Object newVal = field.get(newClazz);
|
Object newVal = field.get(newClazz);
|
||||||
String newTitleStr = "空";
|
String newTitleStr = "空";
|
||||||
if (ObjectUtils.isNotEmpty(newVal)) {
|
Field tableField = newClazz.getClass().getDeclaredField(tableTitle);
|
||||||
Field tableField = newClazz.getClass().getDeclaredField(tableTitle);
|
tableField.setAccessible(true);
|
||||||
tableField.setAccessible(true);
|
Object newTitleVal = tableField.get(newClazz);
|
||||||
Object newTitleVal = tableField.get(newClazz);
|
if (ObjectUtils.isNotEmpty(newTitleVal)) {
|
||||||
if (ObjectUtils.isNotEmpty(newTitleVal)) {
|
newTitleStr = newTitleVal.toString();
|
||||||
newTitleStr = newTitleVal.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
String content = newTitleStr + "-" + title + "由'" + oldStr + "'改为'" + newStr + "'";
|
String content = newTitleStr + "-" + title + "由'" + oldStr + "'改为'" + newStr + "'";
|
||||||
resList.add(new OtaBaCxTxjl(otaId, otaModuleEnum.getName(), content));
|
resList.add(new OtaBaCxTxjl(otaId, otaModuleEnum.getName(), content));
|
||||||
|
|||||||
Reference in New Issue
Block a user