package com.hssx.cloudmodel.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
*
*
*
*
* @author 吴涛涛
* @since 2019-08-01
*/
@TableName("tb_user_company")
public class UserCompany extends Model {
private static final long serialVersionUID=1L;
/**
* 用户账号公司关联表主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 用户id
*/
@TableField("user_id")
private Integer userId;
/**
* 用户所属公司id
*/
@TableField("belong_company_id")
private Integer belongCompanyId;
/**
* 合作模具资产方公司id
*/
@TableField("cooperation_company_id")
private Integer cooperationCompanyId;
/**
* 创建时间
*/
@TableField("indate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private LocalDateTime indate;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getBelongCompanyId() {
return belongCompanyId;
}
public void setBelongCompanyId(Integer belongCompanyId) {
this.belongCompanyId = belongCompanyId;
}
public Integer getCooperationCompanyId() {
return cooperationCompanyId;
}
public void setCooperationCompanyId(Integer cooperationCompanyId) {
this.cooperationCompanyId = cooperationCompanyId;
}
public LocalDateTime getIndate() {
return indate;
}
public void setIndate(LocalDateTime indate) {
this.indate = indate;
}
@Override
protected Serializable pkVal() {
return this.id;
}
@Override
public String toString() {
return "UserCompany{" +
"id=" + id +
", userId=" + userId +
", belongCompanyId=" + belongCompanyId +
", cooperationCompanyId=" + cooperationCompanyId +
", indate=" + indate +
"}";
}
}