A complete idea spring boot project and pit---4.FilterBean


FilterConditions

A collection of multiple filter conditions, which can be directly put into the related methods of map/controller/service for parameter transfer



package com.example.demo.FilterBean ;
 /**
 * This class stores the necessary conditions for data query
 */
 public class FilterConditions {
     /**
      * Filter by school name
      */
 private String name ;
     private   String stime ;
     private String etime ;
     private String category ;
     private String orderid ;
     public String getName () {
         return name ;
 }
    
    

    public String getStime() {
        return stime;
    }

    public String getEtime() {
        return etime;
    }

    public String getCategory() {
        return category;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setStime(String stime) {
        this.stime = stime;
    }

    public void setEtime(String etime) {
        this.etime = etime;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    @Override
public String toString() {
        return "FilterConditions{" +
                "name='" + name + '\'' +
                ", stime='" + stime + '\'' +
                ", etime='" + etime + '\'' +
                ", category='" + category + '\''+
                ", orderid='" + orderid     + '\'' +
                '}';
    }
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325811114&siteId=291194637