MesUserSkill.java 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. package com.jeesite.modules.mes.entity;
  2. import javax.validation.constraints.Size;
  3. import com.jeesite.common.entity.DataEntity;
  4. import com.jeesite.common.mybatis.annotation.Column;
  5. import com.jeesite.common.mybatis.annotation.JoinTable;
  6. import com.jeesite.common.mybatis.annotation.Table;
  7. import com.jeesite.common.mybatis.mapper.query.QueryType;
  8. import com.jeesite.modules.sys.entity.User;
  9. /**
  10. * mes_user_skillEntity
  11. * @author liuqing
  12. * @version 2024-08-18
  13. */
  14. @Table(name="mes_user_skill", alias="a", label="mes_user_skill信息", columns={
  15. @Column(name="user_code", attrName="userCode", label="用户id"),
  16. @Column(name="skill_id", attrName="skillId", label="技能id"),
  17. @Column(name="id", attrName="id", label="id", isPK=true),
  18. @Column(name="degree", attrName="degree", label="技能熟练度"),
  19. },
  20. joinTable = {
  21. @JoinTable(type = JoinTable.Type.JOIN, entity = MesSkill.class, attrName="this", alias="b",
  22. on = "a.skill_id = b.id",
  23. columns = {
  24. @Column(name="skill", attrName="skill", label="技能"),
  25. }),
  26. @JoinTable(type = JoinTable.Type.JOIN, entity = User.class, attrName="this", alias="c",
  27. on = "a.user_code = c.user_code",
  28. columns = {
  29. @Column(name="user_name", attrName="userName", label="用户名字"),
  30. @Column(name="login_code", attrName="loginCode", label="登录账号"),
  31. }
  32. ),
  33. @JoinTable(type = JoinTable.Type.JOIN, entity = MesLineProcess.class, attrName="this", alias="d",
  34. on = "d.id = b.line_process_id",
  35. columns = {
  36. @Column(name="oprno", attrName="oprno", label="工位号"),
  37. @Column(name="title", attrName="title", label="工位名称"),
  38. }
  39. ),
  40. @JoinTable(type= JoinTable.Type.JOIN, entity=MesLine.class, attrName="this", alias="e",
  41. on="e.id = b.line_id",
  42. columns={
  43. @Column(name="title", attrName="lineTitle", label="名称"),
  44. @Column(name="sn", attrName="lineSn", label="产线编号"),
  45. }),
  46. }, orderBy="a.id DESC"
  47. )
  48. public class MesUserSkill extends DataEntity<MesUserSkill> {
  49. private static final long serialVersionUID = 1L;
  50. private String userCode; // 用户id
  51. private String skillId; // 技能id
  52. private String skill;
  53. private String userName;
  54. private String oprno;
  55. private String title;
  56. private String lineTitle;
  57. private String loginCode;
  58. private String degree;
  59. private String email;
  60. private String mobile;
  61. public MesUserSkill(String userCode, String skillId) {
  62. this.userCode = userCode;
  63. this.skillId = skillId;
  64. }
  65. public MesUserSkill(String id, String userCode, String skillId) {
  66. super(id);
  67. this.userCode = userCode;
  68. this.skillId = skillId;
  69. }
  70. public String getDegree() {
  71. return degree;
  72. }
  73. public void setDegree(String degree) {
  74. this.degree = degree;
  75. }
  76. public String getLoginCode() {
  77. return loginCode;
  78. }
  79. public void setLoginCode(String loginCode) {
  80. this.loginCode = loginCode;
  81. }
  82. public String getLineTitle() {
  83. return lineTitle;
  84. }
  85. public void setLineTitle(String lineTitle) {
  86. this.lineTitle = lineTitle;
  87. }
  88. public String getLineSn() {
  89. return lineSn;
  90. }
  91. public void setLineSn(String lineSn) {
  92. this.lineSn = lineSn;
  93. }
  94. private String lineSn;
  95. public String getOprno() {
  96. return oprno;
  97. }
  98. public void setOprno(String oprno) {
  99. this.oprno = oprno;
  100. }
  101. public String getTitle() {
  102. return title;
  103. }
  104. public void setTitle(String title) {
  105. this.title = title;
  106. }
  107. public String getSkill() {
  108. return skill;
  109. }
  110. public void setSkill(String skill) {
  111. this.skill = skill;
  112. }
  113. public String getUserName() {
  114. return userName;
  115. }
  116. public void setUserName(String userName) {
  117. this.userName = userName;
  118. }
  119. public MesUserSkill() {
  120. this(null);
  121. }
  122. public MesUserSkill(String id){
  123. super(id);
  124. }
  125. @Size(min=0, max=64, message="用户id长度不能超过 64 个字符")
  126. public String getUserCode() {
  127. return userCode;
  128. }
  129. public void setUserCode(String userCode) {
  130. this.userCode = userCode;
  131. }
  132. @Size(min=0, max=64, message="技能id长度不能超过 64 个字符")
  133. public String getSkillId() {
  134. return skillId;
  135. }
  136. public void setSkillId(String skillId) {
  137. this.skillId = skillId;
  138. }
  139. public String getEmail() {
  140. return email;
  141. }
  142. public void setEmail(String email) {
  143. this.email = email;
  144. }
  145. public String getMobile() {
  146. return mobile;
  147. }
  148. public void setMobile(String mobile) {
  149. this.mobile = mobile;
  150. }
  151. }