package com.jeesite.modules.mes.entity; import javax.validation.Valid; import javax.validation.constraints.Size; import com.jeesite.common.entity.Extend; import java.util.Date; import com.jeesite.common.mybatis.annotation.JoinTable; import com.jeesite.common.mybatis.annotation.JoinTable.Type; import com.fasterxml.jackson.annotation.JsonFormat; import java.util.List; import com.jeesite.common.collect.ListUtils; 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; /** * 生成工序表Entity * @author hzd * @version 2023-06-18 */ @Table(name="mes_line_process", alias="a", label="生成工序表信息", columns={ @Column(name="id", attrName="id", label="编号", isPK=true), @Column(name="line_id", attrName="lineId", label="生产线id"), @Column(name="title", attrName="title", label="工序名称", queryType=QueryType.LIKE), @Column(name="remark", attrName="remark", label="备注",queryType=QueryType.LIKE), @Column(name="status", attrName="status", label="状态", comment="状态(0正常 1删除 2停用)", isUpdate=false), @Column(name="sorts", attrName="sorts", label="排序正序", isUpdateForce=true), @Column(name="create_by", attrName="createBy", label="创建人", isUpdate=false, isQuery=false), @Column(name="create_date", attrName="createDate", label="创建日期", isUpdate=false, isQuery=false, isUpdateForce=true), @Column(name="update_by", attrName="updateBy", label="修改人", isQuery=false), @Column(name="update_date", attrName="updateDate", label="修改时间", isQuery=false, isUpdateForce=true), @Column(name="oprno", attrName="oprno", label="工序号", queryType=QueryType.LIKE), @Column(name="repeat", attrName="repeat", label="重复工作"), @Column(name="quality", attrName="quality", label="防呆"), @Column(name="devices", attrName="devices", label="设备编号"), @Column(name="gzs", attrName="gzs", label="工装编号"), @Column(name="stop", attrName="stop", label="设备启动"), @Column(name="pid", attrName="pid", label="父级ID",queryType=QueryType.EQ), }, joinTable={ @JoinTable(type=Type.JOIN, entity=MesLine.class, attrName="this", alias="b", on="b.id = a.line_id", columns={ @Column(name="title", attrName="lineTitle", label="名称"), @Column(name="sn", attrName="lineSn", label="产线编号"), }), }, orderBy="a.sorts ASC,a.create_date ASC" ) public class MesLineProcess extends DataEntity { private static final long serialVersionUID = 1L; private String lineId; // 生产线id private String title; // 工序名称 private String remark; // 备注 private Integer sorts; // 排序正序 private String lineTitle; private String lineSn; private String oprno; private String repeat; private String quality; private String devices; private String gzs; private Integer stop; private String stopTitle; private String pid; private Integer shiftCount; private Integer dayCount; private Integer shiftOkCount; private Integer shiftNgCount; private Integer shift5305; private Integer day5305; private Integer shift5308; private Integer day5308; private Integer shift8301; private Integer day8301; private Integer shift8302; private Integer day8302; private Integer shift7939; private Integer day7939; private Integer shift7933; private Integer day7933; private Integer shiftyn; //印尼版 private Integer dayyn; //印尼版 //用于工位授权 private String userCode; private String userProcessString; private String line; private List mesLineProcessUserList = ListUtils.newArrayList(); // 子表列表 @Size(min=0, max=64, message="生产线id长度不能超过 64 个字符") public String getLineId() { return lineId; } public void setLineId(String lineId) { this.lineId = lineId; } @Size(min=0, max=100, message="工序名称长度不能超过 100 个字符") public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } @Size(min=0, max=100, message="工序号长度不能超过 100 个字符") public String getOprno() { return oprno; } public void setOprno(String oprno) { this.oprno = oprno; } @Size(min=0, max=255, message="备注长度不能超过 255 个字符") public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public Integer getSorts() { return sorts; } public void setSorts(Integer sorts) { this.sorts = sorts; } public String getLineTitle() { return lineTitle; } public void setLineTitle(String lineTitle) { this.lineTitle = lineTitle; } public String getRepeat() { return repeat; } public void setRepeat(String repeat) { this.repeat = repeat; } public String getQuality() { return quality; } public void setQuality(String quality) { this.quality = quality; } public String getDevices() { return devices; } public void setDevices(String devices) { this.devices = devices; } public String getGzs() { return gzs; } public void setGzs(String gzs) { this.gzs = gzs; } public String getLineSn() { return lineSn; } public void setLineSn(String lineSn) { this.lineSn = lineSn; } public Integer getStop() { return stop; } public void setStop(Integer stop) { this.stop = stop; } public String getPid() { return pid; } public void setPid(String pid) { this.pid = pid; } public Integer getShiftCount() { return shiftCount; } public void setShiftCount(Integer shiftCount) { this.shiftCount = shiftCount; } public Integer getDayCount() { return dayCount; } public void setDayCount(Integer dayCount) { this.dayCount = dayCount; } public Integer getShiftOkCount() { return shiftOkCount; } public void setShiftOkCount(Integer shiftOkCount) { this.shiftOkCount = shiftOkCount; } public Integer getShiftNgCount() { return shiftNgCount; } public void setShiftNgCount(Integer shiftNgCount) { this.shiftNgCount = shiftNgCount; } public Integer getShift5305() { return shift5305; } public void setShift5305(Integer shift5305) { this.shift5305 = shift5305; } public Integer getDay5305() { return day5305; } public void setDay5305(Integer day5305) { this.day5305 = day5305; } public Integer getShift5308() { return shift5308; } public void setShift5308(Integer shift5308) { this.shift5308 = shift5308; } public Integer getDay5308() { return day5308; } public void setDay5308(Integer day5308) { this.day5308 = day5308; } public Integer getShift8301() { return shift8301; } public void setShift8301(Integer shift8301) { this.shift8301 = shift8301; } public Integer getDay8301() { return day8301; } public void setDay8301(Integer day8301) { this.day8301 = day8301; } public Integer getShift8302() { return shift8302; } public void setShift8302(Integer shift8302) { this.shift8302 = shift8302; } public Integer getDay8302() { return day8302; } public void setDay8302(Integer day8302) { this.day8302 = day8302; } public Integer getShift7939() { return shift7939; } public void setShift7939(Integer shift7939) { this.shift7939 = shift7939; } public Integer getDay7939() { return day7939; } public void setDay7939(Integer day7939) { this.day7939 = day7939; } public Integer getShift7933() { return shift7933; } public void setShift7933(Integer shift7933) { this.shift7933 = shift7933; } public Integer getDay7933() { return day7933; } public void setDay7933(Integer day7933) { this.day7933 = day7933; } public String getStopTitle() { return stopTitle; } public void setStopTitle(String stopTitle) { this.stopTitle = stopTitle; } public Integer getShiftyn() { return shiftyn; } public void setShiftyn(Integer shiftyn) { this.shiftyn = shiftyn; } public Integer getDayyn() { return dayyn; } public void setDayyn(Integer dayyn) { this.dayyn = dayyn; } public String getUserCode() { return userCode; } public void setUserCode(String userCode) { this.userCode = userCode; } public String getUserProcessString() { return userProcessString; } public void setUserProcessString(String userProcessString) { this.userProcessString = userProcessString; } public String getLine() { return line; } public void setLine(String line) { this.line = line; } public List getMesLineProcessUserList() { return mesLineProcessUserList; } public void setMesLineProcessUserList(List mesLineProcessUserList) { this.mesLineProcessUserList = mesLineProcessUserList; } }