old mode 100644
new mode 100755
| | |
| | | return newDate; |
| | | } |
| | | |
| | | if (value instanceof BigDecimal) { |
| | | if (value instanceof BigDecimal && target == String.class) { |
| | | BigDecimal bd = (BigDecimal) value; |
| | | return bd.toPlainString(); |
| | | } |
| | |
| | | } |
| | | |
| | | if (target == int.class || target == Integer.class) { |
| | | if(StringUtil.isNullOrNone(value)){ |
| | | return 0; |
| | | } |
| | | return Integer.parseInt(String.valueOf(value)); |
| | | } |
| | | |
| | | if (target == long.class || target == Long.class) { |
| | | if(StringUtil.isNullOrNone(value)){ |
| | | return 0; |
| | | } |
| | | return Long.parseLong(String.valueOf(value)); |
| | | } |
| | | |
| | | if (target == double.class || target == Double.class) { |
| | | if(StringUtil.isNullOrNone(value)){ |
| | | return 0; |
| | | } |
| | | return Double.parseDouble(String.valueOf(value)); |
| | | } |
| | | |