Newer
Older
newfiber-data-adapter / src / main / java / org / springnewfiber / dataadapter / sswj / entity / BaseSwjEntity.java
package org.springnewfiber.dataadapter.sswj.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: newfiber-data-adapter
 * @description:
 * @author: djt
 * @create: 2022-04-21 19:22
 **/
@Data
public abstract class BaseSwjEntity implements Serializable {
    /**
     * 站码
     */
    @ApiModelProperty(value = "站码")
    @TableField(value = "DATA_UP_UUID")
    @JSONField(name = "st")
    private String dataUpUuid;
    /**
     * 数据状态
     */
    @ApiModelProperty(value = "数据状态")
    @TableField(value = "DATA_UP_STATUS")
    @JSONField(serialize = false)
    private String dataUpStatus;
    /**
     * 录入时间
     */
    @ApiModelProperty(value = "录入时间")
    @TableField(value = "DATA_UP_TIME")
    @JSONField(name = "ut", format = "yyyy-MM-dd HH:mm:ss")
    private Date dataUpTime;
    @JSONField(serialize = false)
    @JsonIgnore
    public abstract String getTTFileName();
    @JSONField(serialize = false)
    @JsonIgnore
    public abstract Date getTTDate();
    @TableField(exist = false)
    @JSONField(serialize = false)
    @JsonIgnore
    String YMDHMBAK = "YMDHM";
    @TableField(exist = false)
    @JSONField(serialize = false)
    @JsonIgnore
    String DATETIMEBAK = "DATETIME";
    @TableField(exist = false)
    @JSONField(serialize = false)
    @JsonIgnore
    String TMBAK = "TM";
}