Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/bean/MesDefectRecord.javayun-zuoyi
commit
1eca1a963a
@ -0,0 +1,65 @@
|
||||
package cn.estsh.i3plus.pojo.andon.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseModelBean;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.AndonEnumUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description: 自处理维护配置
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-10-19-14:56
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name="ANDON_DISPOSAL_MAINTEN_CFG")
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Api("Andon自处理维护配置")
|
||||
public class AndonDisposalMaintenCfg extends BaseBean {
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam(value = "工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam(value = "工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@AnnoOutputColumn(refClass = AndonEnumUtil.ALARM_TYPE.class,refForeignKey = "value",value = "description")
|
||||
@Column(name = "ALARM_CODE")
|
||||
@ApiParam(value = "安灯类型代码")
|
||||
private String alarmCode;
|
||||
|
||||
@Column(name = "AC_CODE")
|
||||
@ApiParam(value = "呼叫原因代码")
|
||||
private String acCode;
|
||||
|
||||
@Column(name = "EM_CODE")
|
||||
@ApiParam(value = "处理措施代码")
|
||||
private String emCode;
|
||||
|
||||
@Column(name = "RP_WHERE")
|
||||
@ApiParam(value = "有效时长")
|
||||
private Integer rpWhere;
|
||||
|
||||
@Column(name = "FAIL_TIME")
|
||||
@ApiParam(value = "失败次数")
|
||||
private Integer failTime;
|
||||
|
||||
@Column(name = "SUCCESS_TIME")
|
||||
@ApiParam(value = "成功次数")
|
||||
private Integer successTime;
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package cn.estsh.i3plus.pojo.andon.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.andon.model.BaseManageQueue;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-10-18-9:13
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name="ANDON_KNOWLEDGE_BASE")
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Api("ANDON知识库")
|
||||
public class AndonKnowledgeBase extends BaseManageQueue {
|
||||
@Column(name = "FLOW_STATUS")
|
||||
@ApiParam(value = "审批状态")
|
||||
private Integer flowStatus;
|
||||
|
||||
@Column(name = "FLOW_MEMO")
|
||||
@ApiParam(value = "审批意见")
|
||||
private String flowMemo;
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.andon.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.andon.bean.AndonDisposalMaintenCfg;
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
|
||||
/**
|
||||
* @Description: 自处理维护配置
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-10-19-15:02
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IAndonDisposalMaintenCfgRepository extends BaseRepository<AndonDisposalMaintenCfg, Long> {
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.andon.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.andon.bean.AndonKnowledgeBase;
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description: 知识库管理
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-10-18-9:16
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface IAndonKnowledgeBaseRepository extends BaseRepository<AndonKnowledgeBase, Long> {
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package cn.estsh.i3plus.pojo.aps.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
|
||||
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
|
||||
import cn.estsh.i3plus.pojo.aps.holders.EWorkPlan;
|
||||
import cn.estsh.i3plus.pojo.aps.holders.EWorkRelation;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description :工作计划
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2019-10-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="APS_WORK_PLAN")
|
||||
@Api("工作计划")
|
||||
public class WorkPlan extends BaseAPS {
|
||||
private Date prevSetStart;
|
||||
private Date prevSetEnd;
|
||||
private String prevSetTime;
|
||||
private Date produceStart;
|
||||
private Date produceEnd;
|
||||
private String produceTime;
|
||||
private Date postSetStart;
|
||||
private Date postSetEnd;
|
||||
private String postSetTime;
|
||||
private Date lockStart;
|
||||
private Date lockEnd;
|
||||
private String lockTime;
|
||||
|
||||
private Date edgeTime;
|
||||
|
||||
private Long workId;
|
||||
private Long resourceId;
|
||||
|
||||
public Work getWork() { return BeanRelation.get(this, EWorkPlan.Work); }
|
||||
|
||||
public void setWork(Work work) {
|
||||
this.workId = work != null ? work.getId() : 0l;
|
||||
BeanRelation.set(this, EWorkPlan.Work, work);
|
||||
}
|
||||
|
||||
public Resource getResource() { return BeanRelation.get(this, EWorkPlan.Resource); }
|
||||
|
||||
public void setResource(Resource resource) {
|
||||
this.resourceId = resource != null ? resource.getId() : 0l;
|
||||
BeanRelation.set(this, EWorkPlan.Resource, resource);
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package cn.estsh.i3plus.pojo.aps.enums;
|
||||
|
||||
/**
|
||||
* @Description :预置的资源选择规则
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2019-09-17
|
||||
* @Modify:
|
||||
**/
|
||||
public enum RESOURCE_CHOISE_RULE {
|
||||
PREV_SET_TIME, // 前设置时间
|
||||
PRODUCE_TIME, // 生产时间
|
||||
POST_SET_TIME, // 后设置时间
|
||||
WORK_WAIT_TIME, // 工作等待时间
|
||||
RES_BALANCE, // 资源均衡度
|
||||
SAME_MATERIAL, // 相同物料
|
||||
SAME_ORDER, // 相同订单
|
||||
NEARLY_WORK, // 前后工作
|
||||
POST_RESOURCE, // 后资源制约
|
||||
SAME_ASS_RESOURCE, // 相同副资源
|
||||
RESOURCE_PRIORITY; // 资源优先级
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package cn.estsh.i3plus.pojo.aps.enums;
|
||||
|
||||
/**
|
||||
* @Description :预置的工作排序规则
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2019-09-17
|
||||
* @Modify:
|
||||
**/
|
||||
public enum WORK_SORT_RULE {
|
||||
NONE,
|
||||
ORDER_LET, // 订单交货期
|
||||
ORDER_PRIORITY, // 订单优先级
|
||||
ORDER_EST, // 订单最早开始时刻
|
||||
ORDER_COUNT, // 订单数量
|
||||
ORDER_RECEIVE_DATE,// 订单接单日期
|
||||
ORDER_LET_SUB_EST,// 订单交货期与订单最早开始时刻之差
|
||||
ORDER_PRESSURE, // 订单紧迫程度
|
||||
ORDER_SURPLUS, // 订单余裕度
|
||||
NOPLAN_OPERATION_SIZE,// 残留工序数
|
||||
REMAIN_PRODUCE_TIME, // 残留生产时间
|
||||
MIN_OPERATION_REMAIN_TIME,// 最小工序宽裕时间
|
||||
WORK_LET, // 工作最晚结束时刻
|
||||
WORK_EST, // 工作最早开始时刻
|
||||
INVENTORY_RELA, // 订单物品库存量相对值
|
||||
FIRST_WORK_BEGIN,// 订单首工作上次开始时刻
|
||||
HAVE_HIGH_WORK, // 订单中含有高级别工作
|
||||
WORK_RESOURCE_SIZE, // 工作的可用资源数
|
||||
TOP_ORDER_LET,// 顶层订单的交货期
|
||||
TOP_ORDER_CODE, // 顶层订单代码
|
||||
TOP_ORDER_PRIORITY; // 顶层订单优先级
|
||||
}
|
@ -1,4 +1,6 @@
|
||||
package cn.estsh.i3plus.pojo.aps.holders;
|
||||
|
||||
public enum EResCalendar {
|
||||
DayShifts,
|
||||
Resources
|
||||
}
|
||||
|
@ -1,13 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.aps.holders;
|
||||
|
||||
public enum EWork {
|
||||
Order,
|
||||
ParentWork,
|
||||
WorkResources,
|
||||
WorkInputs,
|
||||
WorkOutputs,
|
||||
PrevRelations,
|
||||
PostRelations,
|
||||
Operation,
|
||||
PlanFeedbacks
|
||||
Order, // 订单
|
||||
ParentWork, // 父工作
|
||||
WorkResources, // 工作资源
|
||||
WorkInputs, // 工作输入
|
||||
WorkOutputs, // 工作输出
|
||||
PrevRelations, // 前关联
|
||||
PostRelations, // 后关联
|
||||
Operation, // 工序
|
||||
PlanFeedbacks, // 工作计划反馈
|
||||
WorkPlan // 关联的为主资源的计划
|
||||
}
|
||||
|
@ -0,0 +1,7 @@
|
||||
package cn.estsh.i3plus.pojo.aps.holders;
|
||||
|
||||
public enum EWorkPlan {
|
||||
Work,
|
||||
Resource,
|
||||
AssPlans // 关联的为副资源的工作计划
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package cn.estsh.i3plus.pojo.aps.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.aps.bean.WorkPlan;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface IWorkPlanRepository extends CrudRepository<WorkPlan, Long> {
|
||||
}
|
@ -1,3 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Class name="ResCalendar">
|
||||
<Relation field="DayShifts" name="DayShift" type="MULTI_TO_MULTI">
|
||||
</Relation>
|
||||
<Relation field="Resources" name="Resource" type="MULTI_TO_MULTI">
|
||||
</Relation>
|
||||
</Class>
|
@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Class name="WorkInput">
|
||||
<Relation field="WorkRelations" name="WorkRelation" reverse="WorkInput" type="ONE_TO_MULTI" owner="true">
|
||||
</Relation>
|
||||
<Relation field="Material" name="Material" reverse="WorkInputs" type="MULTI_TO_ONE" owner="false">
|
||||
</Relation>
|
||||
<Relation field="OperInput" name="OperInput" reverse="WorkInputs" type="MULTI_TO_ONE" owner="false">
|
||||
</Relation>
|
||||
<Relation field="WorkRelations" name="WorkRelation" reverse="WorkInput" type="ONE_TO_MULTI" owner="true">
|
||||
</Relation>
|
||||
<Relation field="Material" name="Material" reverse="WorkInputs" type="MULTI_TO_ONE" owner="false">
|
||||
</Relation>
|
||||
<Relation field="OperInput" name="OperInput" reverse="WorkInputs" type="MULTI_TO_ONE" owner="false">
|
||||
</Relation>
|
||||
</Class>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Class name="WorkPlan">
|
||||
<Relation field="Work" name="Work" reverse="WorkPlan" type="ONE_TO_ONE" owner="true">
|
||||
</Relation>
|
||||
<Relation field="Resource" name="Resource" type="MULTI_TO_ONE" owner="false">
|
||||
</Relation>
|
||||
<Relation field="AssPlans" name="WorkPlan" type="ONE_TO_MULTI" owner="false">
|
||||
</Relation>
|
||||
</Class>
|
@ -0,0 +1,42 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:25
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DEFECT")
|
||||
@Api("缺陷表")
|
||||
public class MesDefect extends BaseBean {
|
||||
|
||||
@Column(name = "DEFECT_CODE")
|
||||
@ApiParam("缺陷代码")
|
||||
private String defectCode;
|
||||
|
||||
@Column(name = "DEFECT_NAME")
|
||||
@ApiParam("缺陷名称")
|
||||
private String defectName;
|
||||
|
||||
@Column(name = "DEFECT_TYPE")
|
||||
@ApiParam("缺陷类型")
|
||||
private String defectType;
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:28
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DEFECT_CAUSE")
|
||||
@Api("缺陷原因表")
|
||||
public class MesDefectCause extends BaseBean {
|
||||
|
||||
@Column(name = "DC_CODE")
|
||||
@ApiParam("缺陷原因代码")
|
||||
private String dcCode;
|
||||
|
||||
@Column(name = "DC_NAME")
|
||||
@ApiParam("缺陷原因名称")
|
||||
private String dcName;
|
||||
|
||||
@Column(name = "DC_TYPE")
|
||||
@ApiParam("缺陷原因类型")
|
||||
private String dcType;
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 19:53
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="MES_DEFECT_RECORD")
|
||||
@Api("不良信息记录表")
|
||||
public class MesDefectRecord extends BaseBean {
|
||||
@Column(name="SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name="PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name="PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name="DEFECT_CODE")
|
||||
@ApiParam("缺陷代码")
|
||||
private String defectCode;
|
||||
|
||||
@Column(name="DEFECT_NAME")
|
||||
@ApiParam("缺陷名称")
|
||||
private String defectName;
|
||||
|
||||
@Column(name="DEFECT_LOCATION")
|
||||
@ApiParam("缺陷位置")
|
||||
private Integer defectLocation;
|
||||
|
||||
@Column(name="REPAIR_STATUS")
|
||||
@ApiParam("维修状态")
|
||||
private Integer repairStatus;
|
||||
|
||||
@Column(name="WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name="WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name="MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 15:03
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DISMANTLE_RECORD")
|
||||
@Api("物料拆解记录表")
|
||||
public class MesDismantleRecord extends BaseBean {
|
||||
|
||||
@Column(name = "DISMANTLE_ID")
|
||||
@ApiParam("拆解编号")
|
||||
private String dismantleId;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "PARENT_PART_NO")
|
||||
@ApiParam("产品物料编码")
|
||||
private String parentPartNo;
|
||||
|
||||
@Column(name = "PARENT_PART_NAME")
|
||||
@ApiParam("产品物料名称")
|
||||
private String parentPartName;
|
||||
|
||||
@Column(name = "SN")
|
||||
@ApiParam("产品条码")
|
||||
private String sn;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("产品数量")
|
||||
private Integer qty;
|
||||
|
||||
@Column(name = "DISMANTLE_QTY")
|
||||
@ApiParam("拆解数")
|
||||
private Integer dismantleQty;
|
||||
|
||||
@Column(name = "ITEM_PART_NO")
|
||||
@ApiParam("子物料编码")
|
||||
private String itemPartNo;
|
||||
|
||||
@Column(name = "ITEM_PART_NAME")
|
||||
@ApiParam("子物料名称")
|
||||
private String itemPartName;
|
||||
|
||||
@Column(name = "OK_QTY")
|
||||
@ApiParam("合格数")
|
||||
private Integer okQty;
|
||||
|
||||
@Column(name = "MISS_QTY")
|
||||
@ApiParam("缺失数")
|
||||
private Integer missQty;
|
||||
|
||||
@Column(name = "SCRAP_QTY")
|
||||
@ApiParam("报废数")
|
||||
private Integer scrapQty;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String meno;
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PRODUCE_CTGY_PICTURE")
|
||||
@Api("产品类型图片表")
|
||||
public class MesProduceCtgyPicture extends BaseBean {
|
||||
|
||||
@Column(name = "PRODUCE_CTGY_CODE")
|
||||
@ApiParam("产品类型代码")
|
||||
private String produceCtgyCode;
|
||||
|
||||
@Column(name = "SIDE_LOCATION")
|
||||
@ApiParam("面位")
|
||||
private String sideLocation;
|
||||
|
||||
@Column(name = "PICTURE_URL")
|
||||
@ApiParam("图片URL")
|
||||
private String pictureUrl;
|
||||
|
||||
@Column(name = "PICTURE_NAME")
|
||||
@ApiParam("图片名称")
|
||||
private String pictureName;
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:33
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_REPAIR_RECORD")
|
||||
@Api("维修信息记录表")
|
||||
public class MesRepairRecord extends BaseBean {
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("产品物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "DEFECT_CODE")
|
||||
@ApiParam("缺陷代码")
|
||||
private String defectCode;
|
||||
|
||||
@Column(name = "DEFECT_NAME")
|
||||
@ApiParam("缺陷名称")
|
||||
private String defectName;
|
||||
|
||||
@Column(name = "SIDE_LOCATION")
|
||||
@ApiParam("产品面位")
|
||||
private String sideLocation;
|
||||
|
||||
@Column(name = "DEFECT_LOCATION")
|
||||
@ApiParam("缺陷位置")
|
||||
private String defectLocation;
|
||||
|
||||
@Column(name = "REPAIR_CODE")
|
||||
@ApiParam("维修代码")
|
||||
private String repairCode;
|
||||
|
||||
@Column(name = "REPAIR_NAME")
|
||||
@ApiParam("维修名称")
|
||||
private String repairName;
|
||||
|
||||
@Column(name = "DC_CODE")
|
||||
@ApiParam("缺陷原因代码")
|
||||
private String dcCode;
|
||||
|
||||
@Column(name = "DC_NAME")
|
||||
@ApiParam("缺陷原因描述")
|
||||
private String dcName;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("生产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String meno;
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:42
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_SCRAP_RECORD")
|
||||
@Api("报废信息记录表")
|
||||
public class MesScrapRecord extends BaseBean {
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("产品物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "DEFECT_CODE")
|
||||
@ApiParam("缺陷代码")
|
||||
private String defectCode;
|
||||
|
||||
@Column(name = "SCRAP_CODE")
|
||||
@ApiParam("报废代码")
|
||||
private String repairCode;
|
||||
|
||||
@Column(name = "SCRAP_NAME")
|
||||
@ApiParam("报废名称")
|
||||
private String scrapName;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("生产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "SCRAP_REASON")
|
||||
@ApiParam("报废原因")
|
||||
private String scrapReason;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String meno;
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.model;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\18 19:15
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Api("mes 物料BOM")
|
||||
public class MesPartBomModel {
|
||||
|
||||
@ApiParam("物料编号")
|
||||
private String partNo;
|
||||
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@ApiParam("数量")
|
||||
private Integer qty;
|
||||
|
||||
public MesPartBomModel() {
|
||||
|
||||
}
|
||||
|
||||
public MesPartBomModel(String partNo, String partName, Integer qty) {
|
||||
this.partNo = partNo;
|
||||
this.partName = partName;
|
||||
this.qty = qty;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesDefectCause;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 20:04
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesDefectCauseRepository extends BaseRepository<MesDefectCause, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesDefectRecord;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 20:05
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesDefectRecordRepository extends BaseRepository<MesDefectRecord, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesDefect;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 20:04
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesDefectRepository extends BaseRepository<MesDefect, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesDismantleRecord;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 20:06
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesDismantleRecordRepository extends BaseRepository<MesDismantleRecord, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesProduceCtgyPicture;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 20:35
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesProduceCtgyPictureRepository extends BaseRepository<MesProduceCtgyPicture, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesRepairRecord;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 20:06
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesRepairRecordRepository extends BaseRepository<MesRepairRecord, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesScrapRecord;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 20:07
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesScrapRecordRepository extends BaseRepository<MesScrapRecord, Long> {
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:25
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DEFECT")
|
||||
@Api("缺陷表")
|
||||
public class MesDefect extends BaseBean {
|
||||
|
||||
@Column(name = "DEFECT_CODE")
|
||||
@ApiParam("缺陷代码")
|
||||
private String defectCode;
|
||||
|
||||
@Column(name = "DEFECT_NAME")
|
||||
@ApiParam("缺陷名称")
|
||||
private String defectName;
|
||||
|
||||
@Column(name = "DEFECT_TYPE")
|
||||
@ApiParam("缺陷类型")
|
||||
private String defectType;
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:28
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DEFECT_CAUSE")
|
||||
@Api("缺陷原因表")
|
||||
public class MesDefectCause extends BaseBean {
|
||||
|
||||
@Column(name = "DC_CODE")
|
||||
@ApiParam("缺陷原因代码")
|
||||
private String dcCode;
|
||||
|
||||
@Column(name = "DC_NAME")
|
||||
@ApiParam("缺陷原因名称")
|
||||
private String dcName;
|
||||
|
||||
@Column(name = "DC_TYPE")
|
||||
@ApiParam("缺陷原因类型")
|
||||
private String dcType;
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 15:03
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DISMANTLE_RECORD")
|
||||
@Api("物料拆解记录表")
|
||||
public class MesDismantleRecord extends BaseBean {
|
||||
|
||||
@Column(name = "DISMANTLE_ID")
|
||||
@ApiParam("拆解编号")
|
||||
private String dismantleId;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "PARENT_PART_NO")
|
||||
@ApiParam("产品物料编码")
|
||||
private String parentPartNo;
|
||||
|
||||
@Column(name = "PARENT_PART_NAME")
|
||||
@ApiParam("产品物料名称")
|
||||
private String parentPartName;
|
||||
|
||||
@Column(name = "SN")
|
||||
@ApiParam("产品条码")
|
||||
private String sn;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("产品数量")
|
||||
private Integer qty;
|
||||
|
||||
@Column(name = "DISMANTLE_QTY")
|
||||
@ApiParam("拆解数")
|
||||
private Integer dismantleQty;
|
||||
|
||||
@Column(name = "ITEM_PART_NO")
|
||||
@ApiParam("子物料编码")
|
||||
private String itemPartNo;
|
||||
|
||||
@Column(name = "ITEM_PART_NAME")
|
||||
@ApiParam("子物料名称")
|
||||
private String itemPartName;
|
||||
|
||||
@Column(name = "OK_QTY")
|
||||
@ApiParam("合格数")
|
||||
private Integer okQty;
|
||||
|
||||
@Column(name = "MISS_QTY")
|
||||
@ApiParam("缺失数")
|
||||
private Integer missQty;
|
||||
|
||||
@Column(name = "SCRAP_QTY")
|
||||
@ApiParam("报废数")
|
||||
private Integer scrapQty;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String meno;
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 15:00
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PART_OBJECT")
|
||||
@Api("物料对象配置表")
|
||||
public class MesPartObject extends BaseBean {
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料编码")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "OBJECT_CODE")
|
||||
@ApiParam("对象代码")
|
||||
private String objectCode;
|
||||
|
||||
@Column(name = "OBJECT_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String objectName;
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PRODUCE_CTGY_PICTURE")
|
||||
@Api("产品类型图片表")
|
||||
public class MesProduceCtgyPicture extends BaseBean {
|
||||
|
||||
@Column(name = "PRODUCE_CTGY_CODE")
|
||||
@ApiParam("产品类型代码")
|
||||
private String produceCtgyCode;
|
||||
|
||||
@Column(name = "SIDE_LOCATION")
|
||||
@ApiParam("面位")
|
||||
private String sideLocation;
|
||||
|
||||
@Column(name = "PICTURE_URL")
|
||||
@ApiParam("图片URL")
|
||||
private String pictureUrl;
|
||||
|
||||
@Column(name = "PICTURE_NAME")
|
||||
@ApiParam("图片名称")
|
||||
private String pictureName;
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:33
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_REPAIR_RECORD")
|
||||
@Api("维修信息记录表")
|
||||
public class MesRepairRecord extends BaseBean {
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("产品物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "DEFECT_CODE")
|
||||
@ApiParam("缺陷代码")
|
||||
private String defectCode;
|
||||
|
||||
@Column(name = "DEFECT_NAME")
|
||||
@ApiParam("缺陷名称")
|
||||
private String defectName;
|
||||
|
||||
@Column(name = "SIDE_LOCATION")
|
||||
@ApiParam("产品面位")
|
||||
private String sideLocation;
|
||||
|
||||
@Column(name = "DEFECT_LOCATION")
|
||||
@ApiParam("缺陷位置")
|
||||
private String defectLocation;
|
||||
|
||||
@Column(name = "REPAIR_CODE")
|
||||
@ApiParam("维修代码")
|
||||
private String repairCode;
|
||||
|
||||
@Column(name = "REPAIR_NAME")
|
||||
@ApiParam("维修名称")
|
||||
private String repairName;
|
||||
|
||||
@Column(name = "DC_CODE")
|
||||
@ApiParam("缺陷原因代码")
|
||||
private String dcCode;
|
||||
|
||||
@Column(name = "DC_NAME")
|
||||
@ApiParam("缺陷原因描述")
|
||||
private String dcName;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("生产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String meno;
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:42
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_SCRAP_RECORD")
|
||||
@Api("报废信息记录表")
|
||||
public class MesScrapRecord extends BaseBean {
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("产品物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "DEFECT_CODE")
|
||||
@ApiParam("缺陷代码")
|
||||
private String defectCode;
|
||||
|
||||
@Column(name = "SCRAP_CODE")
|
||||
@ApiParam("报废代码")
|
||||
private String repairCode;
|
||||
|
||||
@Column(name = "SCRAP_NAME")
|
||||
@ApiParam("报废名称")
|
||||
private String scrapName;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("生产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String meno;
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:22
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_TYPE_CFG")
|
||||
@Api("类型信息表")
|
||||
public class MesTypeCfg extends BaseBean {
|
||||
|
||||
@Column(name = "TYPE_CODE")
|
||||
@ApiParam("类型代码")
|
||||
private String typeCode;
|
||||
|
||||
@Column(name = "TYPE_NAME")
|
||||
@ApiParam("类型名称")
|
||||
private String typeName;
|
||||
|
||||
@Column(name = "BUSINESS_TYPE_CODE")
|
||||
@ApiParam("业务类型代码")
|
||||
private String businessTypeCode;
|
||||
|
||||
@Column(name = "BUSINESS_TYPE_NAME")
|
||||
@ApiParam("业务类型名称")
|
||||
private String businessTypeName;
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class MesEquTaskDetailModel implements Serializable {
|
||||
@ApiParam("id")
|
||||
private Long id;
|
||||
|
||||
@ApiParam("作业任务编号")
|
||||
private String taskNo;
|
||||
|
||||
@ApiParam("设备代码")
|
||||
private String equipmentCode;
|
||||
|
||||
@ApiParam("设备名称")
|
||||
private String equipmentName;
|
||||
|
||||
@ApiParam("执行状态")
|
||||
private Integer actionStatus;
|
||||
|
||||
@ApiParam("整体结果")
|
||||
private Integer finalResult;
|
||||
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@ApiParam("维修标识")
|
||||
private Integer repairFlag;
|
||||
|
||||
@ApiParam("作业类型")
|
||||
private Integer taskType;
|
||||
|
||||
@ApiParam(value="生产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@ApiParam("组织代码")
|
||||
public String organizeCode;
|
||||
|
||||
@ApiParam("有效性")
|
||||
public Integer isValid;
|
||||
|
||||
@ApiParam("是否已删除")
|
||||
public Integer isDeleted;
|
||||
|
||||
@ApiParam("创建用户")
|
||||
public String createUser;
|
||||
|
||||
@ApiParam("创建日期")
|
||||
public String createDatetime;
|
||||
|
||||
@ApiParam("修改人")
|
||||
public String modifyUser;
|
||||
|
||||
@ApiParam("修改日期")
|
||||
public String modifyDatetime;
|
||||
|
||||
@ApiParam("执行状态")
|
||||
private String actionStatusName;
|
||||
|
||||
@ApiParam("整体结果")
|
||||
private String finalResultName;
|
||||
|
||||
@ApiParam("维修标识")
|
||||
private String repairFlagName;
|
||||
|
||||
@ApiParam("作业类型")
|
||||
private String taskTypeName;
|
||||
|
||||
|
||||
public MesEquTaskDetailModel() {
|
||||
|
||||
}
|
||||
|
||||
public MesEquTaskDetailModel(Long id, String taskNo, String equipmentCode, String equipmentName, String workCenterCode) {
|
||||
this.id = id;
|
||||
this.taskNo = taskNo;
|
||||
this.equipmentCode = equipmentCode;
|
||||
this.equipmentName = equipmentName;
|
||||
this.workCenterCode = workCenterCode;
|
||||
}
|
||||
|
||||
public MesEquTaskDetailModel(Long id, String taskNo, String equipmentCode, String equipmentName, Integer actionStatus, Integer finalResult, String memo, Integer repairFlag, Integer taskType, String workCenterCode, String organizeCode, Integer isValid, Integer isDeleted, String createUser, String createDatetime, String modifyUser, String modifyDatetime) {
|
||||
this.id = id;
|
||||
this.taskNo = taskNo;
|
||||
this.equipmentCode = equipmentCode;
|
||||
this.equipmentName = equipmentName;
|
||||
this.actionStatus = actionStatus;
|
||||
this.finalResult = finalResult;
|
||||
this.memo = memo;
|
||||
this.repairFlag = repairFlag;
|
||||
this.taskType = taskType;
|
||||
this.workCenterCode = workCenterCode;
|
||||
this.organizeCode = organizeCode;
|
||||
this.isValid = isValid;
|
||||
this.isDeleted = isDeleted;
|
||||
this.createUser = createUser;
|
||||
this.createDatetime = createDatetime;
|
||||
this.modifyUser = modifyUser;
|
||||
this.modifyDatetime = modifyDatetime;
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class MesEquTaskModel implements Serializable {
|
||||
@ApiParam("id")
|
||||
private Long id;
|
||||
|
||||
@ApiParam("作业任务编号")
|
||||
private String taskNo;
|
||||
|
||||
@ApiParam("作业类型")
|
||||
private Integer taskType;
|
||||
|
||||
@ApiParam("作业状态")
|
||||
private Integer taskStatus;
|
||||
|
||||
@ApiParam(value="生产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@ApiParam("计划日期")
|
||||
private String planTime;
|
||||
|
||||
@ApiParam("任务来源")
|
||||
private Integer taskSource;
|
||||
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@ApiParam("通知标识")
|
||||
private Integer notifyFlag;
|
||||
|
||||
@ApiParam("关联任务")
|
||||
private String relateTask;
|
||||
|
||||
@ApiParam("组织代码")
|
||||
public String organizeCode;
|
||||
|
||||
@ApiParam("有效性")
|
||||
public Integer isValid;
|
||||
|
||||
@ApiParam("是否已删除")
|
||||
public Integer isDeleted;
|
||||
|
||||
@ApiParam("创建用户")
|
||||
public String createUser;
|
||||
|
||||
@ApiParam("创建日期")
|
||||
public String createDatetime;
|
||||
|
||||
@ApiParam("修改人")
|
||||
public String modifyUser;
|
||||
|
||||
@ApiParam("修改日期")
|
||||
public String modifyDatetime;
|
||||
|
||||
@ApiParam("作业类型")
|
||||
private String taskTypeName;
|
||||
|
||||
@ApiParam("作业状态")
|
||||
private String taskStatusName;
|
||||
|
||||
@ApiParam("任务来源")
|
||||
private String taskSourceName;
|
||||
|
||||
@ApiParam("通知标识")
|
||||
private String notifyFlagName;
|
||||
|
||||
@ApiParam("mes设备作业任务页面按钮控制")
|
||||
private MesButtonFlagModel equTaskButtonFlagModel;
|
||||
|
||||
|
||||
public MesEquTaskModel() {
|
||||
|
||||
}
|
||||
|
||||
public MesEquTaskModel(Long id, String taskNo, Integer taskType, Integer taskStatus, String workCenterCode, String planTime, Integer taskSource, String memo, Integer notifyFlag, String relateTask, String organizeCode, Integer isValid, Integer isDeleted, String createUser, String createDatetime, String modifyUser, String modifyDatetime) {
|
||||
this.id = id;
|
||||
this.taskNo = taskNo;
|
||||
this.taskType = taskType;
|
||||
this.taskStatus = taskStatus;
|
||||
this.workCenterCode = workCenterCode;
|
||||
this.planTime = planTime;
|
||||
this.taskSource = taskSource;
|
||||
this.memo = memo;
|
||||
this.notifyFlag = notifyFlag;
|
||||
this.relateTask = relateTask;
|
||||
this.organizeCode = organizeCode;
|
||||
this.isValid = isValid;
|
||||
this.isDeleted = isDeleted;
|
||||
this.createUser = createUser;
|
||||
this.createDatetime = createDatetime;
|
||||
this.modifyUser = modifyUser;
|
||||
this.modifyDatetime = modifyDatetime;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesDefectCause;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 16:56
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesDefectCauseRepository extends BaseRepository<MesDefectCause, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesDefect;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 15:24
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesDefectRepository extends BaseRepository<MesDefect, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesProduceCtgyPicture;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 15:44
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesProduceCtgyPictureRepository extends BaseRepository<MesProduceCtgyPicture, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesTypeCfg;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 16:29
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesTypeCfgRepository extends BaseRepository<MesTypeCfg, Long> {
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package cn.estsh.i3plus.pojo.model.wms;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class FindWriteModel {
|
||||
private List<String> snList;
|
||||
private String organizeCode;
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package cn.estsh.i3plus.pojo.model.wms;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description 冲销Model
|
||||
* @Reference
|
||||
* @Author dragon
|
||||
* @CreateDate 2019/10/18 1:18
|
||||
* @Modify
|
||||
*/
|
||||
@Data
|
||||
public class WmsWriteOffModel implements Serializable {
|
||||
private static final long serialVersionUID = -5490167040159056107L;
|
||||
private String locateNo;
|
||||
private List<String> snList;
|
||||
private List<Map<String, Object>> summaryList;
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package cn.estsh.i3plus.pojo.wms.modelbean;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Api("盘点条码差异返回Model")
|
||||
public class SnDifferModel {
|
||||
|
||||
//盘点单号
|
||||
private String orderNo;
|
||||
//条码
|
||||
private String sn;
|
||||
//源库位编码
|
||||
private String locateNo;
|
||||
//物料代码
|
||||
private String partNo;
|
||||
//物料名称
|
||||
private String partNameRdd;
|
||||
//应盘数量
|
||||
private String qty;
|
||||
//实盘数量
|
||||
private String factQty;
|
||||
//
|
||||
private String whNo;
|
||||
//仓库编码
|
||||
private String zoneNo ;
|
||||
//差异状态
|
||||
private String wmStatus;
|
||||
}
|
Loading…
Reference in New Issue