开发OTA备案工具-车辆升级
This commit is contained in:
+5
-7
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user