我试图从数据库获取返回值,但它返回[]而不是数据
JAVA 宁静
@RequestMapping("/regLocal")
public List<Map<String, Object>> regist_local(@RequestBody Map<String, Object> params){
Map<String, String> map = new HashMap<String, String>();
String location = (String) params.get("location_name"); // 'country'
String code = (String) params.get("location_code"); // '1'
map.put("location", location);
map.put("code", code);
List<Map<String, Object>> lists = se.selectList(ns+".regLocal", map); // it return []
return lists;
}
我的鞋
<select id="regLocal" resultType="map">
select hll.hll_code hll_code, hll.hll_name hll_name
from hl_local hll, h_location hl
where hll.hl_location = #{code} and hl.hl_name = #{location}
</select>
在 Oracle DB SQL select 中工作正常,没有任何问题。但它一直返回这个[]
有人知道问题吗?
子衿沉夜
相关分类