Time:09-18
CodePudding user response:
directly define an entity class receives the parameters under the line ah do not want to create the object using the map as a return value type line also ah
Quote: refer to 1st floor qq_35261789 response: Directly define an entity class receives the parameters under the line ah do not want to create the object using the map as a return value type line also ah I am too entity class trouble, see this can not be done by change the return value, If use the map back to me how to write the resultMap here?
Directly define an entity class receives the parameters under the line ah do not want to create the object using the map as a return value type line also ah
Quote: refer to the second floor qq_38619862 response: Quote: refer to 1st floor qq_35261789 response: Directly define an entity class receives the parameters under the line ah do not want to create the object using the map as a return value type line also ah I am too entity class trouble, see this can not be done by change the return value, If use the map back to me how to write the resultMap here? this return should be a List
& lt; Select id="all" resultType="map" & gt; Select * from the user where flag=1 & lt;/select>//query all flag=1 data, return type for the map List All (@ Param (" flag ") Integer flag);//using parameters, do not use the bean, list Accept return data
return type List Map> ResultType="Java. Util. Map"
Page link:https//www.codepudding.com/Backend/9976.html