yun-zuoyi
nies 4 years ago
commit b8662be266

@ -7,16 +7,13 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;
@ -33,7 +30,9 @@ import java.util.List;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_AREA")
@Table(name = "MES_AREA", indexes = {
@Index(columnList = "AREA_CODE")
})
@Api("生产区域")
public class MesArea extends BaseBean implements Serializable {
private static final long serialVersionUID = 4320604250440221043L;

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -29,7 +27,10 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_CONFIG")
@Table(name = "MES_CONFIG", indexes = {
@Index(columnList = "CFG_CODE"),
@Index(columnList = "CFG_CODE, CFG_KEY")
})
@Api("mes配置表")
public class MesConfig extends BaseBean implements Serializable {
private static final long serialVersionUID = 2462824203686013806L;

@ -23,7 +23,9 @@ import javax.persistence.*;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_CONTAINER")
@Table(name = "MES_CONTAINER", indexes = {
@Index(columnList = "CT_NO")
})
@Api("MES_容器类型")
public class MesContainer extends BaseBean {
private static final long serialVersionUID = -3843389042411645111L;

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -29,7 +27,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_CUSTOMER")
@Table(name = "MES_CUSTOMER", indexes = {
@Index(columnList = "CUSTOMER_CODE")
})
@Api("客户信息")
public class MesCustomer extends BaseBean implements Serializable {
private static final long serialVersionUID = 6049359006918853570L;

@ -26,7 +26,11 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_CUSTOMER_PART")
@Table(name = "MES_CUSTOMER_PART", indexes = {
@Index(columnList = "CUSTOMER_CODE"),
@Index(columnList = "PART_NO"),
@Index(columnList = "CUSTOMER_PART_NO")
})
@Api("客户零件关系")
public class MesCustomerPart extends BaseBean implements Serializable {
private static final long serialVersionUID = 2600442373171403668L;

@ -5,16 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
@ -28,7 +25,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_DATA_OBJECT")
@Table(name = "MES_DATA_OBJECT", indexes = {
@Index(columnList = "OBJECT_CODE")
})
@Api("数据对象")
public class MesDataObject extends BaseBean implements Serializable {

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;
@ -30,7 +27,9 @@ import java.util.List;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_DEFECT")
@Table(name = "MES_DEFECT", indexes = {
@Index(columnList = "DEFECT_CODE")
})
@Api("缺陷表")
public class MesDefect extends BaseBean implements Serializable {

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
@ -29,7 +26,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_KPSN_RULE")
@Table(name = "MES_KPSN_RULE", indexes = {
@Index(columnList = "PART_NO")
})
@Api("关键件条码校验规则")
public class MesKpsnRule extends BaseBean implements Serializable {
private static final long serialVersionUID = 2592621267902381297L;

@ -27,7 +27,9 @@ import java.util.List;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_LABEL_TEMPLATE")
@Table(name = "MES_LABEL_TEMPLATE", indexes = {
@Index(columnList = "TEMPLATE_CODE")
})
@Api(value = "打印模板", description = "打印模板")
public class MesLabelTemplate extends BaseBean implements Serializable {

@ -28,7 +28,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_LABEL_TEMPLATE_PARAM")
@Table(name = "MES_LABEL_TEMPLATE_PARAM", indexes = {
@Index(columnList = "TEMPLATE_CODE")
})
@Api(value = "打印模板参数", description = "打印模板参数")
public class MesLabelTemplateParam extends BaseBean implements Serializable {

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -29,7 +27,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_METHOD")
@Table(name = "MES_METHOD", indexes = {
@Index(columnList = "METHOD_CODE")
})
@Api("系统业务方法")
public class MesMethod extends BaseBean implements Serializable {
private static final long serialVersionUID = -3254086662292709833L;

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -27,7 +25,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_NUMBER_RULE")
@Table(name = "MES_NUMBER_RULE", indexes = {
@Index(columnList = "RULE_CODE")
})
@Api("条码生成规则")
public class MesNumberRule extends BaseBean implements Serializable {
private static final long serialVersionUID = -7547623897602721464L;

@ -5,16 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Version;
import java.io.Serializable;
/**
@ -28,7 +25,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_NUMBER_SERIALNO")
@Table(name = "MES_NUMBER_SERIALNO", indexes = {
@Index(columnList = "CURRENT_NUMBER_PREFIX")
})
@Api("编码序号")
public class MesNumberSerialno extends BaseBean implements Serializable {
private static final long serialVersionUID = -6004402998083665263L;

@ -5,16 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
@ -28,7 +25,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_OBJECT_CFG")
@Table(name = "MES_OBJECT_CFG", indexes = {
@Index(columnList = "OBJECT_CODE")
})
@Api("对象结构")
public class MesObjectCfg extends BaseBean implements Serializable {
private static final long serialVersionUID = 55753384888695913L;

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -29,7 +27,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_OBJECT_DAO")
@Table(name = "MES_OBJECT_DAO", indexes = {
@Index(columnList = "OBJECT_CODE")
})
@Api("MES_对象与dao对应关系")
public class MesObjectDao extends BaseBean implements Serializable {
private static final long serialVersionUID = 2286752362359060L;

@ -4,15 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -28,7 +26,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PCN")
@Table(name = "MES_PCN", indexes = {
@Index(columnList = "PCN_CODE")
})
@Api("PCN节点")
public class MesPcn extends BaseBean implements Serializable {
private static final long serialVersionUID = -9150091413555406397L;

@ -5,16 +5,13 @@ import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
@ -30,7 +27,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PCN_SYNC_CFG")
@Table(name = "MES_PCN_SYNC_CFG", indexes = {
@Index(columnList = "PCN_CODE, SYNC_TYPE")
})
@Api("MES_PCN_同步配置")
public class MesPcnSyncCfg extends BaseBean implements Serializable {
private static final long serialVersionUID = 7270930330576127126L;

@ -6,16 +6,13 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -31,7 +28,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PCN_SYS_USER_OFFLINE")
@Table(name = "MES_PCN_SYS_USER_OFFLINE", indexes = {
@Index(columnList = "LOGIN_NAME")
})
@Api(value = "账号离线登陆表", description = "账号离线登陆表。")
public class MesPcnSysUserOffline extends BaseBean implements Serializable {
private static final long serialVersionUID = -7483799830588482021L;

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
@ -29,7 +26,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PROCESS")
@Table(name = "MES_PROCESS", indexes = {
@Index(columnList = "PROCESS_CODE")
})
@Api("工序")
public class MesProcess extends BaseBean implements Serializable {
private static final long serialVersionUID = -615476712907856558L;

@ -5,15 +5,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -27,7 +25,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PROD_PACK")
@Table(name = "MES_PROD_PACK", indexes = {
@Index(columnList = "PART_NO")
})
@Api("产品包装关系")
public class MesProdPack extends BaseBean implements Serializable {
private static final long serialVersionUID = -5748484568201154400L;

@ -4,15 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -28,7 +26,12 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_PROD_ROUTE_CFG")
@Table(name = "MES_PROD_ROUTE_CFG", indexes = {
@Index(columnList = "ROUTE_CODE"),
@Index(columnList = "WORK_CENTER_CODE"),
@Index(columnList = "ROUTE_CODE, WORK_CENTER_CODE"),
@Index(columnList = "WORK_CENTER_CODE, ROUTE_TYPE")
})
@Api("产品类流程配置表")
public class MesProdRouteCfg extends BaseBean implements Serializable {
private static final long serialVersionUID = -3903152693262813917L;

@ -29,7 +29,8 @@ import java.io.Serializable;
@Table(name = "MES_PROD_ROUTE_OPT_PARAM", indexes = {
@Index(columnList = "ROUTE_CODE"),
@Index(columnList = "PROCESS_CODE"),
@Index(columnList = "STEP_CODE")
@Index(columnList = "STEP_CODE"),
@Index(columnList = "PROD_ROUTE_CFG_ID")
})
@Api("产品流程配置操作参数表")
public class MesProdRouteOptParam extends BaseBean implements Serializable {

@ -26,7 +26,10 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_ROUTE")
@Table(name = "MES_ROUTE", indexes = {
@Index(columnList = "ROUTE_CODE"),
@Index(columnList = "ROUTE_TYPE")
})
@Api("流程表")
public class MesRoute extends BaseBean implements Serializable {
private static final long serialVersionUID = -3616935751787295145L;

@ -4,15 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -28,7 +26,10 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_ROUTE_PROCESS")
@Table(name = "MES_ROUTE_PROCESS", indexes = {
@Index(columnList = "ROUTE_CODE"),
@Index(columnList = "ROUTE_CODE, PROCESS_CODE")
})
@Api("流程工序关系")
public class MesRouteProcess extends BaseBean implements Serializable {
private static final long serialVersionUID = -1248219638779313299L;

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
@ -29,7 +26,12 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_ROUTE_PROCESS_CELL")
@Table(name = "MES_ROUTE_PROCESS_CELL", indexes = {
@Index(columnList = "ROUTE_CODE"),
@Index(columnList = "ROUTE_CODE, WORK_CELL_CODE"),
@Index(columnList = "WORK_CENTER_CODE, WORK_CELL_CODE"),
@Index(columnList = "ROUTE_CODE, WORK_CENTER_CODE, WORK_CELL_CODE")
})
@Api("工序工作单元对照")
public class MesRouteProcessCell extends BaseBean implements Serializable {
private static final long serialVersionUID = 4823057491756814599L;

@ -5,17 +5,15 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.annotation.Transient;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -31,7 +29,10 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_SHIFT")
@Table(name = "MES_SHIFT", indexes = {
@Index(columnList = "SHIFT_CODE"),
@Index(columnList = "AREA_CODE, WORK_CENTER_CODE, SHIFT_CODE")
})
@Api("班次信息")
public class MesShift extends BaseBean implements Serializable {
private static final long serialVersionUID = 4001070186534674096L;

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -27,7 +24,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_STATE_MACHINE")
@Table(name = "MES_STATE_MACHINE", indexes = {
@Index(columnList = "SM_CODE")
})
@Api("MES状态机")
public class MesStateMachine extends BaseBean implements Serializable {

@ -22,7 +22,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_STATE_MACHINE_STATUS")
@Table(name = "MES_STATE_MACHINE_STATUS", indexes = {
@Index(columnList = "SM_CODE")
})
@Api("MES状态机步骤")
public class MesStateMachineStatus extends BaseBean implements Serializable {
private static final long serialVersionUID = 6093522587973076640L;

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.io.Serializable;
@ -25,7 +26,9 @@ import java.io.Serializable;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_STATE_MACHINE_STEP")
@Table(name = "MES_STATE_MACHINE_STEP", indexes = {
@Index(columnList = "SM_CODE")
})
@Api("状态机工步参数配置表")
public class MesStateMachineStep extends BaseBean implements Serializable {

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
@ -29,7 +26,9 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_STEP")
@Table(name = "MES_STEP", indexes = {
@Index(columnList = "STEP_CODE")
})
@Api("工步")
public class MesStep extends BaseBean implements Serializable {
private static final long serialVersionUID = -1106608189453496947L;

@ -4,15 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -26,7 +24,11 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_STEP_GROUP")
@Table(name = "MES_STEP_GROUP", indexes = {
@Index(columnList = "STEP_CODE"),
@Index(columnList = "AMG_ID"),
@Index(columnList = "STEP_CODE, AMG_ID")
})
@Api("工步集")
public class MesStepGroup extends BaseBean implements Serializable {
private static final long serialVersionUID = 1876053661752102998L;

@ -4,16 +4,13 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
@ -31,7 +28,10 @@ import java.util.Map;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_STEP_PARAM")
@Table(name = "MES_STEP_PARAM", indexes = {
@Index(columnList = "STEP_CODE"),
@Index(columnList = "STEP_CODE, PARAM_CODE")
})
@Api("工步参数")
public class MesStepParam extends BaseBean implements Serializable {
private static final long serialVersionUID = 6709455994477993263L;

@ -6,17 +6,14 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;
@ -33,7 +30,10 @@ import java.util.List;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_WORK_CELL")
@Table(name = "MES_WORK_CELL", indexes = {
@Index(columnList = "WORK_CENTER_CODE"),
@Index(columnList = "WORK_CENTER_CODE, WORK_CELL_CODE")
})
@Api("工作单元")
public class MesWorkCell extends BaseBean implements Serializable {
private static final long serialVersionUID = 8552890090536989486L;

@ -6,16 +6,13 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;
@ -32,7 +29,10 @@ import java.util.List;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "MES_WORK_CENTER")
@Table(name = "MES_WORK_CENTER", indexes = {
@Index(columnList = "WORK_CENTER_CODE"),
@Index(columnList = "AREA_CODE")
})
@Api("工作中心")
public class MesWorkCenter extends BaseBean implements Serializable {
private static final long serialVersionUID = 5583253625290231595L;

Loading…
Cancel
Save