RStoreConfederate.java 1.2 KB
package vion.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import vion.dto.BaseDTO;

import java.util.Date;

/**
 * 项目干系人
 */
@Getter
@Setter
@TableName(value = "r_store_confederate")
public class RStoreConfederate extends BaseDTO {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 项目id
     */
    @TableField(value = "store_id")
    private Long storeId;

    /**
     * 职位
     */
    @TableField(value = "\"position\"")
    private String position;

    /**
     * 姓名
     */
    @TableField(value = "\"name\"", condition = SqlCondition.LIKE)
    private String name;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}