Commit 8163778c authored by 覃振观's avatar 覃振观 👶

23-12-9: 产品模块实体调整。

parent b868d9de
......@@ -65,7 +65,8 @@ public class ProductApplicationImpl implements ProductApplication {
@Override
public Map<String, Object> queryDetailAll(int productId) {
Map<String, Object> resultMap = new HashMap<>(200);
ProductDetail productDetail = detailRepository.findByProductIdEquals((long)productId);
String strProductId = Long.toString(productId);
ProductDetail productDetail = detailRepository.findByProductId(strProductId);
// EntityManager manager = JPAUtils.getEntityManger();
// manager.getTransaction().begin();
// manager.flush();
......@@ -78,7 +79,7 @@ public class ProductApplicationImpl implements ProductApplication {
ArrayList<ProductCategory> categorys = (ArrayList<ProductCategory>)categoryRepository.findAll();
// --------------------------------- 详情查询 ---------------------------------
String strProductId = Long.toString(productId);
ArrayList<ProductMaterial> material = (ArrayList<ProductMaterial>) materialRepository.findByProductId(strProductId);
ArrayList<ProductLoss> loss = (ArrayList<ProductLoss>) lossRepository.findByProductId(strProductId);
Set<Object> entitys = new HashSet<>();
......
package com.huigou.topsun.product.domain;
import java.io.Serializable;
import javax.persistence.*;
import lombok.Data;
/**
* 产品
* @TableName product
*/
@Table(name="product")
@Data
@Entity
public class Product implements Serializable {
/**
* 产品ID
*/
@Id
@Column(name = "product_id")
private String productId;
/**
* 产品名称
*/
@Column(name = "product_name")
private String productName;
/**
* 产品类别
*/
@Column(name = "product_category_id")
private String productCategoryId;
/**
* 产品状态(码表status)
*/
@Column(name = "product_status")
private String productStatus;
/**
* 产品计量单位
*/
@Column(name = "product_unit")
private String productUnit;
/**
* 样品编号
*/
@Column(name = "product_sample_code")
private String productSampleCode;
/**
* 品牌名称
*/
@Column(name = "brand_name")
private String brandName;
/**
* 产品类型(product_type)
*/
@Column(name = "product_type")
private String productType;
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
Product other = (Product) that;
return (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
&& (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName()))
&& (this.getProductCategoryId() == null ? other.getProductCategoryId() == null : this.getProductCategoryId().equals(other.getProductCategoryId()))
&& (this.getProductStatus() == null ? other.getProductStatus() == null : this.getProductStatus().equals(other.getProductStatus()))
&& (this.getProductUnit() == null ? other.getProductUnit() == null : this.getProductUnit().equals(other.getProductUnit()))
&& (this.getProductSampleCode() == null ? other.getProductSampleCode() == null : this.getProductSampleCode().equals(other.getProductSampleCode()))
&& (this.getBrandName() == null ? other.getBrandName() == null : this.getBrandName().equals(other.getBrandName()))
&& (this.getProductType() == null ? other.getProductType() == null : this.getProductType().equals(other.getProductType()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode());
result = prime * result + ((getProductCategoryId() == null) ? 0 : getProductCategoryId().hashCode());
result = prime * result + ((getProductStatus() == null) ? 0 : getProductStatus().hashCode());
result = prime * result + ((getProductUnit() == null) ? 0 : getProductUnit().hashCode());
result = prime * result + ((getProductSampleCode() == null) ? 0 : getProductSampleCode().hashCode());
result = prime * result + ((getBrandName() == null) ? 0 : getBrandName().hashCode());
result = prime * result + ((getProductType() == null) ? 0 : getProductType().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", productId=").append(productId);
sb.append(", productName=").append(productName);
sb.append(", productCategoryId=").append(productCategoryId);
sb.append(", productStatus=").append(productStatus);
sb.append(", productUnit=").append(productUnit);
sb.append(", productSampleCode=").append(productSampleCode);
sb.append(", brandName=").append(brandName);
sb.append(", productType=").append(productType);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.huigou.topsun.product.domain;
import java.io.Serializable;
import javax.persistence.*;
import java.util.Objects;
import lombok.Data;
import javax.persistence.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* @author Tison
* 产品详细信息
* @TableName product_detail
*/
@Table(name="product_detail")
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Entity
@Table(name = "product_detail")
public class ProductDetail implements Serializable {
/**
* 产品详细信息ID
*/
@Id
@Column(name = "product_detail_id")
private String productDetailId;
/**
* 产品ID
*/
@Column(name = "product_id")
private Long productId;
/**
* 工厂名称
*/
@Column(name = "factory_name")
private String factoryName;
/**
* 版面(product_layout)
*/
@Column(name = "product_layout")
private String productLayout;
/**
* 英文名
*/
@Column(name = "product_english_name")
private String productEnglishName;
/**
* 产品简称
*/
@Column(name = "product_short_name")
private String productShortName;
/**
* 产品背面ID
*/
@Column(name = "back_product_face_id")
private String backProductFaceId;
/**
* 产品正面ID
*/
@Column(name = "right_product_face_id")
private String rightProductFaceId;
/**
* 产品承印物
*/
@Column(name = "product_substrate")
private String productSubstrate;
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
ProductDetail other = (ProductDetail) that;
return (this.getProductDetailId() == null ? other.getProductDetailId() == null : this.getProductDetailId().equals(other.getProductDetailId()))
&& (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
&& (this.getFactoryName() == null ? other.getFactoryName() == null : this.getFactoryName().equals(other.getFactoryName()))
&& (this.getProductLayout() == null ? other.getProductLayout() == null : this.getProductLayout().equals(other.getProductLayout()))
&& (this.getProductEnglishName() == null ? other.getProductEnglishName() == null : this.getProductEnglishName().equals(other.getProductEnglishName()))
&& (this.getProductShortName() == null ? other.getProductShortName() == null : this.getProductShortName().equals(other.getProductShortName()))
&& (this.getBackProductFaceId() == null ? other.getBackProductFaceId() == null : this.getBackProductFaceId().equals(other.getBackProductFaceId()))
&& (this.getRightProductFaceId() == null ? other.getRightProductFaceId() == null : this.getRightProductFaceId().equals(other.getRightProductFaceId()))
&& (this.getProductSubstrate() == null ? other.getProductSubstrate() == null : this.getProductSubstrate().equals(other.getProductSubstrate()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getProductDetailId() == null) ? 0 : getProductDetailId().hashCode());
result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
result = prime * result + ((getFactoryName() == null) ? 0 : getFactoryName().hashCode());
result = prime * result + ((getProductLayout() == null) ? 0 : getProductLayout().hashCode());
result = prime * result + ((getProductEnglishName() == null) ? 0 : getProductEnglishName().hashCode());
result = prime * result + ((getProductShortName() == null) ? 0 : getProductShortName().hashCode());
result = prime * result + ((getBackProductFaceId() == null) ? 0 : getBackProductFaceId().hashCode());
result = prime * result + ((getRightProductFaceId() == null) ? 0 : getRightProductFaceId().hashCode());
result = prime * result + ((getProductSubstrate() == null) ? 0 : getProductSubstrate().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", productDetailId=").append(productDetailId);
sb.append(", productId=").append(productId);
sb.append(", factoryName=").append(factoryName);
sb.append(", productLayout=").append(productLayout);
sb.append(", productEnglishName=").append(productEnglishName);
sb.append(", productShortName=").append(productShortName);
sb.append(", backProductFaceId=").append(backProductFaceId);
sb.append(", rightProductFaceId=").append(rightProductFaceId);
sb.append(", productSubstrate=").append(productSubstrate);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
/**
* 产品详细信息ID
*/
@Id
@Column(name = "product_detail_id", nullable = false, length = 32)
private String productDetailId;
/**
* 产品ID
*/
@Column(name = "product_id", nullable = true, length = 32)
private String productId;
/**
* 工厂名称
*/
@Column(name = "factory_name", nullable = true, length = 255)
private String factoryName;
/**
* 版面(product_layout)
*/
@Column(name = "product_layout", nullable = true, length = 32)
private String productLayout;
/**
* 英文名
*/
@Column(name = "product_english_name", nullable = true, length = 255)
private String productEnglishName;
/**
* 产品简称
*/
@Column(name = "product_short_name", nullable = true, length = 128)
private String productShortName;
/**
* 产品背面ID
*/
@Column(name = "back_product_face_id", nullable = true, length = 32)
private String backProductFaceId;
/**
* 产品正面ID
*/
@Column(name = "right_product_face_id", nullable = true, length = 32)
private String rightProductFaceId;
/**
* 产品承印物
*/
@Column(name = "product_substrate", nullable = true, length = 255)
private String productSubstrate;
/**
* 材料代号
*/
@Column(name = "material_code", nullable = true, length = 255)
private String materialCode;
/**
* 产品代号
*/
@Column(name = "product_code", nullable = true, length = 255)
private String productCode;
/**
* 英文代号
*/
@Column(name = "product_en_code", nullable = true, length = 255)
private String productEnCode;
/**
* 型体配色
*/
@Column(name = "body_color", nullable = true, length = 255)
private String bodyColor;
/**
* 客户料号
*/
@Column(name = "customer_material_code", nullable = true, length = 255)
private String customerMaterialCode;
/**
* 版本号
*/
@Column(name = "version_no", nullable = true, length = 255)
private String versionNo;
/**
* 是否创建新规格书
*/
@Column(name = "is_new_specification", nullable = true, length = 1)
private String isNewSpecification;
/**
* 规格书编号
*/
@Column(name = "specification_no", nullable = true, length = 32)
private String specificationNo;
@Override
public boolean equals(Object o) {
if (this == o) { return true; }
if (o == null || getClass() != o.getClass()) { return false; }
ProductDetail that = (ProductDetail) o;
return Objects.equals(productDetailId, that.productDetailId) && Objects.equals(productId, that.productId) && Objects.equals(factoryName, that.factoryName) && Objects.equals(productLayout, that.productLayout) && Objects.equals(productEnglishName, that.productEnglishName) && Objects.equals(productShortName, that.productShortName) && Objects.equals(backProductFaceId, that.backProductFaceId) && Objects.equals(rightProductFaceId, that.rightProductFaceId) && Objects.equals(productSubstrate, that.productSubstrate) && Objects.equals(materialCode, that.materialCode) && Objects.equals(productCode, that.productCode) && Objects.equals(productEnCode, that.productEnCode) && Objects.equals(bodyColor, that.bodyColor) && Objects.equals(customerMaterialCode, that.customerMaterialCode) && Objects.equals(versionNo, that.versionNo) && Objects.equals(isNewSpecification, that.isNewSpecification) && Objects.equals(specificationNo, that.specificationNo);
}
@Override
public int hashCode() {
return Objects.hash(productDetailId, productId, factoryName, productLayout, productEnglishName, productShortName, backProductFaceId, rightProductFaceId, productSubstrate, materialCode, productCode, productEnCode, bodyColor, customerMaterialCode, versionNo, isNewSpecification, specificationNo);
}
@Override
public String toString() {
return new ToStringBuilder(this)
.toString();
}
public String getProductDetailId() {
return this.productDetailId;
}
public void setProductDetailId(String productDetailId) {
this.productDetailId = productDetailId;
}
public String getProductId() {
return this.productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getFactoryName() {
return this.factoryName;
}
public void setFactoryName(String factoryName) {
this.factoryName = factoryName;
}
public String getProductLayout() {
return this.productLayout;
}
public void setProductLayout(String productLayout) {
this.productLayout = productLayout;
}
public String getProductEnglishName() {
return this.productEnglishName;
}
public void setProductEnglishName(String productEnglishName) {
this.productEnglishName = productEnglishName;
}
public String getProductShortName() {
return this.productShortName;
}
public void setProductShortName(String productShortName) {
this.productShortName = productShortName;
}
public String getBackProductFaceId() {
return this.backProductFaceId;
}
public void setBackProductFaceId(String backProductFaceId) {
this.backProductFaceId = backProductFaceId;
}
public String getRightProductFaceId() {
return this.rightProductFaceId;
}
public void setRightProductFaceId(String rightProductFaceId) {
this.rightProductFaceId = rightProductFaceId;
}
public String getProductSubstrate() {
return this.productSubstrate;
}
public void setProductSubstrate(String productSubstrate) {
this.productSubstrate = productSubstrate;
}
public String getMaterialCode() {
return this.materialCode;
}
public void setMaterialCode(String materialCode) {
this.materialCode = materialCode;
}
public String getProductCode() {
return this.productCode;
}
public void setProductCode(String productCode) {
this.productCode = productCode;
}
public String getProductEnCode() {
return this.productEnCode;
}
public void setProductEnCode(String productEnCode) {
this.productEnCode = productEnCode;
}
public String getBodyColor() {
return this.bodyColor;
}
public void setBodyColor(String bodyColor) {
this.bodyColor = bodyColor;
}
public String getCustomerMaterialCode() {
return this.customerMaterialCode;
}
public void setCustomerMaterialCode(String customerMaterialCode) {
this.customerMaterialCode = customerMaterialCode;
}
public String getVersionNo() {
return this.versionNo;
}
public void setVersionNo(String versionNo) {
this.versionNo = versionNo;
}
public String getIsNewSpecification() {
return this.isNewSpecification;
}
public void setIsNewSpecification(String isNewSpecification) {
this.isNewSpecification = isNewSpecification;
}
public String getSpecificationNo() {
return this.specificationNo;
}
public void setSpecificationNo(String specificationNo) {
this.specificationNo = specificationNo;
}
}
package com.huigou.topsun.product.domain;
import java.io.Serializable;
import javax.persistence.*;
import java.util.Objects;
import lombok.Data;
import javax.persistence.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* @author Tison
* 产品外观
* @TableName product_looked
*/
@Table(name="product_looked")
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Entity
@Table(name = "product_looked")
public class ProductLooked implements Serializable {
/**
* 产品外观ID
*/
@Id
// @GeneratedValue(strategy = GenerationType.IDENTITY) // 使用自增策略
@Column(name = "product_looked_id")
private String productLookedId;
/**
* 产品ID
*/
@Column(name = "product_id")
private String productId;
/**
* 长;单位cm
*/
@Column(name = "product_length")
private Double productLength;
/**
* 宽;单位cm
*/
@Column(name = "product_width")
private Double productWidth;
/**
* 高;单位cm
*/
@Column(name = "product_height")
private Double productHeight;
/**
* 厚度;单位mm
*/
@Column(name = "product_thick")
private Double productThick;
/**
* 成品克重;单位g
*/
@Column(name = "product_weight")
private Double productWeight;
/**
* 角型
*/
@Column(name = "product_angle_type")
private String productAngleType;
/**
* 角度(单位mm)
*/
@Column(name = "product_angle")
private Double productAngle;
/**
* 孔径(单位mm)
*/
@Column(name = "product_aperture")
private Double productAperture;
/**
* 单层厚(单位丝)
*/
@Column(name = "product_single_layer")
private Integer productSingleLayer;
/**
* 单重(单位KG)
*/
@Column(name = "product_single_weight")
private Double productSingleWeight;
/**
* 层数
*/
@Column(name = "product_layer_num")
private Integer productLayerNum;
/**
* 是否防霉(is_open)
*/
@Column(name = "product_mould")
private String productMould;
/**
* 是否写码(is_open)
*/
@Column(name = "product_coding")
private String productCoding;
/**
* 体系认证(product_sys_certification)
*/
@Column(name = "product_sys_certification")
private String productSysCertification;
/**
* 仓库(store_name)
*/
@Column(name = "store_name")
private String storeName;
/**
* 采购单位(product_buy_unit)
*/
@Column(name = "product_buy_unit")
private String productBuyUnit;
/**
* 样品形状:RIGHT-直角;ALLOTYPE-异型;FILLET-圆角;
*/
@Column(name = "product_shape")
private String productShape;
/**
* 样品形状大小(mm)
*/
@Column(name = "prodcut_shape_size")
private Double prodcutShapeSize;
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
ProductLooked other = (ProductLooked) that;
return (this.getProductLookedId() == null ? other.getProductLookedId() == null : this.getProductLookedId().equals(other.getProductLookedId()))
&& (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
&& (this.getProductLength() == null ? other.getProductLength() == null : this.getProductLength().equals(other.getProductLength()))
&& (this.getProductWidth() == null ? other.getProductWidth() == null : this.getProductWidth().equals(other.getProductWidth()))
&& (this.getProductHeight() == null ? other.getProductHeight() == null : this.getProductHeight().equals(other.getProductHeight()))
&& (this.getProductThick() == null ? other.getProductThick() == null : this.getProductThick().equals(other.getProductThick()))
&& (this.getProductWeight() == null ? other.getProductWeight() == null : this.getProductWeight().equals(other.getProductWeight()))
&& (this.getProductAngleType() == null ? other.getProductAngleType() == null : this.getProductAngleType().equals(other.getProductAngleType()))
&& (this.getProductAngle() == null ? other.getProductAngle() == null : this.getProductAngle().equals(other.getProductAngle()))
&& (this.getProductAperture() == null ? other.getProductAperture() == null : this.getProductAperture().equals(other.getProductAperture()))
&& (this.getProductSingleLayer() == null ? other.getProductSingleLayer() == null : this.getProductSingleLayer().equals(other.getProductSingleLayer()))
&& (this.getProductSingleWeight() == null ? other.getProductSingleWeight() == null : this.getProductSingleWeight().equals(other.getProductSingleWeight()))
&& (this.getProductLayerNum() == null ? other.getProductLayerNum() == null : this.getProductLayerNum().equals(other.getProductLayerNum()))
&& (this.getProductMould() == null ? other.getProductMould() == null : this.getProductMould().equals(other.getProductMould()))
&& (this.getProductCoding() == null ? other.getProductCoding() == null : this.getProductCoding().equals(other.getProductCoding()))
&& (this.getProductSysCertification() == null ? other.getProductSysCertification() == null : this.getProductSysCertification().equals(other.getProductSysCertification()))
&& (this.getStoreName() == null ? other.getStoreName() == null : this.getStoreName().equals(other.getStoreName()))
&& (this.getProductBuyUnit() == null ? other.getProductBuyUnit() == null : this.getProductBuyUnit().equals(other.getProductBuyUnit()))
&& (this.getProductShape() == null ? other.getProductShape() == null : this.getProductShape().equals(other.getProductShape()))
&& (this.getProdcutShapeSize() == null ? other.getProdcutShapeSize() == null : this.getProdcutShapeSize().equals(other.getProdcutShapeSize()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getProductLookedId() == null) ? 0 : getProductLookedId().hashCode());
result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
result = prime * result + ((getProductLength() == null) ? 0 : getProductLength().hashCode());
result = prime * result + ((getProductWidth() == null) ? 0 : getProductWidth().hashCode());
result = prime * result + ((getProductHeight() == null) ? 0 : getProductHeight().hashCode());
result = prime * result + ((getProductThick() == null) ? 0 : getProductThick().hashCode());
result = prime * result + ((getProductWeight() == null) ? 0 : getProductWeight().hashCode());
result = prime * result + ((getProductAngleType() == null) ? 0 : getProductAngleType().hashCode());
result = prime * result + ((getProductAngle() == null) ? 0 : getProductAngle().hashCode());
result = prime * result + ((getProductAperture() == null) ? 0 : getProductAperture().hashCode());
result = prime * result + ((getProductSingleLayer() == null) ? 0 : getProductSingleLayer().hashCode());
result = prime * result + ((getProductSingleWeight() == null) ? 0 : getProductSingleWeight().hashCode());
result = prime * result + ((getProductLayerNum() == null) ? 0 : getProductLayerNum().hashCode());
result = prime * result + ((getProductMould() == null) ? 0 : getProductMould().hashCode());
result = prime * result + ((getProductCoding() == null) ? 0 : getProductCoding().hashCode());
result = prime * result + ((getProductSysCertification() == null) ? 0 : getProductSysCertification().hashCode());
result = prime * result + ((getStoreName() == null) ? 0 : getStoreName().hashCode());
result = prime * result + ((getProductBuyUnit() == null) ? 0 : getProductBuyUnit().hashCode());
result = prime * result + ((getProductShape() == null) ? 0 : getProductShape().hashCode());
result = prime * result + ((getProdcutShapeSize() == null) ? 0 : getProdcutShapeSize().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", productLookedId=").append(productLookedId);
sb.append(", productId=").append(productId);
sb.append(", productLength=").append(productLength);
sb.append(", productWidth=").append(productWidth);
sb.append(", productHeight=").append(productHeight);
sb.append(", productThick=").append(productThick);
sb.append(", productWeight=").append(productWeight);
sb.append(", productAngleType=").append(productAngleType);
sb.append(", productAngle=").append(productAngle);
sb.append(", productAperture=").append(productAperture);
sb.append(", productSingleLayer=").append(productSingleLayer);
sb.append(", productSingleWeight=").append(productSingleWeight);
sb.append(", productLayerNum=").append(productLayerNum);
sb.append(", productMould=").append(productMould);
sb.append(", productCoding=").append(productCoding);
sb.append(", productSysCertification=").append(productSysCertification);
sb.append(", storeName=").append(storeName);
sb.append(", productBuyUnit=").append(productBuyUnit);
sb.append(", productShape=").append(productShape);
sb.append(", prodcutShapeSize=").append(prodcutShapeSize);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
/**
* 产品外观ID
*/
@Id
@Column(name = "product_looked_id", nullable = false, length = 32)
private String productLookedId;
/**
* 产品ID
*/
@Column(name = "product_id", nullable = true, length = 32)
private String productId;
/**
* 长;单位cm
*/
@Column(name = "product_length", nullable = true)
private Double productLength;
/**
* 宽;单位cm
*/
@Column(name = "product_width", nullable = true)
private Double productWidth;
/**
* 高;单位cm
*/
@Column(name = "product_height", nullable = true)
private Double productHeight;
/**
* 厚度;单位mm
*/
@Column(name = "product_thick", nullable = true)
private Double productThick;
/**
* 成品克重;单位g
*/
@Column(name = "product_weight", nullable = true)
private Double productWeight;
/**
* 角型
*/
@Column(name = "product_angle_type", nullable = true, length = 32)
private String productAngleType;
/**
* 角度(单位mm)
*/
@Column(name = "product_angle", nullable = true)
private Double productAngle;
/**
* 孔径(单位mm)
*/
@Column(name = "product_aperture", nullable = true)
private Double productAperture;
/**
* 单层厚(单位丝)
*/
@Column(name = "product_single_layer", nullable = true)
private Integer productSingleLayer;
/**
* 单重(单位KG)
*/
@Column(name = "product_single_weight", nullable = true)
private Double productSingleWeight;
/**
* 层数
*/
@Column(name = "product_layer_num", nullable = true)
private Integer productLayerNum;
/**
* 是否防霉(is_open)
*/
@Column(name = "product_mould", nullable = true, length = 32)
private String productMould;
/**
* 是否写码(is_open)
*/
@Column(name = "product_coding", nullable = true, length = 32)
private String productCoding;
/**
* 体系认证(product_sys_certification)
*/
@Column(name = "product_sys_certification", nullable = true, length = 32)
private String productSysCertification;
/**
* 仓库(store_name)
*/
@Column(name = "store_name", nullable = true, length = 32)
private String storeName;
/**
* 采购单位(product_buy_unit)
*/
@Column(name = "product_buy_unit", nullable = true, length = 32)
private String productBuyUnit;
/**
* 样品形状:RIGHT-直角;ALLOTYPE-异型;FILLET-圆角;
*/
@Column(name = "product_shape", nullable = true, length = 50)
private String productShape;
/**
* 样品形状大小(mm)
*/
@Column(name = "prodcut_shape_size", nullable = true, length = 102)
private Double prodcutShapeSize;
/**
* 采购换算值
*/
@Column(name = "purchase_conversion_value", nullable = true)
private Double purchaseConversionValue;
/**
* 系数
*/
@Column(name = "coefficient", nullable = true)
private Double coefficient;
@Override
public boolean equals(Object o) {
if (this == o) { return true; }
if (o == null || getClass() != o.getClass()) { return false; }
ProductLooked looked = (ProductLooked) o;
return Objects.equals(productLookedId, looked.productLookedId) && Objects.equals(productId, looked.productId) && Objects.equals(productLength, looked.productLength) && Objects.equals(productWidth, looked.productWidth) && Objects.equals(productHeight, looked.productHeight) && Objects.equals(productThick, looked.productThick) && Objects.equals(productWeight, looked.productWeight) && Objects.equals(productAngleType, looked.productAngleType) && Objects.equals(productAngle, looked.productAngle) && Objects.equals(productAperture, looked.productAperture) && Objects.equals(productSingleLayer, looked.productSingleLayer) && Objects.equals(productSingleWeight, looked.productSingleWeight) && Objects.equals(productLayerNum, looked.productLayerNum) && Objects.equals(productMould, looked.productMould) && Objects.equals(productCoding, looked.productCoding) && Objects.equals(productSysCertification, looked.productSysCertification) && Objects.equals(storeName, looked.storeName) && Objects.equals(productBuyUnit, looked.productBuyUnit) && Objects.equals(productShape, looked.productShape) && Objects.equals(prodcutShapeSize, looked.prodcutShapeSize) && Objects.equals(purchaseConversionValue, looked.purchaseConversionValue) && Objects.equals(coefficient, looked.coefficient);
}
@Override
public int hashCode() {
return Objects.hash(productLookedId, productId, productLength, productWidth, productHeight, productThick, productWeight, productAngleType, productAngle, productAperture, productSingleLayer, productSingleWeight, productLayerNum, productMould, productCoding, productSysCertification, storeName, productBuyUnit, productShape, prodcutShapeSize, purchaseConversionValue, coefficient);
}
@Override
public String toString() {
return new ToStringBuilder(this)
.toString();
}
public String getProductLookedId() {
return this.productLookedId;
}
public void setProductLookedId(String productLookedId) {
this.productLookedId = productLookedId;
}
public String getProductId() {
return this.productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public Double getProductLength() {
return this.productLength;
}
public void setProductLength(Double productLength) {
this.productLength = productLength;
}
public Double getProductWidth() {
return this.productWidth;
}
public void setProductWidth(Double productWidth) {
this.productWidth = productWidth;
}
public Double getProductHeight() {
return this.productHeight;
}
public void setProductHeight(Double productHeight) {
this.productHeight = productHeight;
}
public Double getProductThick() {
return this.productThick;
}
public void setProductThick(Double productThick) {
this.productThick = productThick;
}
public Double getProductWeight() {
return this.productWeight;
}
public void setProductWeight(Double productWeight) {
this.productWeight = productWeight;
}
public String getProductAngleType() {
return this.productAngleType;
}
public void setProductAngleType(String productAngleType) {
this.productAngleType = productAngleType;
}
public Double getProductAngle() {
return this.productAngle;
}
public void setProductAngle(Double productAngle) {
this.productAngle = productAngle;
}
public Double getProductAperture() {
return this.productAperture;
}
public void setProductAperture(Double productAperture) {
this.productAperture = productAperture;
}
public Integer getProductSingleLayer() {
return this.productSingleLayer;
}
public void setProductSingleLayer(Integer productSingleLayer) {
this.productSingleLayer = productSingleLayer;
}
public Double getProductSingleWeight() {
return this.productSingleWeight;
}
public void setProductSingleWeight(Double productSingleWeight) {
this.productSingleWeight = productSingleWeight;
}
public Integer getProductLayerNum() {
return this.productLayerNum;
}
public void setProductLayerNum(Integer productLayerNum) {
this.productLayerNum = productLayerNum;
}
public String getProductMould() {
return this.productMould;
}
public void setProductMould(String productMould) {
this.productMould = productMould;
}
public String getProductCoding() {
return this.productCoding;
}
public void setProductCoding(String productCoding) {
this.productCoding = productCoding;
}
public String getProductSysCertification() {
return this.productSysCertification;
}
public void setProductSysCertification(String productSysCertification) {
this.productSysCertification = productSysCertification;
}
public String getStoreName() {
return this.storeName;
}
public void setStoreName(String storeName) {
this.storeName = storeName;
}
public String getProductBuyUnit() {
return this.productBuyUnit;
}
public void setProductBuyUnit(String productBuyUnit) {
this.productBuyUnit = productBuyUnit;
}
public String getProductShape() {
return this.productShape;
}
public void setProductShape(String productShape) {
this.productShape = productShape;
}
public Double getProdcutShapeSize() {
return this.prodcutShapeSize;
}
public void setProdcutShapeSize(Double prodcutShapeSize) {
this.prodcutShapeSize = prodcutShapeSize;
}
public Double getPurchaseConversionValue() {
return this.purchaseConversionValue;
}
public void setPurchaseConversionValue(Double purchaseConversionValue) {
this.purchaseConversionValue = purchaseConversionValue;
}
public Double getCoefficient() {
return this.coefficient;
}
public void setCoefficient(Double coefficient) {
this.coefficient = coefficient;
}
}
......@@ -9,5 +9,5 @@ import org.springframework.data.jpa.repository.JpaRepository;
* @Description:
*/
public interface ProductDetailRepository extends JpaRepository<ProductDetail,String> {
ProductDetail findByProductIdEquals(Long productId);
ProductDetail findByProductId(String productId);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment