package com.tzy.common.dto.group;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author by po'yi
 * @Classname GroupQuery
 * @Description 订单查询参数
 * @Date 2023/3/17 15:27
 */
@Data
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrderQuery implements Serializable {
	private List<Long> infoIds;
	/**搜索*/
	private String keyword;
	/**搜索*/
	private Integer status;
	private String merchantName;
	private Integer merchantId;
	private String numEmpty;
	private String pickUpType;
	private Integer userId;
	//private Integer goodsType;
	private Integer refuseStatus;
	/**状态集合*/
	private List<Integer> statusList;
	//每页数据条数
	private Integer pageSize;
	//页码数
	private Integer pageNo;
	private Integer offset;
	/**升序降序desc*/
	private String sort="DESC";
	/**排序字段*/
	private String sidx="startTime";
	/**是否已支付运费等*/
	private boolean payed;

	private List<Long> orderIds;


	public Integer getOffset(){
		if(this.pageNo==null||this.pageSize==null){
			return null;
		}
		return((pageNo) - 1 ) * pageSize;
	}
}
