package com.jwipc.tender.model.query;/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */

import com.jwipc.db.DbUtil;
import com.jwipc.query.BasePageQuery;
import lombok.Data;

import java.io.Serial;
import java.util.List;
import java.util.Set;

@Data
public class TenderQuery extends BasePageQuery {
    @Serial
    private static final long serialVersionUID = -4490898479431882673L;
    private String name;
    private String code;
    private String purchaseGroupCode;
    private String start;
    private String end;
    private String status;
    private String createName;
    private Long TenderId;
    private Set<String> userPurchaseGroupCodes;

    private Long loginUserId;
    private List<Integer> statusList;

    public String getLikeName() {
        return DbUtil.toLike(this.name);
    }

    public String getLikeCode() {
        return DbUtil.toLike(this.code);
    }

    public String getLikeCreater() {
        return DbUtil.toLike(this.createName);
    }

    public List<String> getStatusArray() {
        return DbUtil.toList(this.status.trim());
    }
}
