|
|
|
@ -2,7 +2,9 @@ package com.hw.wms.domain;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
import com.hw.common.core.constant.MesConstants;
|
|
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
|
import com.hw.common.core.annotation.Excel;
|
|
|
|
@ -14,101 +16,144 @@ import com.hw.common.core.web.domain.BaseEntity;
|
|
|
|
|
* @author xs
|
|
|
|
|
* @date 2023-12-21
|
|
|
|
|
*/
|
|
|
|
|
public class WmsRawStock extends BaseEntity
|
|
|
|
|
{
|
|
|
|
|
public class WmsRawStock extends BaseEntity {
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
/** 原材料库存ID */
|
|
|
|
|
/**
|
|
|
|
|
* 原材料库存ID
|
|
|
|
|
*/
|
|
|
|
|
private Long rawStockId;
|
|
|
|
|
|
|
|
|
|
/** 仓库ID */
|
|
|
|
|
/**
|
|
|
|
|
* 仓库ID
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "仓库ID")
|
|
|
|
|
private Long warehouseId;
|
|
|
|
|
|
|
|
|
|
/** 仓库名称 */
|
|
|
|
|
/**
|
|
|
|
|
* 仓库名称
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "仓库名称")
|
|
|
|
|
private String warehouseName;
|
|
|
|
|
|
|
|
|
|
/** 仓库楼层 */
|
|
|
|
|
/**
|
|
|
|
|
* 仓库楼层
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "仓库楼层")
|
|
|
|
|
private Long warehouseFloor;
|
|
|
|
|
|
|
|
|
|
/** 库位编码 */
|
|
|
|
|
/**
|
|
|
|
|
* 库位编码
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "库位编码")
|
|
|
|
|
private String locationCode;
|
|
|
|
|
|
|
|
|
|
/** 库存类型:1原材料 2半成品 */
|
|
|
|
|
/**
|
|
|
|
|
* 库存类型:1原材料 2半成品
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "库存类型")
|
|
|
|
|
private String stockType;
|
|
|
|
|
|
|
|
|
|
/** 物料ID */
|
|
|
|
|
/**
|
|
|
|
|
* 物料ID
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "物料ID")
|
|
|
|
|
private Long materialId;
|
|
|
|
|
|
|
|
|
|
/** 物料编号 */
|
|
|
|
|
/**
|
|
|
|
|
* 物料编号
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "物料编号")
|
|
|
|
|
private String materialCode;
|
|
|
|
|
|
|
|
|
|
/** 物料名称 */
|
|
|
|
|
/**
|
|
|
|
|
* 物料名称
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "物料名称")
|
|
|
|
|
private String materialName;
|
|
|
|
|
|
|
|
|
|
/** 入库批次号 */
|
|
|
|
|
/**
|
|
|
|
|
* 入库批次号
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "入库批次号")
|
|
|
|
|
private String instockBatch;
|
|
|
|
|
|
|
|
|
|
/**托盘码*/
|
|
|
|
|
/**
|
|
|
|
|
* 托盘码
|
|
|
|
|
*/
|
|
|
|
|
private String palletInfoCode;
|
|
|
|
|
|
|
|
|
|
private Long saleOrderId;
|
|
|
|
|
|
|
|
|
|
private String safeFlag;
|
|
|
|
|
|
|
|
|
|
/** 入库时间 */
|
|
|
|
|
/**
|
|
|
|
|
* 入库时间
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
@Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
private Date instockDate;
|
|
|
|
|
|
|
|
|
|
/** 最晚出库时间;入库时,根据物料信“存放周期“计算出来的时间 */
|
|
|
|
|
/**
|
|
|
|
|
* 最晚出库时间;入库时,根据物料信“存放周期“计算出来的时间
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
@Excel(name = "最晚出库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
private Date lastOutstockTime;
|
|
|
|
|
|
|
|
|
|
/** 质检状态(1检验中,2质检通过,3质检不通过) */
|
|
|
|
|
/**
|
|
|
|
|
* 质检状态(1检验中,2质检通过,3质检不通过)
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "质检状态")
|
|
|
|
|
private String qualityStatus;
|
|
|
|
|
|
|
|
|
|
/** 完整标识 */
|
|
|
|
|
/**
|
|
|
|
|
* 完整标识
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "完整标识")
|
|
|
|
|
private String completeFlag;
|
|
|
|
|
|
|
|
|
|
/** 总数量 */
|
|
|
|
|
/**
|
|
|
|
|
* 总数量
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "总数量")
|
|
|
|
|
private BigDecimal totalAmount;
|
|
|
|
|
|
|
|
|
|
/** 冻结数量 */
|
|
|
|
|
/**
|
|
|
|
|
* 冻结数量
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "冻结数量")
|
|
|
|
|
private BigDecimal frozenAmount;
|
|
|
|
|
|
|
|
|
|
/** 占用数量 */
|
|
|
|
|
/**
|
|
|
|
|
* 占用数量
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "占用数量")
|
|
|
|
|
private BigDecimal occupyAmount;
|
|
|
|
|
|
|
|
|
|
/** 供应商ID */
|
|
|
|
|
/**
|
|
|
|
|
* 供应商ID
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "供应商ID")
|
|
|
|
|
private Long supplierId;
|
|
|
|
|
|
|
|
|
|
/** 创建时间 */
|
|
|
|
|
/**
|
|
|
|
|
* 创建时间
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
private Date createDate;
|
|
|
|
|
|
|
|
|
|
/** 最后更新时间 */
|
|
|
|
|
/**
|
|
|
|
|
* 最后更新时间
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
@Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
private Date updateDate;
|
|
|
|
|
|
|
|
|
|
/** 有效标记 */
|
|
|
|
|
/**
|
|
|
|
|
* 有效标记
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "有效标记")
|
|
|
|
|
private String activeFlag;
|
|
|
|
|
|
|
|
|
@ -136,22 +181,19 @@ public class WmsRawStock extends BaseEntity
|
|
|
|
|
this.materialName = materialName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setRawStockId(Long rawStockId)
|
|
|
|
|
{
|
|
|
|
|
public void setRawStockId(Long rawStockId) {
|
|
|
|
|
this.rawStockId = rawStockId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getRawStockId()
|
|
|
|
|
{
|
|
|
|
|
public Long getRawStockId() {
|
|
|
|
|
return rawStockId;
|
|
|
|
|
}
|
|
|
|
|
public void setWarehouseId(Long warehouseId)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setWarehouseId(Long warehouseId) {
|
|
|
|
|
this.warehouseId = warehouseId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getWarehouseId()
|
|
|
|
|
{
|
|
|
|
|
public Long getWarehouseId() {
|
|
|
|
|
return warehouseId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -163,40 +205,35 @@ public class WmsRawStock extends BaseEntity
|
|
|
|
|
this.warehouseFloor = warehouseFloor;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setLocationCode(String locationCode)
|
|
|
|
|
{
|
|
|
|
|
public void setLocationCode(String locationCode) {
|
|
|
|
|
this.locationCode = locationCode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getLocationCode()
|
|
|
|
|
{
|
|
|
|
|
public String getLocationCode() {
|
|
|
|
|
return locationCode;
|
|
|
|
|
}
|
|
|
|
|
public void setStockType(String stockType)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setStockType(String stockType) {
|
|
|
|
|
this.stockType = stockType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getStockType()
|
|
|
|
|
{
|
|
|
|
|
public String getStockType() {
|
|
|
|
|
return stockType;
|
|
|
|
|
}
|
|
|
|
|
public void setMaterialId(Long materialId)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setMaterialId(Long materialId) {
|
|
|
|
|
this.materialId = materialId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getMaterialId()
|
|
|
|
|
{
|
|
|
|
|
public Long getMaterialId() {
|
|
|
|
|
return materialId;
|
|
|
|
|
}
|
|
|
|
|
public void setInstockBatch(String instockBatch)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setInstockBatch(String instockBatch) {
|
|
|
|
|
this.instockBatch = instockBatch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getInstockBatch()
|
|
|
|
|
{
|
|
|
|
|
public String getInstockBatch() {
|
|
|
|
|
return instockBatch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -224,31 +261,27 @@ public class WmsRawStock extends BaseEntity
|
|
|
|
|
this.safeFlag = safeFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setInstockDate(Date instockDate)
|
|
|
|
|
{
|
|
|
|
|
public void setInstockDate(Date instockDate) {
|
|
|
|
|
this.instockDate = instockDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getInstockDate()
|
|
|
|
|
{
|
|
|
|
|
public Date getInstockDate() {
|
|
|
|
|
return instockDate;
|
|
|
|
|
}
|
|
|
|
|
public void setLastOutstockTime(Date lastOutstockTime)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setLastOutstockTime(Date lastOutstockTime) {
|
|
|
|
|
this.lastOutstockTime = lastOutstockTime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getLastOutstockTime()
|
|
|
|
|
{
|
|
|
|
|
public Date getLastOutstockTime() {
|
|
|
|
|
return lastOutstockTime;
|
|
|
|
|
}
|
|
|
|
|
public void setQualityStatus(String qualityStatus)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setQualityStatus(String qualityStatus) {
|
|
|
|
|
this.qualityStatus = qualityStatus;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getQualityStatus()
|
|
|
|
|
{
|
|
|
|
|
public String getQualityStatus() {
|
|
|
|
|
return qualityStatus;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -260,91 +293,88 @@ public class WmsRawStock extends BaseEntity
|
|
|
|
|
this.completeFlag = completeFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setTotalAmount(BigDecimal totalAmount)
|
|
|
|
|
{
|
|
|
|
|
public void setTotalAmount(BigDecimal totalAmount) {
|
|
|
|
|
this.totalAmount = totalAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getTotalAmount()
|
|
|
|
|
{
|
|
|
|
|
public BigDecimal getTotalAmount() {
|
|
|
|
|
return totalAmount;
|
|
|
|
|
}
|
|
|
|
|
public void setFrozenAmount(BigDecimal frozenAmount)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setFrozenAmount(BigDecimal frozenAmount) {
|
|
|
|
|
this.frozenAmount = frozenAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getFrozenAmount()
|
|
|
|
|
{
|
|
|
|
|
public BigDecimal getFrozenAmount() {
|
|
|
|
|
return frozenAmount;
|
|
|
|
|
}
|
|
|
|
|
public void setOccupyAmount(BigDecimal occupyAmount)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setOccupyAmount(BigDecimal occupyAmount) {
|
|
|
|
|
this.occupyAmount = occupyAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getOccupyAmount()
|
|
|
|
|
{
|
|
|
|
|
public BigDecimal getOccupyAmount() {
|
|
|
|
|
return occupyAmount;
|
|
|
|
|
}
|
|
|
|
|
public void setSupplierId(Long supplierId)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setSupplierId(Long supplierId) {
|
|
|
|
|
this.supplierId = supplierId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getSupplierId()
|
|
|
|
|
{
|
|
|
|
|
public Long getSupplierId() {
|
|
|
|
|
return supplierId;
|
|
|
|
|
}
|
|
|
|
|
public void setCreateDate(Date createDate)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setCreateDate(Date createDate) {
|
|
|
|
|
this.createDate = createDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getCreateDate()
|
|
|
|
|
{
|
|
|
|
|
public Date getCreateDate() {
|
|
|
|
|
return createDate;
|
|
|
|
|
}
|
|
|
|
|
public void setUpdateDate(Date updateDate)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setUpdateDate(Date updateDate) {
|
|
|
|
|
this.updateDate = updateDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getUpdateDate()
|
|
|
|
|
{
|
|
|
|
|
public Date getUpdateDate() {
|
|
|
|
|
return updateDate;
|
|
|
|
|
}
|
|
|
|
|
public void setActiveFlag(String activeFlag)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public void setActiveFlag(String activeFlag) {
|
|
|
|
|
this.activeFlag = activeFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getActiveFlag()
|
|
|
|
|
{
|
|
|
|
|
public String getActiveFlag() {
|
|
|
|
|
return activeFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getLocationAndMaterial() {
|
|
|
|
|
return "库位:" + locationCode + ",物料条码:" + instockBatch +
|
|
|
|
|
",安全库存:"+(safeFlag.equals(MesConstants.MES_ORDER_BIND_SAFE_FLAG_YES)?"是":"否")+";";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
|
|
|
.append("rawStockId", getRawStockId())
|
|
|
|
|
.append("warehouseId", getWarehouseId())
|
|
|
|
|
.append("locationCode", getLocationCode())
|
|
|
|
|
.append("stockType", getStockType())
|
|
|
|
|
.append("materialId", getMaterialId())
|
|
|
|
|
.append("instockBatch", getInstockBatch())
|
|
|
|
|
.append("instockDate", getInstockDate())
|
|
|
|
|
.append("lastOutstockTime", getLastOutstockTime())
|
|
|
|
|
.append("qualityStatus", getQualityStatus())
|
|
|
|
|
.append("totalAmount", getTotalAmount())
|
|
|
|
|
.append("frozenAmount", getFrozenAmount())
|
|
|
|
|
.append("occupyAmount", getOccupyAmount())
|
|
|
|
|
.append("supplierId", getSupplierId())
|
|
|
|
|
.append("createBy", getCreateBy())
|
|
|
|
|
.append("createDate", getCreateDate())
|
|
|
|
|
.append("updateBy", getUpdateBy())
|
|
|
|
|
.append("updateDate", getUpdateDate())
|
|
|
|
|
.append("activeFlag", getActiveFlag())
|
|
|
|
|
.toString();
|
|
|
|
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
|
|
|
|
.append("rawStockId", getRawStockId())
|
|
|
|
|
.append("warehouseId", getWarehouseId())
|
|
|
|
|
.append("locationCode", getLocationCode())
|
|
|
|
|
.append("stockType", getStockType())
|
|
|
|
|
.append("materialId", getMaterialId())
|
|
|
|
|
.append("instockBatch", getInstockBatch())
|
|
|
|
|
.append("instockDate", getInstockDate())
|
|
|
|
|
.append("lastOutstockTime", getLastOutstockTime())
|
|
|
|
|
.append("qualityStatus", getQualityStatus())
|
|
|
|
|
.append("totalAmount", getTotalAmount())
|
|
|
|
|
.append("frozenAmount", getFrozenAmount())
|
|
|
|
|
.append("occupyAmount", getOccupyAmount())
|
|
|
|
|
.append("supplierId", getSupplierId())
|
|
|
|
|
.append("createBy", getCreateBy())
|
|
|
|
|
.append("createDate", getCreateDate())
|
|
|
|
|
.append("updateBy", getUpdateBy())
|
|
|
|
|
.append("updateDate", getUpdateDate())
|
|
|
|
|
.append("activeFlag", getActiveFlag())
|
|
|
|
|
.toString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|