If you return to List,resulttype= "String", if you need to return to the list
<select id= "Selectallinneruser" resulttype= "String" >
select account_name from
user_account
where Is_deleted=0 and User_type=0
</select>
2.
<resultmap id= "Stringsresult" type= "java.lang.String" > <result column= "account_name"
AccountName "jdbctype=" VARCHAR "/>
</resultMap> <select id=" Selectallinneruser "resultmap="
Stringsresult ">
select account_name from
user_account
where is_deleted=0 and user_type=0
</ Select>
To return to the map, you can know key and value in the following way
<resultmap type= "HashMap" id= "TestMap" >
<result column= "Ua_info" property= "key"/>
< Association property= "Value" resultmap= "Com.xxx.xxx.BaseResultMap" ></association>
</resultmap >
<select id= "Getuamapbytimestamp" parametertype= "Map" resultmap= "TestMap" >
The following has not yet been tried.
or list
<select id= "Getmycredit" parameterclass= "Java.util.Map" resultclass= "Java.util.HashMap" >
</ Select>
This sets the return type to resultclass= "Java.util.HashMap" and executes the query when queryForList
List