|
@@ -2,12 +2,14 @@ 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 java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
@@ -22,6 +24,9 @@ import java.util.Date;
|
|
|
@Data
|
|
|
public class TaskCost extends BaseEntity {
|
|
|
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+
|
|
|
@TableField("task_id")
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
private Long taskId;
|
|
@@ -36,10 +41,14 @@ public class TaskCost extends BaseEntity {
|
|
|
|
|
|
@ApiModelProperty(value = "开始时间")
|
|
|
@TableField("start_time")
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private Date startTime;
|
|
|
|
|
|
@ApiModelProperty(value = "结束时间")
|
|
|
@TableField("end_time")
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private Date endTime;
|
|
|
|
|
|
@ApiModelProperty(value = "交通方式 字典值")
|