package cn.iocoder.yudao.module.pms.controller.admin.iotstoragearea.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.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 IotStorageAreaPageReqVO extends PageParam {

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

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

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

    @Schema(description = "工厂name", example = "芋艿")
    private String factoryName;

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

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

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

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

    @Schema(description = "库区编码")
    private String code;

    @Schema(description = "库区名称", example = "李四")
    private String name;

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

    @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;

}