增加产品导入功能
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
package com.ruoyi.price.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* BMS产品主表 bms_product
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class BmsProduct extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long productId;
|
||||
private String productCode;
|
||||
private String productName;
|
||||
private String serviceLevel;
|
||||
private String cargoAttr;
|
||||
private String destRegion;
|
||||
private String updateNote;
|
||||
/** TAX_INCLUDED / TAX_EXCLUDED */
|
||||
private String taxMode;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date effectiveDate;
|
||||
private String status;
|
||||
private String sourceSheet;
|
||||
private Long tmsId;
|
||||
/** 国家明细数(列表展示) */
|
||||
private Integer countryCount;
|
||||
private List<BmsProductCountry> countries;
|
||||
|
||||
public Long getProductId() { return productId; }
|
||||
public void setProductId(Long productId) { this.productId = productId; }
|
||||
public String getProductCode() { return productCode; }
|
||||
public void setProductCode(String productCode) { this.productCode = productCode; }
|
||||
public String getProductName() { return productName; }
|
||||
public void setProductName(String productName) { this.productName = productName; }
|
||||
public String getServiceLevel() { return serviceLevel; }
|
||||
public void setServiceLevel(String serviceLevel) { this.serviceLevel = serviceLevel; }
|
||||
public String getCargoAttr() { return cargoAttr; }
|
||||
public void setCargoAttr(String cargoAttr) { this.cargoAttr = cargoAttr; }
|
||||
public String getDestRegion() { return destRegion; }
|
||||
public void setDestRegion(String destRegion) { this.destRegion = destRegion; }
|
||||
public String getUpdateNote() { return updateNote; }
|
||||
public void setUpdateNote(String updateNote) { this.updateNote = updateNote; }
|
||||
public String getTaxMode() { return taxMode; }
|
||||
public void setTaxMode(String taxMode) { this.taxMode = taxMode; }
|
||||
public Date getEffectiveDate() { return effectiveDate; }
|
||||
public void setEffectiveDate(Date effectiveDate) { this.effectiveDate = effectiveDate; }
|
||||
public String getStatus() { return status; }
|
||||
public void setStatus(String status) { this.status = status; }
|
||||
public String getSourceSheet() { return sourceSheet; }
|
||||
public void setSourceSheet(String sourceSheet) { this.sourceSheet = sourceSheet; }
|
||||
public Long getTmsId() { return tmsId; }
|
||||
public void setTmsId(Long tmsId) { this.tmsId = tmsId; }
|
||||
public Integer getCountryCount() { return countryCount; }
|
||||
public void setCountryCount(Integer countryCount) { this.countryCount = countryCount; }
|
||||
public List<BmsProductCountry> getCountries() { return countries; }
|
||||
public void setCountries(List<BmsProductCountry> countries) { this.countries = countries; }
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("productId", getProductId())
|
||||
.append("productCode", getProductCode())
|
||||
.append("productName", getProductName())
|
||||
.append("serviceLevel", getServiceLevel())
|
||||
.append("cargoAttr", getCargoAttr())
|
||||
.append("destRegion", getDestRegion())
|
||||
.append("taxMode", getTaxMode())
|
||||
.append("effectiveDate", getEffectiveDate())
|
||||
.append("status", getStatus())
|
||||
.append("sourceSheet", getSourceSheet())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.ruoyi.price.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 产品国家服务明细 bms_product_country(含重量段,便于计费匹配)
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class BmsProductCountry implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long detailId;
|
||||
private String productCode;
|
||||
private String countryName;
|
||||
private String countryCode;
|
||||
/** 重量段最小值 KG */
|
||||
private BigDecimal weightMin;
|
||||
/** 重量段最大值 KG */
|
||||
private BigDecimal weightMax;
|
||||
private String sizeLimit;
|
||||
private String lastMile;
|
||||
private String leadTime;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date effectiveDate;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdAt;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedAt;
|
||||
|
||||
public Long getDetailId() { return detailId; }
|
||||
public void setDetailId(Long detailId) { this.detailId = detailId; }
|
||||
public String getProductCode() { return productCode; }
|
||||
public void setProductCode(String productCode) { this.productCode = productCode; }
|
||||
public String getCountryName() { return countryName; }
|
||||
public void setCountryName(String countryName) { this.countryName = countryName; }
|
||||
public String getCountryCode() { return countryCode; }
|
||||
public void setCountryCode(String countryCode) { this.countryCode = countryCode; }
|
||||
public BigDecimal getWeightMin() { return weightMin; }
|
||||
public void setWeightMin(BigDecimal weightMin) { this.weightMin = weightMin; }
|
||||
public BigDecimal getWeightMax() { return weightMax; }
|
||||
public void setWeightMax(BigDecimal weightMax) { this.weightMax = weightMax; }
|
||||
public String getSizeLimit() { return sizeLimit; }
|
||||
public void setSizeLimit(String sizeLimit) { this.sizeLimit = sizeLimit; }
|
||||
public String getLastMile() { return lastMile; }
|
||||
public void setLastMile(String lastMile) { this.lastMile = lastMile; }
|
||||
public String getLeadTime() { return leadTime; }
|
||||
public void setLeadTime(String leadTime) { this.leadTime = leadTime; }
|
||||
public Date getEffectiveDate() { return effectiveDate; }
|
||||
public void setEffectiveDate(Date effectiveDate) { this.effectiveDate = effectiveDate; }
|
||||
public Date getCreatedAt() { return createdAt; }
|
||||
public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; }
|
||||
public Date getUpdatedAt() { return updatedAt; }
|
||||
public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; }
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("detailId", getDetailId())
|
||||
.append("productCode", getProductCode())
|
||||
.append("countryName", getCountryName())
|
||||
.append("countryCode", getCountryCode())
|
||||
.append("weightMin", getWeightMin())
|
||||
.append("weightMax", getWeightMax())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user