idea 异常 文件格式化 + 包装扫描工步
parent
030391a93c
commit
2da78c3237
@ -0,0 +1,97 @@
|
||||
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.ColumnDefault;
|
||||
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 : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PACK_SPEC")
|
||||
@Api("包装规格")
|
||||
public class MesPackSpec extends BaseBean {
|
||||
@Column(name = "SPEC_CODE")
|
||||
@ApiParam("包装规格代码")
|
||||
private String specCode;
|
||||
|
||||
@Column(name = "SPEC_NAME")
|
||||
@ApiParam("包装规格名称")
|
||||
private String specName;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "包装数量", example = "0")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "QTY2")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "包装数量2", example = "0")
|
||||
private Double qty2;
|
||||
|
||||
@Column(name = "QTY3")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "包装数量3", example = "0")
|
||||
private Double qty3;
|
||||
|
||||
@Column(name = "QTY4")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "包装数量4", example = "0")
|
||||
private Double qty4;
|
||||
|
||||
@Column(name = "IS_MIXED")
|
||||
@ApiParam("是否混包")
|
||||
private Integer isMixed;
|
||||
|
||||
@Column(name = "IS_MIXED2")
|
||||
@ApiParam("是否混包2")
|
||||
private Integer isMixed2;
|
||||
|
||||
@Column(name = "IS_MIXED3")
|
||||
@ApiParam("是否混包3")
|
||||
private Integer isMixed3;
|
||||
|
||||
@Column(name = "IS_MIXED4")
|
||||
@ApiParam("是否混包4")
|
||||
private Integer isMixed4;
|
||||
|
||||
|
||||
public double getQtyVal() {
|
||||
return this.qty == null ? 0.0d : this.qty;
|
||||
}
|
||||
|
||||
public int getIsMixedVal() {
|
||||
return this.isMixed == null ? 0 : this.isMixed;
|
||||
}
|
||||
|
||||
public int getIsMixed2Val() {
|
||||
return this.isMixed2 == null ? 0 : this.isMixed2;
|
||||
}
|
||||
|
||||
public int getIsMixed3Val() {
|
||||
return this.isMixed3 == null ? 0 : this.isMixed3;
|
||||
}
|
||||
|
||||
public int getIsMixed4Val() {
|
||||
return this.isMixed4 == null ? 0 : this.isMixed4;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/18 2:55 下午
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PACKAGE")
|
||||
@Api("包装规格")
|
||||
public class MesPackageDetail extends BaseBean {
|
||||
|
||||
@Column(name = "PACKAGE_NO")
|
||||
@ApiParam("包装编码")
|
||||
private String packageNo;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("产品条码")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME_RDD")
|
||||
@ApiParam("产品条码")
|
||||
private String partNameRdd;
|
||||
|
||||
@Column(name = "PACKAGE_NO2")
|
||||
@ApiParam("包装编码2")
|
||||
private String packageNo2;
|
||||
|
||||
@Column(name = "PACKAGE_NO3")
|
||||
@ApiParam("包装编码3")
|
||||
private String packageNo3;
|
||||
|
||||
@Column(name = "PACKAGE_NO4")
|
||||
@ApiParam("包装编码4")
|
||||
private String packageNo4;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/18 3:23 下午
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PACKAGE_TRAVEL")
|
||||
@Api("包装履历表")
|
||||
public class MesPackageTravel extends BaseBean {
|
||||
|
||||
@Column(name = "PACKAGE_NO")
|
||||
@ApiParam("包装编码")
|
||||
private String packageNo;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "OP_TYPE")
|
||||
@ApiParam("操作类型")
|
||||
private Integer opType;
|
||||
|
||||
@Column(name = "PACKAGE_NO2")
|
||||
@ApiParam("包装编码2")
|
||||
private String packageNo2;
|
||||
|
||||
@Column(name = "PACKAGE_NO3")
|
||||
@ApiParam("包装编码3")
|
||||
private String packageNo3;
|
||||
|
||||
@Column(name = "PACKAGE_NO4")
|
||||
@ApiParam("包装编码4")
|
||||
private String packageNo4;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/18 3:25 下午
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PROD_PACK")
|
||||
@Api("产品包装关系")
|
||||
public class MesProdPack extends BaseBean {
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "CUSTOMER_CODE")
|
||||
@ApiParam("客户代码")
|
||||
private String customerCode;
|
||||
|
||||
@Column(name = "PACK_SPEC")
|
||||
@ApiParam("包装规格")
|
||||
private String packSpec;
|
||||
|
||||
@Column(name = "PROD_LABEL_TEMPLATE")
|
||||
@ApiParam("产品标签模板")
|
||||
private String prodLabelTemplate;
|
||||
|
||||
@Column(name = "PACK_LABEL_TEMPLATE2")
|
||||
@ApiParam("包装标签模板2")
|
||||
private String packLabelTemplate2;
|
||||
|
||||
@Column(name = "PACK_LABEL_TEMPLATE3")
|
||||
@ApiParam("包装标签模板3")
|
||||
private String packLabelTemplate3;
|
||||
|
||||
@Column(name = "PACK_LABEL_TEMPLATE4")
|
||||
@ApiParam("包装标签模板4")
|
||||
private String packLabelTemplate4;
|
||||
|
||||
@Column(name = "PROD_CFG_TYPE")
|
||||
@ApiParam("项目")
|
||||
private String prodCfgType;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
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.MesPackSpec;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesPackSpecRepository extends BaseRepository<MesPackSpec, 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.MesObjectCfg;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesPackageDetail;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/19 10:33 上午
|
||||
* @Description:
|
||||
**/
|
||||
public interface MesPackageDetailRepository extends BaseRepository<MesPackageDetail, Long> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
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.MesPackage;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/19 10:39 上午
|
||||
* @Description:
|
||||
**/
|
||||
public interface MesPackageRepository extends BaseRepository<MesPackage, Long> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
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.MesPackageTravel;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/19 2:57 下午
|
||||
* @Description:
|
||||
**/
|
||||
public interface MesPackageTravelRepository extends BaseRepository<MesPackageTravel, Long> {
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
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.MesProdPack;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesProdPackRepository extends BaseRepository<MesProdPack, Long> {
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue