Merge remote-tracking branch 'origin/dev_2nd_LCYH' into dev_2nd_LCYH

This commit is contained in:
wangzhijiang
2023-03-28 21:58:52 +08:00
@@ -85,7 +85,7 @@ public class ComparisonUtil<T> {
for (T oldObj : oldList) { for (T oldObj : oldList) {
String oldId = idField.get(oldObj).toString(); String oldId = idField.get(oldObj).toString();
if (oldId.equals(id.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)) { 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(newVal); Object newTitleVal = tableField.get(newClazz);
if (ObjectUtils.isNotEmpty(newTitleVal)) { if (ObjectUtils.isNotEmpty(newTitleVal)) {
newTitleStr = newTitleVal.toString(); newTitleStr = newTitleVal.toString();
} }