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 jakarta.validation.constraints.NotEmpty;
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 ErpProductiveOrderPageReqVO extends PageParam {

    @Schema(description = "公司编号")
    @NotEmpty(message = "公司编号不能为空")
    private String companyNumber;

    @Schema(description = "工厂编码")
    @NotEmpty(message = "工厂编码不能为空")
    private String factoryNumber;

    @Schema(description = "工厂名称", example = "赵六")
    private String factoryName;

    @Schema(description = "订单编号")
    private String orderNumber;

    @Schema(description = "基本开始日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @NotEmpty(message = "基本开始日期不能为空")
    private LocalDateTime[] startDate;

    @Schema(description = "基本完成日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @NotEmpty(message = "基本完成日期不能为空")
    private LocalDateTime[] endDate;

    @Schema(description = "主产品物料编号")
    private String mainMaterialNumber;

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

    @Schema(description = "物料描述")
    private String materialDescription;

    @Schema(description = "工序列表")
    private String processingList;

    @Schema(description = "工序编号")
    private String processingNumber;

    @Schema(description = "工序描述")
    private String processingDescription;

    @Schema(description = "对象编号")
    private String objectNumber;

    @Schema(description = "工作中心编码")
    private String workCenterNumber;

    @Schema(description = "工作中心描述")
    private String workCenterDescription;

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

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

}