package com.jwipc.shopping.model.query;

import com.baomidou.mybatisplus.core.toolkit.StringPool;
import com.jwipc.query.BasePageQuery;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * <p>
 *     商城发票维护查询实体类
 * </p>
 *
 * @author qmx
 * @version 1.0
 * @since 2021/8/4
 */
@Data
public class ShoppingQuery extends BasePageQuery {

    /**
     * 类型查询
     */
    private Integer invoiceType;
    /**
     * 抬头
     */
    private String invoiceTitle;
    /**
     * 公司代码
     */
    private String companyCode;
    /**
     * 数据状态 -1:全部 0:启用 1:停用
     */
    private Integer status;


    public String getInvoiceTitleLike(){
        return StringUtils.isEmpty(this.invoiceTitle) ? null : StringPool.PERCENT + this.invoiceTitle + StringPool.PERCENT;
    }

}
