package com.fjhx.wms.entity.stock.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fjhx.wms.entity.stock.po.Stock;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * 库存新增编辑入参实体
 *
 * @author
 * @since 2023-03-20
 */
@Getter
@Setter
public class StockDto extends Stock {

    /**
     * 目标仓库id
     */
    private Long toWarehouseId;

    /**
     * 添加库存商品列表
     */
    private List<Stock> list;

    /**
     * 业务类型
     */
    private Integer type;

    /**
     * 业务id
     */
    private Long businessId;


    //手动出入库类型ID赋值
    /**
     * 生产订单id
     */
    private Long prodOrderId;
    /**
     * 销售订单id
     */
    private Long saleOrderId;
    /**
     * 借用id
     */
    private Long borrowId;
    /**
     * 预计归还时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date expectRestitutionTime;
    /**
     * 归还id
     */
    private Long restitutionId;
    /**
     * 归还时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date restitutionTime;
    /**
     * 丢件id
     */
    private Long loseId;
    /**
     * 寻回id
     */
    private Long seekId;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 出入库人
     */
    private String exWarehousePerson;

}
