mybatis的select标签里从一个对象参数里取其中的map属性里的一个list里的某个特定元素

阅读更多



package cn.com.n22.global.common.query;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@JsonInclude(Include.NON_NULL)  
public class Query{

	/**
	 * 查询页码
	 */
	private Integer pageNum = 1;
	
	/**
	 * 查取记录数
	 * 默认
	 */
	private Integer pageSize = 10;

	/**
	 * 排序集合
	 * key = 排序字段 
	 * value = 排序方式
	 */
	private Map orderMap;
	
	/**
	 * 模糊查詢
	 * 界面写法:searchMap['case_type']
	 */
	private Map searchMap;
	/**
	 * 精确查询
	 */
	private Map accurateSearchMap;
	/**
	 * 范围查询Map
	 */
	private Map rangeSearchMap;
	/**
	 * 不等集合
	 */
	private Map unEqualMap;
	

	public Map getUnEqualMap() {
		return unEqualMap;
	}

	public void setUnEqualMap(Map unEqualMap) {
		this.unEqualMap = unEqualMap;
	}

	public Map getRangeSearchMap() {
		return rangeSearchMap;
	}

	public void setRangeSearchMap(Map rangeSearchMap) {
		this.rangeSearchMap = rangeSearchMap;
	}

	public Map getOrderMap() {
		return orderMap;
	}

	public void setOrderMap(Map orderMap) {
		this.orderMap = orderMap;
	}
	
	public Map getSearchMap() {
		return searchMap;
	}

	public void setSearchMap(Map searchMap) {
		this.searchMap = searchMap;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Map getAccurateSearchMap() {
		return accurateSearchMap;
	}

	public void setAccurateSearchMap(Map accurateSearchMap) {
		this.accurateSearchMap = accurateSearchMap;
	}
	
	public Query(){}
	
	public Query(Map rangeSearchMap){
		this.rangeSearchMap = rangeSearchMap;
	}
}

你可能感兴趣的:(java,mybatis,ognl)