| | |
| | | package cc.mrbird.febs.common.core.converter; |
| | | |
| | | import cc.mrbird.febs.common.core.utils.DateUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.wuwenze.poi.convert.WriteConverter; |
| | | import com.wuwenze.poi.exception.ExcelKitWriteConverterException; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | return StringUtils.EMPTY; |
| | | } else { |
| | | try { |
| | | return DateUtil.formatCstTime(value.toString(), DateUtil.FULL_TIME_SPLIT_PATTERN); |
| | | if (StrUtil.isNotBlank(value.toString())&&value.toString().length()==19){ |
| | | return value.toString(); |
| | | }else{ |
| | | return DateUtil.formatCstTime(value.toString(), DateUtil.FULL_TIME_SPLIT_PATTERN); |
| | | } |
| | | |
| | | } catch (ParseException e) { |
| | | String message = "时间转换异常"; |
| | | log.error(message, e); |