package cn.iocoder.yudao.module.system.controller.admin.deptsaporg.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 java.util.Collection;

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 DeptSapOrgPageReqVO extends PageParam {

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

    @Schema(description = "SAP组织id(工厂/成本中心)", example = "32319")
    private Long sapOrgId;

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

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

    @Schema(description = "SAP库存地点id", example = "32319")
    private Long stockLocationId;

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

    /**
     * 扩展字段
     */
    @Schema(description = "部门id集合", example = "32319")
    private Collection<Long> deptIds;
}