修改 device id
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package com.xzzn.common.utils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
@ -719,4 +720,15 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
||||
public static BigDecimal getBigDecimal(Object s){
|
||||
|
||||
try {
|
||||
return new BigDecimal(s.toString());
|
||||
} catch (NumberFormatException e) {
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user