package com.zt.plat.module.base.controller.admin.base.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.math.BigDecimal;
import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - 物料回收率分页 Request VO")
@Data
public class MaterialDestroyPageReqVO extends PageParam {

    @Schema(description = "原料物料编码")
    private String upNumber;

    @Schema(description = "返产品物料编码")
    private String downNumber;

    @Schema(description = "原料物料名称")
    private String upName;

    @Schema(description = "返产品物料名称")
    private String downName;

    @Schema(description = "回收率")
    private BigDecimal ratio;

    @Schema(description = "是否使用该物料核销")
    private String operation;

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

    @Schema(description = "供应商编码")
    private String supplierNumber;

    @Schema(description = "供应商名称", example = "王五")
    private String supplierName;

    @Schema(description = "是否启用")
    private String isEnable;
    @Schema(description = "收货单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    private String receiveUnit;
    @Schema(description = "发货单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    private String sendUnit;

}