排队取号时间格式修改

This commit is contained in:
2024-09-18 11:09:32 +08:00
parent 116ced92cb
commit e9fa13fdd8
2 changed files with 20 additions and 12 deletions

View File

@@ -1,11 +1,13 @@
package cn.ysk.cashier.mybatis.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import javax.validation.constraints.Size;
import java.time.Instant;
import java.util.Date;
@Getter
@Setter
@@ -38,23 +40,29 @@ public class TbCallQueue {
@Column(name = "state")
private Byte state;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Column(name = "create_time")
private Instant createTime;
private Date createTime;
@Column(name = "call_time")
private Instant callTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date callTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Column(name = "call_count")
private Integer callCount;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Column(name = "pass_time")
private Instant passTime;
private Date passTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Column(name = "cancel_time")
private Instant cancelTime;
private Date cancelTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Column(name = "confirm_time")
private Instant confirmTime;
private Date confirmTime;
@Size(max = 255)
@Column(name = "note")