Merge remote-tracking branch 'origin/dev' into dev
commit
6ab0f17ac7
@ -0,0 +1,47 @@
|
||||
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.Index;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/9/11 14:29
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_CHECK_DATA_CFG", indexes = {
|
||||
@Index(columnList = "CHECK_CFG_NO")
|
||||
})
|
||||
@Api("检测数据源配置")
|
||||
public class MesCheckDataCfg extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -5608847087804566577L;
|
||||
|
||||
@Column(name = "OBJECT_CODE")
|
||||
@ApiParam("对象代码")
|
||||
private String objectCode;
|
||||
|
||||
@Column(name = "FIELD_CODE")
|
||||
@ApiParam("字段代码")
|
||||
private String fieldCode;
|
||||
|
||||
@Column(name = "CHECK_CFG_NO")
|
||||
@ApiParam("检测值配置编号")
|
||||
private String checkCfgNo;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
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;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: jessica.chen
|
||||
* @CreateDate: 2019\11\15 10:01
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_GENERATE_QC_ORDER")
|
||||
@Api("待生成检验单")
|
||||
public class MesGenerateQcOrder extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 14873669015484197L;
|
||||
|
||||
@Column(name = "ORDER_NO")
|
||||
@ApiParam("质检单号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "IS_GENERATED")
|
||||
@ApiParam("是否生成了末检单")
|
||||
private Integer isGenerated = CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue();
|
||||
|
||||
@Column(name = "GENERATE_TIME")
|
||||
@ApiParam("生成时间")
|
||||
private String generateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
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 java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/4/18 21:05
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_QC_ORDER_APPROVAL_STATUS")
|
||||
@Api("检测单审批状态表")
|
||||
public class MesQcOrderApprovalStatus extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -3157480917343280506L;
|
||||
|
||||
@Column(name = "ORDER_NO")
|
||||
@ApiParam("质检单号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("零件号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "WORK_ORDER_NO")
|
||||
@ApiParam("工单号")
|
||||
private String workOrderNo;
|
||||
|
||||
@Column(name = "PLAN_QTY")
|
||||
@ApiParam("计划数量")
|
||||
private Double planQty;
|
||||
|
||||
@Column(name = "CHECK_TYPE")
|
||||
@ApiParam("检验类型")
|
||||
private Integer checkType;
|
||||
|
||||
@Column(name = "QC_USER")
|
||||
@ApiParam("检查人")
|
||||
private String qcUser;
|
||||
|
||||
@Column(name = "CHECK_RESULT")
|
||||
@ApiParam("检验结果")
|
||||
private String checkResult;
|
||||
|
||||
@Column(name = "IS_KEY_CHECK_ITEM")
|
||||
@ApiParam("是否关键检测")
|
||||
private Integer isKeyCheckItem;
|
||||
|
||||
@Column(name = "QUALITY_APPROVAL_STATUS")
|
||||
@ApiParam("质量经理审批状态")
|
||||
private Integer qualityApprovalStatus = CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue();
|
||||
|
||||
@Column(name = "QUALITY_CHOICE")
|
||||
@ApiParam("质量经理审批状态")
|
||||
private Integer qualityChoice;
|
||||
|
||||
@Column(name = "PRODUCE_APPROVAL_STATUS")
|
||||
@ApiParam("生产经理审批状态")
|
||||
private Integer produceApprovalStatus = CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue();
|
||||
|
||||
@Column(name = "PRODUCE_CHOICE")
|
||||
@ApiParam("生产经理审批状态")
|
||||
private Integer produceChoice;
|
||||
|
||||
@Column(name = "APPROVAL_STATUS")
|
||||
@ApiParam("生产经理审批状态")
|
||||
private Integer approvalStatus = CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue();
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
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.Index;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: jessica.chen
|
||||
* @CreateDate: 2019\11\15 10:01
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_QC_ORDER_RECORD", indexes = {
|
||||
@Index(columnList = "QC_ORDER_DETAIL_ID"),
|
||||
@Index(columnList = "SERIAL_NUMBER"),
|
||||
@Index(columnList = "ORDER_NO")
|
||||
})
|
||||
@Api("MES_检验单检验记录")
|
||||
public class MesQcOrderRecord extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -5245624982023882232L;
|
||||
|
||||
@Column(name = "ORDER_NO")
|
||||
@ApiParam("质检单号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "CHECK_RESULT")
|
||||
@ApiParam("判定结果")
|
||||
private Integer checkResult = 0;
|
||||
|
||||
@Column(name = "CHECK_VALUE")
|
||||
@ApiParam("检测值")
|
||||
private String checkValue;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "CHECK_SEQ")
|
||||
@ApiParam("检测顺序")
|
||||
private Integer checkSeq;
|
||||
|
||||
@Column(name = "QC_ORDER_DETAIL_ID")
|
||||
@ApiParam("质检单明细id")
|
||||
private Long qcOrderDetailId;
|
||||
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesDefect;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesDismantleRecord;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class DismantleRecordModel {
|
||||
|
||||
@ApiParam("组织代码")
|
||||
private String organizeCode;
|
||||
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@ApiParam("工单号")
|
||||
private String workOrderNo;
|
||||
|
||||
@ApiParam("过程条码")
|
||||
private String serialNumber;
|
||||
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@ApiParam("缺陷类型")
|
||||
private String defectType;
|
||||
|
||||
@ApiParam("用户")
|
||||
private String userInfo;
|
||||
|
||||
@ApiParam("物料拆解集合")
|
||||
private List<MesDismantleRecord> dismantleRecordList;
|
||||
|
||||
@ApiParam("不良集合")
|
||||
private List<MesDefect> defectList;
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/9/16 00:24
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
public class QcOrderCheckDataDetailModel {
|
||||
|
||||
private Integer checkType;
|
||||
|
||||
private String checkItem;
|
||||
|
||||
private String checkStandard;
|
||||
|
||||
private Integer checkCount;
|
||||
|
||||
private Integer isConcession;
|
||||
|
||||
private Integer isKeyCheckItem;
|
||||
|
||||
private Double max;
|
||||
|
||||
private Double min;
|
||||
|
||||
private String checkValue;
|
||||
|
||||
private Integer checkResult;
|
||||
|
||||
|
||||
public QcOrderCheckDataDetailModel(Integer checkType, String checkItem, String checkStandard, Integer checkCount,
|
||||
Integer isConcession, Integer isKeyCheckItem, Double max, Double min,
|
||||
String checkValue, Integer checkResult) {
|
||||
this.checkType = checkType;
|
||||
this.checkItem = checkItem;
|
||||
this.checkStandard = checkStandard;
|
||||
this.checkCount = checkCount;
|
||||
this.isConcession = isConcession;
|
||||
this.isKeyCheckItem = isKeyCheckItem;
|
||||
this.max = max;
|
||||
this.min = min;
|
||||
this.checkValue = checkValue;
|
||||
this.checkResult = checkResult;
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: jokelin
|
||||
* @Date: 2020/3/20 9:02 下午
|
||||
* @Modify:
|
||||
*/
|
||||
@Data
|
||||
@Api("JIT队列列表Model")
|
||||
public class QueueJitActualModel {
|
||||
|
||||
private Long id;
|
||||
@ApiParam("vin")
|
||||
private String vinCode;
|
||||
@ApiParam("排序号")
|
||||
private Double seq;
|
||||
@ApiParam("分组队列编号")
|
||||
private String queueGroupNo;
|
||||
@ApiParam("组内编号")
|
||||
private Integer groupNo;
|
||||
@ApiParam("JIT排序号")
|
||||
private String jitSeq;
|
||||
|
||||
@ApiParam("队列编号")
|
||||
private String jisActualNo;
|
||||
|
||||
@ApiParam("工单类型")
|
||||
public Integer workType;
|
||||
|
||||
@ApiParam("工单类型")
|
||||
public String workTypeName;
|
||||
|
||||
@ApiParam("客户产线代码")
|
||||
private String custProdLineCode;
|
||||
|
||||
@ApiParam("产品位置代码")
|
||||
private String produceCtgyCode;
|
||||
|
||||
@ApiParam("产品条码")
|
||||
private String productSn;
|
||||
|
||||
@ApiParam("明细状态名称")
|
||||
private Integer detailStatus;
|
||||
|
||||
@ApiParam("明细状态名称")
|
||||
private String detailStatusName;
|
||||
|
||||
@ApiParam("创建人")
|
||||
private String createUser;
|
||||
|
||||
@ApiParam("创建时间")
|
||||
private String createDatetime;
|
||||
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@ApiParam("用量")
|
||||
private Double qty = 0d;
|
||||
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@ApiParam("物料号")
|
||||
private String partName;
|
||||
|
||||
|
||||
public QueueJitActualModel() {
|
||||
|
||||
}
|
||||
|
||||
public QueueJitActualModel(Long id, String vinCode, String jisActualNo, Integer workType, String custProdLineCode, String produceCtgyCode,
|
||||
String productSn, Integer detailStatus, String createUser, String createDatetime) {
|
||||
this.id = id;
|
||||
this.vinCode = vinCode;
|
||||
this.jisActualNo = jisActualNo;
|
||||
this.workType = workType;
|
||||
this.custProdLineCode = custProdLineCode;
|
||||
this.produceCtgyCode = produceCtgyCode;
|
||||
this.productSn = productSn;
|
||||
this.detailStatus = detailStatus;
|
||||
this.createUser = createUser;
|
||||
this.createDatetime = createDatetime;
|
||||
}
|
||||
|
||||
public QueueJitActualModel(Long id, String vinCode, String jisActualNo, String partNo, String partName, String produceCtgyCode, Double qty,
|
||||
String createUser, String createDatetime) {
|
||||
this.id = id;
|
||||
this.vinCode = vinCode;
|
||||
this.jisActualNo = jisActualNo;
|
||||
this.partNo = partNo;
|
||||
this.partName = partName;
|
||||
this.qty = qty;
|
||||
this.createUser = createUser;
|
||||
this.createDatetime = createDatetime;
|
||||
}
|
||||
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: jokelin
|
||||
* @Date: 2020/3/20 9:02 下午
|
||||
* @Modify:
|
||||
*/
|
||||
@Data
|
||||
public class QueueJitActualModule {
|
||||
|
||||
private Long id;
|
||||
@ApiParam("vin")
|
||||
private String vinCode;
|
||||
@ApiParam("排序号")
|
||||
private Double seq;
|
||||
@ApiParam("分组队列编号")
|
||||
private String queueGroupNo;
|
||||
@ApiParam("组内编号")
|
||||
private Integer groupNo;
|
||||
@ApiParam("JIT排序号")
|
||||
private String jitSeq;
|
||||
|
||||
public QueueJitActualModule() {
|
||||
|
||||
}
|
||||
|
||||
public QueueJitActualModule(Long id, String vinCode, Double seq, String queueGroupNo, Integer groupNo, String jitSeq) {
|
||||
this.id = id;
|
||||
this.vinCode = vinCode;
|
||||
this.seq = seq;
|
||||
this.queueGroupNo = queueGroupNo;
|
||||
this.groupNo = groupNo;
|
||||
this.jitSeq = jitSeq;
|
||||
}
|
||||
|
||||
}
|
@ -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.MesCheckDataCfg;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\18 10:34
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesCheckDataCfgRepository extends BaseRepository<MesCheckDataCfg, Long> {
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesGenerateQcOrder;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: wangjie
|
||||
* @CreateDate:2019-09-18-17:13
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesGenerateQcOrderRepository extends BaseRepository<MesGenerateQcOrder, 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.MesQcOrderApprovalStatus;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\18 10:34
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesQcOrderApprovalStatusRepository extends BaseRepository<MesQcOrderApprovalStatus, Long> {
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCustomerPart;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesQcOrderRecord;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: yiming.gu
|
||||
* @CreateDate:2019-05-20
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesQcOrderRecordRepository extends BaseRepository<MesQcOrderRecord, Long> {
|
||||
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package cn.estsh.i3plus.pojo.sweb.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;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description : 库存需求报警
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2020-09-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Table(name = "SWEB_REQUIRE_ALARM")
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Api("库存需求报警")
|
||||
public class SwebRequireAlarm extends BaseBean {
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料代码")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "VENDOR_CODE")
|
||||
@ApiParam("供应商代码")
|
||||
private String vendorCode;
|
||||
|
||||
@Column(name = "VENDOR_NAME")
|
||||
@ApiParam("供应商名称")
|
||||
private String vendorName;
|
||||
|
||||
@Column(name = "START_QTY")
|
||||
@ApiParam("开班库存")
|
||||
private Double startQty;
|
||||
|
||||
@Column(name = "ALARM_LEVEL")
|
||||
@ApiParam("报警级别")
|
||||
private String alarmLevel;
|
||||
|
||||
@Column(name = "REASON")
|
||||
@ApiParam("原因分析")
|
||||
private String reason;
|
||||
|
||||
@Column(name = "TRACK_REMARK")
|
||||
@ApiParam("跟踪情况")
|
||||
private String trackRemark;
|
||||
|
||||
@Column(name = "COUNT_DATE")
|
||||
@ApiParam("日期")
|
||||
private Double countDate;
|
||||
|
||||
@Transient
|
||||
@ApiParam("日期")
|
||||
private String dateStart;
|
||||
|
||||
@Transient
|
||||
@ApiParam("日期")
|
||||
private String dateEnd;
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package cn.estsh.i3plus.pojo.sweb.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;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description : 供应商安全库存
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2020-09-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Table(name = "SWEB_VENDOR_STOCK")
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Api("供应商安全库存")
|
||||
public class SwebVendorStock extends BaseBean {
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料代码")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "VENDOR_CODE")
|
||||
@ApiParam("供应商代码")
|
||||
private String vendorCode;
|
||||
|
||||
@Column(name = "VENDOR_NAME")
|
||||
@ApiParam("供应商名称")
|
||||
private String vendorName;
|
||||
|
||||
@Column(name = "SAFE_TYPE")
|
||||
@ApiParam("安全库存计算类型")
|
||||
private Integer safeType;
|
||||
|
||||
@Column(name = "SAFE_VALUE")
|
||||
@ApiParam("计数值")
|
||||
private String safeValue;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("库存数量")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "COUNT_MONTH")
|
||||
@ApiParam("月份")
|
||||
private String countMonth;
|
||||
|
||||
@Column(name = "COUNT_WEEK")
|
||||
@ApiParam("周")
|
||||
private String countWeek;
|
||||
|
||||
@Transient
|
||||
@ApiParam("日期")
|
||||
private String dateStart;
|
||||
|
||||
@Transient
|
||||
@ApiParam("日期")
|
||||
private String dateEnd;
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package cn.estsh.i3plus.pojo.sweb.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;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description : 供应商供货能力
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2020-09-16
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Table(name = "SWEB_VENDOR_SUPPLIER_CAPCITY")
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Api("供应商供货能力")
|
||||
public class SwebVendorSupplierCapcity extends BaseBean {
|
||||
private static final long serialVersionUID = 2327910806789997252L;
|
||||
|
||||
@Column(name = "VENDOR_CODE")
|
||||
@ApiParam("供应商代码")
|
||||
private String vendorCode;
|
||||
|
||||
@Column(name = "VENDOR_NAME")
|
||||
@ApiParam("供应商名称")
|
||||
private String vendorName;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料编码")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "CURRENT_QTY")
|
||||
@ApiParam("当前库存")
|
||||
private Double currentQty;
|
||||
|
||||
@Column(name = "PLAN_PRODUCT_QTY")
|
||||
@ApiParam("计划生产或到货")
|
||||
private Double planProductQty;
|
||||
|
||||
@Column(name = "PLAN_REQUEST_QTY")
|
||||
@ApiParam("计划需求数量")
|
||||
private Double planRequestQty;
|
||||
|
||||
@Column(name = "END_QTY")
|
||||
@ApiParam("期末库存")
|
||||
private Double endQty;
|
||||
|
||||
@Column(name = "IS_DANGER")
|
||||
@ApiParam("是否存在风险")
|
||||
private Integer isDanger;
|
||||
|
||||
@Column(name = "DANGER_SPEC")
|
||||
@ApiParam("风险描述")
|
||||
private String dangerSpec;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("状态")
|
||||
private String status;
|
||||
|
||||
@Column(name = "REMARK")
|
||||
@ApiParam("备注")
|
||||
private String remark;
|
||||
|
||||
@Column(name = "TRACK_DATE")
|
||||
@ApiParam("日期")
|
||||
private String trackDate;
|
||||
|
||||
@Transient
|
||||
@ApiParam("日期")
|
||||
private String dateStart;
|
||||
|
||||
@Transient
|
||||
@ApiParam("日期")
|
||||
private String dateEnd;
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.sweb.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.sweb.bean.SwebRequireAlarm;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 库存需求报警
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2020-09-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface SwebRequireAlarmRepository extends BaseRepository<SwebRequireAlarm, Long> {
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.sweb.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.sweb.bean.SwebVendorStock;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 供应商安全库存
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2020-09-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface SwebVendorStockRepository extends BaseRepository<SwebVendorStock, Long> {
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.sweb.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.sweb.bean.SwebVendorSupplierCapcity;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :供应商供货能力
|
||||
* @Reference :
|
||||
* @Author : jason.niu
|
||||
* @CreateDate : 2020-09-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface SwebVendorSupplierCapcityRepository extends BaseRepository<SwebVendorSupplierCapcity, Long> {
|
||||
}
|
Loading…
Reference in New Issue