Commit 020cacbd authored by hongguangwu's avatar hongguangwu

MVP1.7.9-日志时间格式化

parent d2f0aa66
package com.yifu.cloud.plus.v1.yifu.archives.entity; package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.baomidou.mybatisplus.annotation.*; 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.common.mybatis.base.BaseEntity;
import com.yifu.cloud.plus.v1.yifu.insurances.entity.TEmployeeInsurancePre; import com.yifu.cloud.plus.v1.yifu.insurances.entity.TEmployeeInsurancePre;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
...@@ -42,6 +43,7 @@ public class EmployeeRegistrationPre extends BaseEntity { ...@@ -42,6 +43,7 @@ public class EmployeeRegistrationPre extends BaseEntity {
@Schema(description = "就职岗位") @Schema(description = "就职岗位")
private String position; private String position;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
@Schema(description = "入职日期") @Schema(description = "入职日期")
private Date joinLeaveDate; private Date joinLeaveDate;
...@@ -75,6 +77,7 @@ public class EmployeeRegistrationPre extends BaseEntity { ...@@ -75,6 +77,7 @@ public class EmployeeRegistrationPre extends BaseEntity {
@Schema(description = "数据来源") @Schema(description = "数据来源")
private String dataSource; private String dataSource;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
@Schema(description = "预计收集时间") @Schema(description = "预计收集时间")
private LocalDateTime expectedCollectionTime; private LocalDateTime expectedCollectionTime;
...@@ -104,6 +107,7 @@ public class EmployeeRegistrationPre extends BaseEntity { ...@@ -104,6 +107,7 @@ public class EmployeeRegistrationPre extends BaseEntity {
@Schema(description = "确认人") @Schema(description = "确认人")
private String confirmUser; private String confirmUser;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
@Schema(description = "确认时间") @Schema(description = "确认时间")
private Date confirmTime; private Date confirmTime;
......
...@@ -126,7 +126,7 @@ public class TEmployeePreLogServiceImpl extends ServiceImpl<TEmployeePreLogMappe ...@@ -126,7 +126,7 @@ public class TEmployeePreLogServiceImpl extends ServiceImpl<TEmployeePreLogMappe
return wrapper; return wrapper;
} }
private SerializerFeature[] features = new SerializerFeature[]{ private static final SerializerFeature[] features = new SerializerFeature[]{
WriteMapNullValue, WriteNullNumberAsZero, WriteNullListAsEmpty, WriteMapNullValue, WriteNullNumberAsZero, WriteNullListAsEmpty,
WriteNullStringAsEmpty, WriteDateUseDateFormat 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