<#ibiztemplate>
TARGET=PSDATAENTITY
</#ibiztemplate>
package ${pub.getPKGCodeName()}.${item.getPSSystemModule().codeName?lower_case}.service.dto;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import ${pub.getPKGCodeName()}.${item.getPSSystemModule().codeName?lower_case}.domain.${item.getCodeName()};
import org.springframework.util.StringUtils;
import lombok.Data;

@Data
public class ${item.getCodeName()}SearchFilter{

	private QueryWrapper<${item.getCodeName()}> selectCond;
	public ${item.getCodeName()}SearchFilter(){
		this.selectCond=new QueryWrapper<${item.getCodeName()}>();
	}
	/**
	 * 输出实体搜索项
	 */
<#list item.getPSDEFields() as defield>
	<#list defield.getAllPSDEFSearchModes() as formitem>
	private ${srfjavatype(formitem.getPSDEField().stdDataType)} ${formitem.getName()?lower_case};//[${defield.getLogicName()}]
	public void set${formitem.getName()?lower_case?cap_first}(${srfjavatype(formitem.getPSDEField().stdDataType)} ${formitem.getName()?lower_case}) {
        this.${formitem.getName()?lower_case} = ${formitem.getName()?lower_case};
        if(!StringUtils.isEmpty(this.${formitem.getName()?lower_case})){
		<#if formitem.getValueOp() == "LIKE">
            this.selectCond.like("${formitem.getPSDEField().getName()?lower_case}", ${formitem.getName()?lower_case});
		<#elseif formitem.getValueOp() == "LEFTLIKE">
            this.selectCond.likeLeft("${formitem.getPSDEField().getName()?lower_case}", ${formitem.getName()?lower_case});
		<#elseif formitem.getValueOp() == "RIGHTLIKE">
            this.selectCond.likeRight("${formitem.getPSDEField().getName()?lower_case}", ${formitem.getName()?lower_case});
		<#elseif formitem.getValueOp() == "EQ">
            this.selectCond.eq("${formitem.getPSDEField().getName()?lower_case}", ${formitem.getName()?lower_case});
		<#elseif formitem.getValueOp() == "NOTEQ">
            this.selectCond.ne("${formitem.getPSDEField().getName()?lower_case}", ${formitem.getName()?lower_case});
		<#elseif formitem.getValueOp() == "GT">
            this.selectCond.gt("${formitem.getPSDEField().getName()?lower_case}", ${formitem.getName()?lower_case});
		<#elseif formitem.getValueOp() == "GTANDEQ">
            this.selectCond.ge("${formitem.getPSDEField().getName()?lower_case}", ${formitem.getName()?lower_case});
		<#elseif formitem.getValueOp() == "LT">
            this.selectCond.lt("${formitem.getPSDEField().getName()?lower_case}", ${formitem.getName()?lower_case});
		<#elseif formitem.getValueOp() == "LTANDEQ">
            this.selectCond.le("${formitem.getPSDEField().getName()?lower_case}", ${formitem.getName()?lower_case});
		</#if>
        }
    }
	</#list>
</#list>

}