| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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.Table;
- import com.jeesite.common.mybatis.mapper.query.QueryType;
- /**
- * 生产订单工件表Entity
- * @author sxl
- * @version 2026-07-18
- */
- @Table(name="mes_order_sn", alias="a", label="生产订单工件表信息", columns={
- @Column(name="id", attrName="id", label="id", isPK=true),
- @Column(name="order_id", attrName="orderId", label="订单编码"),
- @Column(name="sn", attrName="sn", label="工件码"),
- @Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false, isUpdateForce=true),
- @Column(name="create_by", attrName="createBy", label="创建人", isUpdate=false, isQuery=false),
- @Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false, isUpdateForce=true),
- @Column(name="update_by", attrName="updateBy", label="更新人", isQuery=false),
- }, orderBy="a.update_date DESC"
- )
- public class MesOrderSn extends DataEntity<MesOrderSn> {
-
- private static final long serialVersionUID = 1L;
- private String orderId; // 订单编码
- private String sn; // 工件码
- public MesOrderSn() {
- this(null);
- }
-
- public MesOrderSn(String id){
- super(id);
- }
-
- @Size(min=0, max=64, message="订单编码长度不能超过 64 个字符")
- public String getOrderId() {
- return orderId;
- }
- public void setOrderId(String orderId) {
- this.orderId = orderId;
- }
-
- @Size(min=0, max=64, message="工件码长度不能超过 64 个字符")
- public String getSn() {
- return sn;
- }
- public void setSn(String sn) {
- this.sn = sn;
- }
-
- }
|