Commit 73770550 authored by hongguangwu's avatar hongguangwu

远程接口,时间转化失败,加上注解

parent fbc7479d
...@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity; ...@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.alibaba.excel.annotation.format.DateTimeFormat; import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute; import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants; import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity; import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
...@@ -88,6 +89,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -88,6 +89,7 @@ public class TEmployeeInfo extends BaseEntity {
@DateTimeFormat("yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@Schema(description = "身份证有效期起") @Schema(description = "身份证有效期起")
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
@JsonFormat(pattern = "yyyy-MM-dd")
private Date validityStart; private Date validityStart;
/** /**
...@@ -96,6 +98,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -96,6 +98,7 @@ public class TEmployeeInfo extends BaseEntity {
@DateTimeFormat("yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@Schema(description = "身份证有效期止") @Schema(description = "身份证有效期止")
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
@JsonFormat(pattern = "yyyy-MM-dd")
private Date validityEnd; private Date validityEnd;
/** /**
...@@ -109,6 +112,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -109,6 +112,7 @@ public class TEmployeeInfo extends BaseEntity {
*/ */
@DateTimeFormat("yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@Schema(description = "出生日期") @Schema(description = "出生日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date empBirthday; private Date empBirthday;
/** /**
...@@ -231,6 +235,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -231,6 +235,7 @@ public class TEmployeeInfo extends BaseEntity {
@DateTimeFormat("yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@Schema(description = "入学时间") @Schema(description = "入学时间")
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
@JsonFormat(pattern = "yyyy-MM-dd")
private Date admissionDate; private Date admissionDate;
/** /**
...@@ -239,6 +244,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -239,6 +244,7 @@ public class TEmployeeInfo extends BaseEntity {
@DateTimeFormat("yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@Schema(description = "毕业时间") @Schema(description = "毕业时间")
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
@JsonFormat(pattern = "yyyy-MM-dd")
private Date gradutionDate; private Date gradutionDate;
/** /**
...@@ -327,6 +333,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -327,6 +333,7 @@ public class TEmployeeInfo extends BaseEntity {
*/ */
@Schema(description = "减档时间") @Schema(description = "减档时间")
@TableField(updateStrategy = FieldStrategy.IGNORED) @TableField(updateStrategy = FieldStrategy.IGNORED)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date leaveTime; private Date leaveTime;
/** /**
......
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