package cn.superdesk.uniorder.dto.param.invoice.common;

import cn.superdesk.uniorder.common.pagination.AnBaseQueryCriteria;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.List;

/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2022/1/24 下午5:58
 * @UpdateUser: linjinyu
 * @UpdateDate: 2022/1/24 下午5:58
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder(toBuilder = true)
@Data
public class InvoiceBankInfoQueryCriteria extends AnBaseQueryCriteria {


//	Map<String, Object> params = new HashMap<>();
//	params.put("companyName", getString("companyName"));
//	params.put("enabled", 1);

	@ApiModelProperty("收款方Id sql -> and id = #{invoiceBankInfoId}")
	private Long       invoiceBankInfoId;
	@ApiModelProperty("收款方Id sql -> and id not in ( #{invoiceBankInfoIdNotIn} )")
	private List<Long> invoiceBankInfoIdNotIn;
	@ApiModelProperty("收款方名称 sql -> and company_name like CONCAT('%',#{companyName},'%')")
	private String     companyName;
	@ApiModelProperty("收款方名称 sql -> and company_name = #{companyName}")
	private String     companyNameEq;
//	@ApiModelProperty("")
//	private String  taxpayersIDCode;
//	@ApiModelProperty("")
//	private String  bankAccount;
//	@ApiModelProperty("")
//	private String  bankName;
//	@ApiModelProperty("")
//	private String  supplyName;
//	@ApiModelProperty("")
//	private String  tel;
//	@ApiModelProperty("")
//	private String  address;
//	@ApiModelProperty("")
//	private String  param1;
//	@ApiModelProperty("")
//	private String  param2;
//	@ApiModelProperty("")
//	private Date    createTime;
//	@ApiModelProperty("")
//	private Long    createUserId;
//	@ApiModelProperty("")
//	private Date    updateTime;
//	@ApiModelProperty("")
//	private Long    updateUserId;
//	@ApiModelProperty("")
//	private Integer isDefault;

	@ApiModelProperty("是否启用:0-禁用;1-启用;默认为1-启用")
	private Integer enabled = 1;
	@ApiModelProperty("软删除:0-正常;1-删除;默认为0-正常")
	private Integer deleted = 0;
	@ApiModelProperty("排序,默认为 is_default desc, create_time asc sql -> order by is_default desc, create_time asc")
	private String  orderBy = "is_default desc, create_time asc";
}
