mybatis 别名查询,map传参

dao层interface

package com.bigdata.project.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import com.bigdata.project.model.po.SearchResult;

public interface AiStatisticsMapper {
	
	List countaAccessStatistis(@Param("statistics") Map map);
}

dao层xml




    
     
     
  
  
  

xml 映射返回别名实体类

/**
 *@description 统计查询返回封装类
 *@author DXH
 *@date 2018年7月20日16:46:47 
 */
public class SearchResult implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String dateFmt;
	private String countId;
	
	public String getDateFmt() {
		return dateFmt;
	}
	public void setDateFmt(String dateFmt) {
		this.dateFmt = dateFmt;
	}
	public String getCountId() {
		return countId;
	}
	public void setCountId(String countId) {
		this.countId = countId;
	}
	
}

 

你可能感兴趣的:(mybatis)