Mybatis配置文件中Select元素标签输入参数有几种输入法?如需更多信息,请点击下图?(扫码加好友→备注66,没有备注拒绝添加)选择元素标签输入法基本数据类型String类型Map类型Javabean类型Case实操输入参数分类基本类型,String,javabean,map,array(删除时体现),List(添加时体现)等,每个case定义了以下基本数据类型StatementDefinition选择id,user_name'userName',user_balance'userBalance'FROMyg_customerWHEREid=#{id}CustomerDao方法定义CustomerqueryCustomerById(intid);String类型语句定义SELECTid,user_name'userName',user_balance'userBalance'FROMyg_customerWHEREuser_name=#{userName}道方法定义CustomerqueryCustomerById(intid);地图类型语句定义selectid="queryCustomerByName"parameterType="map"resultType="com.xxx.pojo.Customer">SELECTid,user_name'用户名',我们er_balance'userBalance'FROMyg_customerWHEREuser_name=#{userName}道方法定义CustomerqueryCustomerByName(MapuserName);Javabean类型语句定义SELECTid,user_name'userName',user_balance'userBalance'FROMyg_customerWHEREuser_name=#{userName}Dao方法定义CustomerqueryCustomerByParams(Customercustomer);扩展结果类型分类基本数据类型,如string、JavaBean、Map、List等基本数据类型语句定义selectcount(1)fromyg_customer道方法定义及对应实现intqueryCustomerAccount();字符串类型语句定义selectuser_namefromyg_customerWHEREid=#{id}Dao方法定义StringqueryCustomerNameById(intid);JavaBeanStatement定义selectid,user_nameasuserName,user_pwdasuserPwdfromuserwhereid=#{id}ListStatement定义id,user_name,user_pwd从用户中选择whereuser_namelikeconcat("%",#{userName},"%")Map类型数据语句定义selectid,user_nameasuserName,user_pwdasuserPwdfromuserwhereid=#{id}->selectid,user_nameasuserName,user_pwdasuserPwdfromuserwhereid=#{id}###