package com.xunhong.erp.turbo.api.biz.dto.qry;

import com.xunhong.erp.turbo.api.biz.dto.enums.PurchaseOrderStateEnum;
import com.xunhong.erp.turbo.api.biz.dto.enums.PurchaseOrderTypeEnum;
import com.xunhong.erp.turbo.base.dto.PageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "订单供应商分页查询")
@EqualsAndHashCode(callSuper = true)
public class OrderSupplierPageQry extends PageQuery {

    @Schema(title = "订单供应商ID", type = "string")
    private Long orderSupplierId;

	@Schema(title = "订单ID", type = "string")
	private Long orderId;

	@Schema(title = "供应商id", type = "string")
	private Long supplierId;

	@Schema(title = "发货日期")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private List<LocalDateTime> deliveryTime;

	@Schema(title = "发票上传", type = "boolean")
	private Boolean invoiceUpload;

	@Schema(title = "订单状态")
	private List<PurchaseOrderStateEnum> poStates;

	@Schema(title = "订单类型")
	private PurchaseOrderTypeEnum poType;

	@Schema(title = "是否支付", type = "boolean")
	private Boolean isPaid;
}

