TimeCloseEntity.java 1001 Bytes
package com.viontech.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.*;
import java.util.Date;

/***
 * 系统定时关闭
 */
@Entity
@Table(name = "tb_time_close")
public class TimeCloseEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    Integer unid;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Column(name = "start_dt", nullable = true)
    Date startDt;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Column(name = "end_dt", nullable = true)
    Date endDt;

    public Integer getUnid() {
        return unid;
    }

    public void setUnid(Integer unid) {
        this.unid = unid;
    }

    public Date getStartDt() {
        return startDt;
    }

    public void setStartDt(Date startDt) {
        this.startDt = startDt;
    }

    public Date getEndDt() {
        return endDt;
    }

    public void setEndDt(Date endDt) {
        this.endDt = endDt;
    }
}