123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- 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;
- /**
- * <p>
- *
- * </p>
- *
- * @author 吴涛涛
- * @since 2019-08-01
- */
- @TableName("tb_user_company")
- public class UserCompany extends Model<UserCompany> {
- 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 +
- "}";
- }
- }
|