package cn.iocoder.yudao.module.pms.controller.admin.iotcargolocation.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 货位分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotCargoLocationPageReqVO extends PageParam {

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

    @Schema(description = "工厂id(SAP) 专业公司", example = "389")
    private Long factoryId;

    @Schema(description = "工厂编码")
    private String factoryCode;

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

    @Schema(description = "成本中心 code")
    private String costCenterCode;

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

    @Schema(description = "库存地点编码 - 项目部")
    private String storageLocationCode;

    @Schema(description = "仓库区域(A区 B区)", example = "9339")
    private Long storageAreaId;

    @Schema(description = "货架id", example = "9384")
    private Long shelvesId;

    @Schema(description = "货位编码")
    private String code;

    @Schema(description = "货位名称", example = "芋艿")
    private String name;

    @Schema(description = "货位类型", example = "1")
    private Integer type;

    @Schema(description = "排号（货架的水平分区）")
    private Integer row;

    @Schema(description = "层号（货架的垂直分区）")
    private Integer layer;

    @Schema(description = "列号（货架的纵深分区）")
    private Integer columnNumber;

    @Schema(description = "货位容量（单位：可自定义，如件数、体积m³、重量kg）")
    private BigDecimal capacity;

    @Schema(description = "当前已使用容量")
    private BigDecimal currentUsage;

    @Schema(description = "显示顺序")
    private Integer sort;

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

    @Schema(description = "备注", example = "你猜")
    private String remark;

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

}