Merge remote-tracking branch 'origin/dev' into dev
commit
33233ba80c
@ -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.MesCellFeed;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/9/18 10:05 AM
|
||||
* @Description:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesCellFeedRepository extends BaseRepository<MesCellFeed, Long> {
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
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.MesCellFeed;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesRawPartSn;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/9/18 10:05 AM
|
||||
* @Description:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesRawPartSnRepository extends BaseRepository<MesRawPartSn, Long> {
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
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 :mes状态配置表
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-09-19
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="MES_STATUS")
|
||||
@Api("系统业务动作")
|
||||
public class MesStatus extends BaseBean {
|
||||
@Column(name="STATUS_CODE")
|
||||
@ApiParam("状态代码")
|
||||
private String statusCode;
|
||||
|
||||
@Column(name="STATUS_NAME")
|
||||
@ApiParam("状态名称")
|
||||
private String statusName;
|
||||
|
||||
@Column(name="STATUS_VALUE")
|
||||
@ApiParam("状态值")
|
||||
private Integer statusValue;
|
||||
|
||||
@Column(name="STATUS_FIELD")
|
||||
@ApiParam("状态字段")
|
||||
private String statusField;
|
||||
|
||||
public int getStatusValueVal() {
|
||||
return this.statusValue == null ? 0 : this.statusValue;
|
||||
}
|
||||
}
|
@ -0,0 +1,222 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.mes.model.MesWorkOrderButtonModel;
|
||||
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;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: wangjie
|
||||
* @CreateDate:2019-09-19-17:36
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="MES_WORK_ORDER_LOG")
|
||||
@Api("生产工单日志")
|
||||
public class MesWorkOrderLog extends BaseBean {
|
||||
@Column(name="ORDER_NO")
|
||||
@ApiParam("工单号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name="PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name="PART_NAME_RDD")
|
||||
@ApiParam("物料名称")
|
||||
private String partNameRdd;
|
||||
|
||||
@Column(name="PROD_CFG_CODE")
|
||||
@ApiParam("产品配置代码")
|
||||
private String prodCfgCode;
|
||||
|
||||
@Column(name="QTY")
|
||||
@ApiParam("数量")
|
||||
private Double qty;
|
||||
|
||||
@Column(name="COMPLETE_QTY")
|
||||
@ApiParam("完成数量")
|
||||
private Double completeQty;
|
||||
|
||||
@Column(name="REPAIR_QTY")
|
||||
@ApiParam("返修数量")
|
||||
private Double repairQty;
|
||||
|
||||
@Column(name="SCRAP_QTY")
|
||||
@ApiParam("报废数量")
|
||||
private Double scrapQty;
|
||||
|
||||
@Column(name="SEQ")
|
||||
@ApiParam("工单序号")
|
||||
private Double seq;
|
||||
|
||||
@Column(name="WO_STATUS")
|
||||
@ApiParam("工单状态")
|
||||
private Integer workOrderStatus;
|
||||
|
||||
@Column(name="WO_TYPE")
|
||||
@ApiParam("工单类型")
|
||||
private Integer workOrderType;
|
||||
|
||||
@Column(name="NEXT_ORDER")
|
||||
@ApiParam("下一工单")
|
||||
private String nextOrder;
|
||||
|
||||
@Column(name="PLAN_ORDER_NO")
|
||||
@ApiParam("生产计划单号")
|
||||
private String planOrderNo;
|
||||
|
||||
@Column(name="WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name="AREA_CODE")
|
||||
@ApiParam("区域代码")
|
||||
private String areaCode;
|
||||
|
||||
@Column(name="WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name="SCHEDULE_DATE")
|
||||
@ApiParam("排产日期")
|
||||
private String scheduleDate;
|
||||
|
||||
@Column(name="CUST_PROD_LINE_CODE")
|
||||
@ApiParam("客户产线代码")
|
||||
private String custProdLineCode;
|
||||
|
||||
@Column(name="SHIFT_CODE")
|
||||
@ApiParam("班次")
|
||||
private String shiftCode;
|
||||
|
||||
@Column(name="START_TIME")
|
||||
@ApiParam("开始时间")
|
||||
private String startTime;
|
||||
|
||||
@Column(name="END_TIME")
|
||||
@ApiParam("结束时间")
|
||||
private String endTime;
|
||||
|
||||
@Column(name="WO_SOURCE")
|
||||
@ApiParam("工单来源")
|
||||
private String workOrderSource;
|
||||
|
||||
@Column(name="MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@Column(name="SHIFT_GROUP")
|
||||
@ApiParam("班组")
|
||||
private String shiftGroup;
|
||||
|
||||
@Column(name="APPROVAL_STATUS")
|
||||
@ApiParam("审批状态")
|
||||
private Integer approvalStatus;
|
||||
|
||||
@Column(name="CUST_CODE")
|
||||
@ApiParam("客户代码")
|
||||
private String custCode;
|
||||
|
||||
@Column(name="CUST_ORDER_NO")
|
||||
@ApiParam("客户订单号")
|
||||
private String custOrderNo;
|
||||
|
||||
/********************** 冗余字段 *********************************/
|
||||
@Transient
|
||||
@ApiParam(value="工作中心名称")
|
||||
public String workCenterName;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value="工作单元名称")
|
||||
public String workCellName;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value="客户产线名称")
|
||||
public String custProdLineName;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value="班次名称")
|
||||
public String shiftName;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value="班组名称")
|
||||
public String shiftGroupName;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value="产品配置名称")
|
||||
public String prodCfgName;
|
||||
|
||||
@Transient
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiParam(value="计划开始日期查询用,查询开始日期",example = "2018-12-31 23:59:59")
|
||||
public String startTimeStart;
|
||||
|
||||
|
||||
@Transient
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiParam(value="计划开始日期查询用,查询截至日期",example = "2018-12-31 23:59:59")
|
||||
public String startTimeEnd;
|
||||
|
||||
@Transient
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiParam(value="计划结束日期查询用,查询结束日期起始",example = "2018-12-31 23:59:59")
|
||||
public String endTimeStart;
|
||||
|
||||
@Transient
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiParam(value="计划结束日期查询用,查询结束日期截至",example = "2018-12-31 23:59:59")
|
||||
public String endTimeEnd;
|
||||
|
||||
@Transient
|
||||
@ApiParam("mes生产工单页面按钮控制")
|
||||
private MesWorkOrderButtonModel workOrderButtonModel;
|
||||
|
||||
|
||||
public double getQtyVal() {
|
||||
return this.qty == null ? 0.0d : this.qty;
|
||||
}
|
||||
|
||||
public double getCompleteQtyVal() {
|
||||
return this.completeQty == null ? 0.0d : this.completeQty;
|
||||
}
|
||||
|
||||
public double getRepairQtyVal() {
|
||||
return this.repairQty == null ? 0.0d : this.repairQty;
|
||||
}
|
||||
|
||||
public double getScrapQtyVal() {
|
||||
return this.scrapQty == null ? 0.0d : this.scrapQty;
|
||||
}
|
||||
|
||||
public double getSeqVal() {
|
||||
return this.seq == null ? 0.0d : this.seq;
|
||||
}
|
||||
|
||||
public int getWorkOrderStatusVal() {
|
||||
return this.workOrderStatus == null ? 0 : this.workOrderStatus;
|
||||
}
|
||||
|
||||
public int getWorkOrderTypeVal() {
|
||||
return this.workOrderType == null ? 0 : this.workOrderType;
|
||||
}
|
||||
|
||||
public int getApprovalStatusVal() {
|
||||
return this.approvalStatus == null ? 0 : this.approvalStatus;
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: wangjie
|
||||
* @CreateDate: 2019/9/20 9:19 AM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Api("mes生产工单审批页面数据明细封装model")
|
||||
public class MesWorkOrderApprovalDetailModel implements Serializable {
|
||||
|
||||
@ApiParam("id")
|
||||
private Long id;
|
||||
|
||||
@ApiParam("封装的数据值")
|
||||
private String name;
|
||||
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: wangjie
|
||||
* @CreateDate: 2019/9/20 9:19 AM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Api("mes生产工单审批页面数据封装model")
|
||||
public class MesWorkOrderApprovalModel implements Serializable {
|
||||
|
||||
@ApiParam("表头列名集合")
|
||||
List<String> tableNames;
|
||||
|
||||
@ApiParam("所有行数据集合:多行数据是集合,每一个所有单元格是一个集合,一个单元格含有多条数据是一个集合")
|
||||
List<List<List<MesWorkOrderApprovalDetailModel>>> detailModelsList;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkOrder;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkOrderLog;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: wangjie
|
||||
* @CreateDate:2019-09-19-17:13
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesWorkOrderLogRepository extends BaseRepository<MesWorkOrderLog, Long> {
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.snapshot.WmsCheckPoint;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.snapshot.WmsStockQuanSnapshot;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 快照表
|
||||
* @Reference :
|
||||
* @author: amy.liu
|
||||
* @date: 2019/9/19 14:22
|
||||
* @Modify:
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface IWmsCheckPointRepository extends BaseRepository<WmsCheckPoint,Long> {
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.snapshot.WmsMoveDetailsSnapshot;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.snapshot.WmsMoveMasterSnapshot;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 快照表
|
||||
* @Reference :
|
||||
* @author: amy.liu
|
||||
* @date: 2019/9/19 14:22
|
||||
* @Modify:
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface IWmsMoveDetailsSnapshotRepository extends BaseRepository<WmsMoveDetailsSnapshot,Long> {
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.snapshot.WmsMoveMasterSnapshot;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.snapshot.WmsStockSnSnapshot;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 快照表
|
||||
* @Reference :
|
||||
* @author: amy.liu
|
||||
* @date: 2019/9/19 14:22
|
||||
* @Modify:
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface IWmsMoveMasterSnapshotRepository extends BaseRepository<WmsMoveMasterSnapshot,Long> {
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.snapshot.WmsMoveDetailsSnapshot;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.snapshot.WmsMoveSnSnapshot;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 快照表
|
||||
* @Reference :
|
||||
* @author: amy.liu
|
||||
* @date: 2019/9/19 14:22
|
||||
* @Modify:
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface IWmsMoveSnSnapshotRepository extends BaseRepository<WmsMoveSnSnapshot,Long> {
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.snapshot.WmsStockQuanSnapshot;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 库存信息快照
|
||||
* @Reference :
|
||||
* @author: amy.liu
|
||||
* @date: 2019/9/19 14:22
|
||||
* @Modify:
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface IWmsStockQuanSnapshotRepository extends BaseRepository<WmsStockQuanSnapshot,Long> {
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.snapshot.WmsCheckPoint;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.snapshot.WmsStockSnSnapshot;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 快照表
|
||||
* @Reference :
|
||||
* @author: amy.liu
|
||||
* @date: 2019/9/19 14:22
|
||||
* @Modify:
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface IWmsStockSnSnapshotRepository extends BaseRepository<WmsStockSnSnapshot,Long> {
|
||||
}
|
Loading…
Reference in New Issue