Commit cc2eae8c451a1831802bde5e19a41269d5be60e3

Authored by tangying
1 parent 10e28047

DataUtils类增加getDouble方法

src/main/java/com/huaheng/common/utils/DataUtils.java
... ... @@ -64,6 +64,17 @@ public class DataUtils {
64 64 }
65 65  
66 66 /**
  67 + * 将对象转为Double
  68 + * @param object
  69 + * @return
  70 + */
  71 + public static Double getDouble(Object object)
  72 + {
  73 + if (object == null) return null;
  74 + else return new Double(object.toString());
  75 + }
  76 +
  77 + /**
67 78 * 将long转为Integer
68 79 * @param object
69 80 * @return
... ...