ProjectUser.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 com.baomidou.mybatisplus.annotation.TableField;
  7. import java.io.Serializable;
  8. /**
  9. * <p>
  10. *
  11. * </p>
  12. *
  13. * @author 吴涛涛
  14. * @since 2019-07-31
  15. */
  16. @TableName("tb_project_user")
  17. public class ProjectUser extends Model<ProjectUser> {
  18. private static final long serialVersionUID=1L;
  19. /**
  20. * 主键
  21. */
  22. @TableId(value = "id", type = IdType.AUTO)
  23. private Integer id;
  24. /**
  25. * 项目id
  26. */
  27. @TableField("project_id")
  28. private Integer projectId;
  29. /**
  30. * 用户id
  31. */
  32. @TableField("user_id")
  33. private Integer userId;
  34. /**
  35. * 所属公司id
  36. */
  37. @TableField("subordinate")
  38. private Integer subordinate;
  39. /**
  40. * 账号类型
  41. */
  42. @TableField("role_type")
  43. private Integer roleType;
  44. /**
  45. * 所属方类型 0-资产方 1-生产方
  46. */
  47. @TableField("subordinate_type")
  48. private Integer subordinateType;
  49. public Integer getId() {
  50. return id;
  51. }
  52. public void setId(Integer id) {
  53. this.id = id;
  54. }
  55. public Integer getProjectId() {
  56. return projectId;
  57. }
  58. public void setProjectId(Integer projectId) {
  59. this.projectId = projectId;
  60. }
  61. public Integer getUserId() {
  62. return userId;
  63. }
  64. public void setUserId(Integer userId) {
  65. this.userId = userId;
  66. }
  67. public Integer getSubordinate() {
  68. return subordinate;
  69. }
  70. public void setSubordinate(Integer subordinate) {
  71. this.subordinate = subordinate;
  72. }
  73. public Integer getRoleType() {
  74. return roleType;
  75. }
  76. public void setRoleType(Integer roleType) {
  77. this.roleType = roleType;
  78. }
  79. public Integer getSubordinateType() {
  80. return subordinateType;
  81. }
  82. public void setSubordinateType(Integer subordinateType) {
  83. this.subordinateType = subordinateType;
  84. }
  85. @Override
  86. protected Serializable pkVal() {
  87. return this.id;
  88. }
  89. @Override
  90. public String toString() {
  91. return "ProjectUser{" +
  92. "id=" + id +
  93. ", projectId=" + projectId +
  94. ", userId=" + userId +
  95. ", subordinate=" + subordinate +
  96. ", roleType=" + roleType +
  97. ", subordinateType=" + subordinateType +
  98. "}";
  99. }
  100. }