I'm trying to get return value from DB but it return []
instead of data
JAVA Restful
@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;
}
Mybatis
<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>
in Oracle DB SQL select is working fine without a single problem.
but it keep return this []
anyone know the problem??