| | |
| | | |
| | | @Override |
| | | protected String convertToString(Object value) throws Throwable { |
| | | logger.debug("convertToString当前对象类型start" + value.getClass()); |
| | | |
| | | if (value instanceof Date) { |
| | | return DateUtil.getFormatTimeString((Date) value, DateUtil.DATE_FORMATE_STRING_A); |
| | | } |
| | | logger.debug("当前对象类型" + value.getClass()); |
| | | logger.debug("convertToString当前对象类型" + value.getClass()); |
| | | return super.convertToString(value); |
| | | } |
| | | |
| | | @Override |
| | | protected Object convertToType(Class type, Object value) throws Throwable { |
| | | //System.out.printf("12313"); |
| | | logger.debug("convertToType当前对象类型start" + value.getClass()); |
| | | |
| | | if (value instanceof Date) { |
| | | return DateUtil.getFormatTimeString((Date) value, DateUtil.DATE_FORMATE_STRING_A); |
| | | } |
| | | logger.debug("convertToType当前对象类型" + value.getClass()); |
| | | return value.toString(); |
| | | } |
| | | |