package org.springblade.modules.dispatcher.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 派遣单位实体类
|
*
|
* @author zhongrj
|
* @since 2021-07-07
|
*/
|
@Data
|
@TableName("sys_dispatcher_unit")
|
public class DispatcherUnit implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键id
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 派遣单位名称
|
*/
|
private String name;
|
|
/**
|
* 保安公司 tenant_id
|
*/
|
@TableField("tenant_id")
|
private String tenantId;
|
|
/**
|
* 联系人
|
*/
|
private String linkman;
|
|
/**
|
* 联系电话
|
*/
|
private String phone;
|
|
/**
|
* 省
|
*/
|
private Integer province;
|
|
/**
|
* 市
|
*/
|
private Integer city;
|
|
/**
|
* 区
|
*/
|
private Integer district;
|
|
/**
|
* 详细地址
|
*/
|
private String address;
|
|
/**
|
* 创建时间
|
*/
|
@TableField("create_time")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
|
}
|