//查询资产数据
@RequestMapping("select")
@ResponseBody
public Map<String, List<Object>> select(HttpServletResponse response) {
response.setHeader("Access-Control-Allow-Origin", "*");
//Map<String, List<Object>> map = new HashMap<String, List<Object>>();
Map map=new HashMap<String, Object>();
List list = bolgMapper.chaxun();
map.put("data", list);
return map;
}
public List<Map<String,Object>> chaxun();
<select id="chaxun" resultType="java.util.HashMap">
SELECT * FROM 判断条件
<select>