Commit 020cacbd authored by hongguangwu's avatar hongguangwu

MVP1.7.9-日志时间格式化

parent d2f0aa66
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import com.yifu.cloud.plus.v1.yifu.insurances.entity.TEmployeeInsurancePre;
import io.swagger.v3.oas.annotations.media.Schema;
......@@ -42,6 +43,7 @@ public class EmployeeRegistrationPre extends BaseEntity {
@Schema(description = "就职岗位")
private String position;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
@Schema(description = "入职日期")
private Date joinLeaveDate;
......@@ -75,6 +77,7 @@ public class EmployeeRegistrationPre extends BaseEntity {
@Schema(description = "数据来源")
private String dataSource;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
@Schema(description = "预计收集时间")
private LocalDateTime expectedCollectionTime;
......@@ -104,6 +107,7 @@ public class EmployeeRegistrationPre extends BaseEntity {
@Schema(description = "确认人")
private String confirmUser;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
@Schema(description = "确认时间")
private Date confirmTime;
......
......@@ -126,7 +126,7 @@ public class TEmployeePreLogServiceImpl extends ServiceImpl<TEmployeePreLogMappe
return wrapper;
}
private SerializerFeature[] features = new SerializerFeature[]{
private static final SerializerFeature[] features = new SerializerFeature[]{
WriteMapNullValue, WriteNullNumberAsZero, WriteNullListAsEmpty,
WriteNullStringAsEmpty, WriteDateUseDateFormat
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment