Commit 73770550 authored by hongguangwu's avatar hongguangwu

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

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