package com.zt.plat.module.erp.controller.admin.erp.vo;

import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - ERP成本中心分页 Request VO")
@Data
public class ErpCostcenterPageReqVO extends PageParam {

    @Schema(description = "成本中心编码")
    private String number;

    @Schema(description = "成本中心描述", example = "赵六")
    private String name;

    @Schema(description = "工区必填;使用这个基础数据是，如果为X时必须和工区使用")
    private String isUse;

    @Schema(description = "功能范围")
    private String scopeNumber;

    @Schema(description = "功能范围描述", example = "赵六")
    private String scopeName;

    @Schema(description = "起始日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startDate;

    @Schema(description = "截止日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endDate;

}