package com.swfarm.biz.lazada.dto;

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

import org.apache.commons.lang.StringUtils;

import com.swfarm.biz.oa.dto.SearchCriteria;
import com.swfarm.pub.utils.DateUtils;

public class SearchLazadaProductsCriteria extends SearchCriteria implements Serializable {

	private String accountNumber;
	
	private List<String> accountNumbers;
	
	private String sellerSku;

	private String shopSku;

	private String name;

	private Date lowerSaleStartDate;
	
	private Date upperSaleStartDate;

	private Date lowerSaleEndDate;
	
	private Date upperSaleEndDate;

	private String status;

	private String productId;

	public String getAccountNumber() {
		return accountNumber;
	}
	
	public void setAccountNumber(String accountNumber) {
		this.accountNumber = accountNumber;
	}
	
	public List<String> getAccountNumbers() {
        return accountNumbers;
    }

    public void setAccountNumbers(List<String> accountNumbers) {
        this.accountNumbers = accountNumbers;
    }

    public String getSellerSku() {
		return sellerSku;
	}

	public void setSellerSku(String sellerSku) {
		this.sellerSku = sellerSku;
	}

	public String getShopSku() {
		return shopSku;
	}

	public void setShopSku(String shopSku) {
		this.shopSku = shopSku;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Date getLowerSaleStartDate() {
		return lowerSaleStartDate;
	}

	public void setLowerSaleStartDate(Date lowerSaleStartDate) {
		this.lowerSaleStartDate = lowerSaleStartDate;
	}

	public Date getUpperSaleStartDate() {
		return upperSaleStartDate;
	}

	public void setUpperSaleStartDate(Date upperSaleStartDate) {
		this.upperSaleStartDate = upperSaleStartDate;
	}

	public Date getLowerSaleEndDate() {
		return lowerSaleEndDate;
	}

	public void setLowerSaleEndDate(Date lowerSaleEndDate) {
		this.lowerSaleEndDate = lowerSaleEndDate;
	}

	public Date getUpperSaleEndDate() {
		return upperSaleEndDate;
	}

	public void setUpperSaleEndDate(Date upperSaleEndDate) {
		this.upperSaleEndDate = upperSaleEndDate;
	}

	public String getLowerSaleStartDateString() {
		if (lowerSaleStartDate != null) {
			return DateUtils.dateToString(lowerSaleStartDate, "yyyy/MM/dd");
		} else {
			return StringUtils.EMPTY;
		}
	}
	
	public String getUpperSaleStartDateString() {
		if (upperSaleStartDate != null) {
			return DateUtils.dateToString(upperSaleStartDate, "yyyy/MM/dd");
		} else {
			return StringUtils.EMPTY;
		}
	}
	
	public String getLowerSaleEndDateString() {
		if (lowerSaleEndDate != null) {
			return DateUtils.dateToString(lowerSaleEndDate, "yyyy/MM/dd");
		} else {
			return StringUtils.EMPTY;
		}
	}
	
	public String getUpperSaleEndDateString() {
		if (upperSaleEndDate != null) {
			return DateUtils.dateToString(upperSaleEndDate, "yyyy/MM/dd");
		} else {
			return StringUtils.EMPTY;
		}
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

}
