|
@@ -2,15 +2,18 @@ package com.wtkj.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
import org.springblade.core.mp.base.BaseEntity;
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
* @author Blizzard
|
|
@@ -56,4 +59,10 @@ public class TaskContract extends BaseEntity {
|
|
|
@ApiModelProperty(value = "签订年")
|
|
|
private Integer year;
|
|
|
|
|
|
+ @TableField("sign_date")
|
|
|
+ @ApiModelProperty(value = "签订日期")
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd")
|
|
|
+ private Date signDate;
|
|
|
+
|
|
|
}
|