UserCompany.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. package com.hssx.cloudmodel.entity;
  2. import com.baomidou.mybatisplus.annotation.TableName;
  3. import com.baomidou.mybatisplus.annotation.IdType;
  4. import com.baomidou.mybatisplus.extension.activerecord.Model;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import java.time.LocalDateTime;
  7. import com.baomidou.mybatisplus.annotation.TableField;
  8. import com.fasterxml.jackson.annotation.JsonFormat;
  9. import java.io.Serializable;
  10. /**
  11. * <p>
  12. *
  13. * </p>
  14. *
  15. * @author 吴涛涛
  16. * @since 2019-08-01
  17. */
  18. @TableName("tb_user_company")
  19. public class UserCompany extends Model<UserCompany> {
  20. private static final long serialVersionUID=1L;
  21. /**
  22. * 用户账号公司关联表主键
  23. */
  24. @TableId(value = "id", type = IdType.AUTO)
  25. private Integer id;
  26. /**
  27. * 用户id
  28. */
  29. @TableField("user_id")
  30. private Integer userId;
  31. /**
  32. * 用户所属公司id
  33. */
  34. @TableField("belong_company_id")
  35. private Integer belongCompanyId;
  36. /**
  37. * 合作模具资产方公司id
  38. */
  39. @TableField("cooperation_company_id")
  40. private Integer cooperationCompanyId;
  41. /**
  42. * 创建时间
  43. */
  44. @TableField("indate")
  45. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  46. private LocalDateTime indate;
  47. public Integer getId() {
  48. return id;
  49. }
  50. public void setId(Integer id) {
  51. this.id = id;
  52. }
  53. public Integer getUserId() {
  54. return userId;
  55. }
  56. public void setUserId(Integer userId) {
  57. this.userId = userId;
  58. }
  59. public Integer getBelongCompanyId() {
  60. return belongCompanyId;
  61. }
  62. public void setBelongCompanyId(Integer belongCompanyId) {
  63. this.belongCompanyId = belongCompanyId;
  64. }
  65. public Integer getCooperationCompanyId() {
  66. return cooperationCompanyId;
  67. }
  68. public void setCooperationCompanyId(Integer cooperationCompanyId) {
  69. this.cooperationCompanyId = cooperationCompanyId;
  70. }
  71. public LocalDateTime getIndate() {
  72. return indate;
  73. }
  74. public void setIndate(LocalDateTime indate) {
  75. this.indate = indate;
  76. }
  77. @Override
  78. protected Serializable pkVal() {
  79. return this.id;
  80. }
  81. @Override
  82. public String toString() {
  83. return "UserCompany{" +
  84. "id=" + id +
  85. ", userId=" + userId +
  86. ", belongCompanyId=" + belongCompanyId +
  87. ", cooperationCompanyId=" + cooperationCompanyId +
  88. ", indate=" + indate +
  89. "}";
  90. }
  91. }