package cn.iocoder.yudao.module.wms.dal.dataobject.inventory;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import cn.iocoder.yudao.module.wms.dal.dataobject.md.item.WmsItemSkuDO;
|
import cn.iocoder.yudao.module.wms.dal.dataobject.md.warehouse.WmsWarehouseDO;
|
import cn.iocoder.yudao.module.wms.enums.inventory.WmsReserveBizTypeEnum;
|
import cn.iocoder.yudao.module.wms.enums.inventory.WmsReserveStatusEnum;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
/**
|
* WMS 库存预留 DO
|
*
|
* @author 芋道源码
|
*/
|
@TableName("wms_inventory_reserve")
|
@KeySequence("wms_inventory_reserve_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class WmsInventoryReserveDO extends BaseDO {
|
|
/**
|
* 编号
|
*/
|
@TableId
|
private Long id;
|
|
/**
|
* 预留单号
|
*/
|
private String reserveNo;
|
|
/**
|
* 业务类型
|
*
|
* 枚举 {@link WmsReserveBizTypeEnum}
|
*/
|
private Integer bizType;
|
|
/**
|
* 业务单据 ID
|
*/
|
private Long bizId;
|
|
/**
|
* 业务单据号
|
*/
|
private String bizNo;
|
|
/**
|
* SKU 编号
|
*
|
* 关联 {@link WmsItemSkuDO#getId()}
|
*/
|
private Long skuId;
|
|
/**
|
* 仓库编号
|
*
|
* 关联 {@link WmsWarehouseDO#getId()}
|
*/
|
private Long warehouseId;
|
|
/**
|
* 预留数量
|
*/
|
private BigDecimal reserveQuantity;
|
|
/**
|
* 已使用数量
|
*/
|
private BigDecimal usedQuantity;
|
|
/**
|
* 状态
|
*
|
* 枚举 {@link WmsReserveStatusEnum}
|
*/
|
private Integer status;
|
|
/**
|
* 过期时间
|
*/
|
private LocalDateTime expireTime;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|