|
|
@@ -50,10 +50,12 @@ public class BackInfoTranslationsServiceImpl extends ServiceImpl<BackInfoTransla
|
|
|
try {
|
|
|
declaredField.setAccessible(true);
|
|
|
Optional.ofNullable(declaredField.get(obj)).ifPresent(val -> {
|
|
|
- BackInfoTranslations backInfoTranslations = new BackInfoTranslations();
|
|
|
- backInfoTranslations.setFieldName(declaredField.getName());
|
|
|
- backInfoTranslations.setDesp(val.toString());
|
|
|
- fields.add(backInfoTranslations);
|
|
|
+ if (val instanceof String) {
|
|
|
+ BackInfoTranslations backInfoTranslations = new BackInfoTranslations();
|
|
|
+ backInfoTranslations.setFieldName(declaredField.getName());
|
|
|
+ backInfoTranslations.setDesp(val.toString());
|
|
|
+ fields.add(backInfoTranslations);
|
|
|
+ }
|
|
|
});
|
|
|
} catch (IllegalAccessException e) {
|
|
|
}
|