package cn.iocoder.yudao.module.pms.controller.admin.iotsappickinglist.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - PMS SAP 领料单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotSapPickingListPageReqVO extends PageParam {

    @Schema(description = "组织部门id", example = "24856")
    private Long deptId;

    @Schema(description = "SAP工厂id", example = "13133")
    private Long factoryId;

    @Schema(description = "工厂(SAP)")
    private String factory;

    @Schema(description = "成本中心id", example = "7415")
    private Long costCenterId;

    @Schema(description = "成本中心(SAP)")
    private String costCenter;

    @Schema(description = "库存地点id", example = "20261")
    private Long storageLocationId;

    @Schema(description = "库存地点")
    private String storageLocation;

    @Schema(description = "领料单号")
    private String number;

    @Schema(description = "物料编码")
    private String materialCode;

    @Schema(description = "物料名称", example = "张三")
    private String materialName;

    @Schema(description = "物料组", example = "赵六")
    private String materialGroupName;

    @Schema(description = "物料组id", example = "30688")
    private Long materialGroupId;

    @Schema(description = "数量")
    private BigDecimal quantity;

    @Schema(description = "单价", example = "14631")
    private BigDecimal unitPrice;

    @Schema(description = "单位")
    private String unit;

    @Schema(description = "同步状态 0未同步 1同步成功 2同步失败", example = "2")
    private Integer syncStatus;

    @Schema(description = "最后一次同步时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] syncTime;

    @Schema(description = "同步失败时的错误信息")
    private String syncError;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "状态 0启用  1停用", example = "1")
    private Integer status;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}