Jeesite 过滤指定字典的值(显示字典的一部分值)

一、

HTML

<#form:select name="fbilltype" items="${billTypeFilter}" itemLabel="text" itemValue="id" blankOption="false" blankOption="true" class="form-control"/>

二、

Controller:


model.addAttribute("billTypeFilter", dictDataSelectService.getBillTypeData("'401','402'"));


Service:

 public List getBillTypeData(String data) {
        DictDataSelect dictDataSelect = new DictDataSelect();
        dictDataSelect.setValues(data);
        return dao.getBillTypeData(dictDataSelect);
    }

Dao :

 public List getBillTypeData(DictDataSelect dictDataSelect);

XML :
 
    

实体:

public class DictDataSelect extends DataEntity{
    private String id;
    private String text;
    private String values;
    private String type;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getValues() {
        return values;
    }

    public void setValues(String values) {
        this.values = values;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    
    
}


    


 

你可能感兴趣的:(jeeSite4)