| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- package com.jeesite.modules.mes.entity;
- import com.jeesite.common.entity.DataEntity;
- import com.jeesite.common.mybatis.annotation.Column;
- import com.jeesite.common.mybatis.annotation.Table;
- import com.jeesite.common.mybatis.mapper.query.QueryType;
- import javax.validation.constraints.NotBlank;
- import javax.validation.constraints.Size;
- /**
- * 返修问题清单Entity
- * @author hzd
- * @version 2023-10-11
- */
- @Table(name="mes_repair_items", alias="a", label="返修问题清单信息", columns={
- @Column(name="id", attrName="id", label="id", isPK=true),
- @Column(name="oprno", attrName="oprno", label="工位号"),
- @Column(name="line_sn", attrName="lineSn", label="产线编号"),
- @Column(name="title", attrName="title", label="标题", queryType=QueryType.LIKE),
- @Column(name="content", attrName="content", label="修复描述"),
- @Column(name="status", attrName="status", label="状态", isUpdate=false),
- @Column(name="introduction", attrName="introduction", label="返工动作介绍"),
- @Column(name="inspection_points", attrName="inspectionPoints", label="检查要点"),
- @Column(name="return_oprno", attrName="returnOprno", label="回归工位"),
- @Column(name="type", attrName="type", label="返工类型"),
- @Column(name="create_by", attrName="createBy", label="create_by", isUpdate=false, isQuery=false),
- @Column(name="create_date", attrName="createDate", label="create_date", isUpdate=false, isQuery=false, isUpdateForce=true),
- @Column(name="update_by", attrName="updateBy", label="update_by", isQuery=false),
- @Column(name="update_date", attrName="updateDate", label="更新日期", isQuery=false, isUpdateForce=true),
- @Column(name="defect_name", attrName="defectName", label="缺陷名称", queryType=QueryType.LIKE),
- @Column(name="defect_position", attrName="defectPosition", label="缺陷位置", queryType=QueryType.LIKE),
- @Column(name="repair_sop_number", attrName="repairSopNumber", label="返修SOP编号"),
- @Column(name="hei_bai_distinction", attrName="heiBaiDistinction", label="黑白名单区分"),
- @Column(name="is_rework", attrName="isRework", label="是否可以返修"),
- @Column(name="remark", attrName="remark", label="备注"),
- },
- // 注意:不要关联 mes_line_process,同一 oprno 在多个产线下都有工位记录,
- // LEFT JOIN 会把一条黑白名单放大成多行(列表重复、删除时一次消失多条)。
- // 如需展示工位名称,请在 Service/Controller 中单独查询回填。
- orderBy="a.update_date DESC"
- )
- public class MesRepairItems extends DataEntity<MesRepairItems> {
- private static final long serialVersionUID = 1L;
- private String oprno; // 工位号
- private String title; // 标题
- private String content; // 返修过程
- private String lineSn; // 产线编号
- private String introduction; // 返工动作简要介绍
- private String inspectionPoints; // 检验要点
- private String returnOprno; // 回归工位
- private String type; // 离线/在线返工
- private String defectName; //缺陷名称
- private String defectPosition;//缺陷位置
- private String repairSopNumber;//修复SOP编号
- private String heiBaiDistinction;//黑白区分
- private String isRework;//是否返修
- private String remark;//备注
- private String oprnoName;
- public String getDefectName() {
- return defectName;
- }
- public void setDefectName(String defectName) {
- this.defectName = defectName;
- }
- public String getRemark() {
- return remark;
- }
- public void setRemark(String remark) {
- this.remark = remark;
- }
- public String getIsRework() {
- return isRework;
- }
- public void setIsRework(String isRework) {
- this.isRework = isRework;
- }
- public String getHeiBaiDistinction() {
- return heiBaiDistinction;
- }
- public void setHeiBaiDistinction(String heiBaiDistinction) {
- this.heiBaiDistinction = heiBaiDistinction;
- }
- public String getRepairSopNumber() {
- return repairSopNumber;
- }
- public void setRepairSopNumber(String repairSopNumber) {
- this.repairSopNumber = repairSopNumber;
- }
- public String getDefectPosition() {
- return defectPosition;
- }
- public void setDefectPosition(String defectPosition) {
- this.defectPosition = defectPosition;
- }
- public String getOprnoName() {
- return oprnoName;
- }
- public void setOprnoName(String oprnoName) {
- this.oprnoName = oprnoName;
- }
- public String getIntroduction() {
- return introduction;
- }
- public void setIntroduction(String actionIntroduction) {
- this.introduction = actionIntroduction;
- }
- public String getInspectionPoints() {
- return inspectionPoints;
- }
- public void setInspectionPoints(String inspectionPoints) {
- this.inspectionPoints = inspectionPoints;
- }
- public String getReturnOprno() {
- return returnOprno;
- }
- public void setReturnOprno(String returnOprno) {
- this.returnOprno = returnOprno;
- }
- public String getLineSn() {
- return lineSn;
- }
- public void setLineSn(String lineSn) {
- this.lineSn = lineSn;
- }
- public MesRepairItems() {
- this(null);
- }
- public MesRepairItems(String id){
- super(id);
- }
- @NotBlank(message="工位号不能为空")
- @Size(min=0, max=20, message="工位号长度不能超过 20 个字符")
- public String getOprno() {
- return oprno;
- }
- public void setOprno(String oprno) {
- this.oprno = oprno;
- }
- // @NotBlank(message="标题不能为空")
- @Size(min=0, max=255, message="标题长度不能超过 255 个字符")
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public String getContent() {
- return content;
- }
- public void setContent(String content) {
- this.content = content;
- }
- public String getType() {
- return type;
- }
- public void setType(String type) {
- this.type = type;
- }
- }
|