| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- package com.jeesite.modules.mes.entity;
- import javax.validation.constraints.Size;
- import com.jeesite.common.entity.DataEntity;
- import com.jeesite.common.mybatis.annotation.Column;
- import com.jeesite.common.mybatis.annotation.JoinTable;
- import com.jeesite.common.mybatis.annotation.Table;
- import com.jeesite.common.mybatis.mapper.query.QueryType;
- import com.jeesite.modules.sys.entity.User;
- /**
- * mes_user_skillEntity
- * @author liuqing
- * @version 2024-08-18
- */
- @Table(name="mes_user_skill", alias="a", label="mes_user_skill信息", columns={
- @Column(name="user_code", attrName="userCode", label="用户id"),
- @Column(name="skill_id", attrName="skillId", label="技能id"),
- @Column(name="id", attrName="id", label="id", isPK=true),
- @Column(name="degree", attrName="degree", label="技能熟练度"),
- },
- joinTable = {
- @JoinTable(type = JoinTable.Type.JOIN, entity = MesSkill.class, attrName="this", alias="b",
- on = "a.skill_id = b.id",
- columns = {
- @Column(name="skill", attrName="skill", label="技能"),
- }),
- @JoinTable(type = JoinTable.Type.JOIN, entity = User.class, attrName="this", alias="c",
- on = "a.user_code = c.user_code",
- columns = {
- @Column(name="user_name", attrName="userName", label="用户名字"),
- @Column(name="login_code", attrName="loginCode", label="登录账号"),
- }
- ),
- @JoinTable(type = JoinTable.Type.JOIN, entity = MesLineProcess.class, attrName="this", alias="d",
- on = "d.id = b.line_process_id",
- columns = {
- @Column(name="oprno", attrName="oprno", label="工位号"),
- @Column(name="title", attrName="title", label="工位名称"),
- }
- ),
- @JoinTable(type= JoinTable.Type.JOIN, entity=MesLine.class, attrName="this", alias="e",
- on="e.id = b.line_id",
- columns={
- @Column(name="title", attrName="lineTitle", label="名称"),
- @Column(name="sn", attrName="lineSn", label="产线编号"),
- }),
- }, orderBy="a.id DESC"
- )
- public class MesUserSkill extends DataEntity<MesUserSkill> {
- private static final long serialVersionUID = 1L;
- private String userCode; // 用户id
- private String skillId; // 技能id
- private String skill;
- private String userName;
- private String oprno;
- private String title;
- private String lineTitle;
- private String loginCode;
- private String degree;
- private String email;
- private String mobile;
- public MesUserSkill(String userCode, String skillId) {
- this.userCode = userCode;
- this.skillId = skillId;
- }
- public MesUserSkill(String id, String userCode, String skillId) {
- super(id);
- this.userCode = userCode;
- this.skillId = skillId;
- }
- public String getDegree() {
- return degree;
- }
- public void setDegree(String degree) {
- this.degree = degree;
- }
- public String getLoginCode() {
- return loginCode;
- }
- public void setLoginCode(String loginCode) {
- this.loginCode = loginCode;
- }
- public String getLineTitle() {
- return lineTitle;
- }
- public void setLineTitle(String lineTitle) {
- this.lineTitle = lineTitle;
- }
- public String getLineSn() {
- return lineSn;
- }
- public void setLineSn(String lineSn) {
- this.lineSn = lineSn;
- }
- private String lineSn;
- public String getOprno() {
- return oprno;
- }
- public void setOprno(String oprno) {
- this.oprno = oprno;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public String getSkill() {
- return skill;
- }
- public void setSkill(String skill) {
- this.skill = skill;
- }
- public String getUserName() {
- return userName;
- }
- public void setUserName(String userName) {
- this.userName = userName;
- }
- public MesUserSkill() {
- this(null);
- }
- public MesUserSkill(String id){
- super(id);
- }
- @Size(min=0, max=64, message="用户id长度不能超过 64 个字符")
- public String getUserCode() {
- return userCode;
- }
- public void setUserCode(String userCode) {
- this.userCode = userCode;
- }
- @Size(min=0, max=64, message="技能id长度不能超过 64 个字符")
- public String getSkillId() {
- return skillId;
- }
- public void setSkillId(String skillId) {
- this.skillId = skillId;
- }
- public String getEmail() {
- return email;
- }
- public void setEmail(String email) {
- this.email = email;
- }
- public String getMobile() {
- return mobile;
- }
- public void setMobile(String mobile) {
- this.mobile = mobile;
- }
- }
|