public BigDecimal getByAttributeName(ThmdGwqriR thmdGwqriR, String attributeName){
for (Field field : thmdGwqriR.getClass().getDeclaredFields()) {
field.setAccessible(true);
try{
if (attributeName.toLowerCase().equals(field.getName().toLowerCase())){
return new BigDecimal(field.get(thmdGwqriR).toString());
}
}
catch (Exception e){
e.printStackTrace();
return null;
}
}
return null;
}
07-10
442