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.WmsTransactionTypeEnum;
|
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_transaction")
|
@KeySequence("wms_inventory_transaction_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class WmsInventoryTransactionDO extends BaseDO {
|
|
/**
|
* 编号
|
*/
|
@TableId
|
private Long id;
|
|
/**
|
* 事务流水号
|
*/
|
private String transactionNo;
|
|
/**
|
* 事务类型
|
*
|
* 枚举 {@link WmsTransactionTypeEnum}
|
*/
|
private Integer transactionType;
|
|
/**
|
* 业务类型
|
*/
|
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 quantity;
|
|
/**
|
* 变动前数量
|
*/
|
private BigDecimal beforeQuantity;
|
|
/**
|
* 变动后数量
|
*/
|
private BigDecimal afterQuantity;
|
|
/**
|
* 关联预留 ID
|
*/
|
private Long reserveId;
|
|
/**
|
* 关联预留单号
|
*/
|
private String reserveNo;
|
|
/**
|
* 事务时间
|
*/
|
private LocalDateTime transactionTime;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|