package com.wms_main.model.dto.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 库存更新查询
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StockUpdateQuery extends PageQuery {
    /**
     * 料号
     */
    @JsonProperty("goodsId")
    private String goodsId;
    /**
     * 箱号
     */
    @JsonProperty("vehicleId")
    private String vehicleId;
    /**
     * 筛选时间从
     */
    @JsonProperty("fromTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime fromTime;
    /**
     * 筛选时间-至
     */
    @JsonProperty("toTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime toTime;
}
