|
|
|
@ -70,6 +70,20 @@ public abstract class BaseAPS extends BaseBean {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Double getCustomDouble(String code) {
|
|
|
|
|
Object value = customFields.get(code);
|
|
|
|
|
if (value == null) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (value.getClass() == String.class) {
|
|
|
|
|
return Double.valueOf((String) value);
|
|
|
|
|
} else if(value.getClass() == Double.class) {
|
|
|
|
|
return (Double)value;
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Boolean getCustomBoolean(String code) {
|
|
|
|
|
Object value = customFields.get(code);
|
|
|
|
|
if (value == null) {
|
|
|
|
|