mybatis的xml文件中的CDATA的使用 <!--查询列表--> <select id="queryListPage" parameterType="java.util.Map" resultType="java.util.Map"> select * from user where 1=1 <if test="startDate != null and startDate != ''"&g…
mapper.xml文件中传入list参数,使用foreach循环遍历值,但是在遍历的过程中出错了,具体代码如下所示 mapper.xml <select id="selectByCondition2" resultType="java.util.Map"> select id,name from [dbo].[TB_LandInfectantData] where 1=1 and LandMonitoringUid in ( <foreach i…
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'source' in 'class java.lang.String' at org.mybatis.spring.MyBatisExceptionTranslator.translateExce…
<select id=selectByNameLike" parameterType="string" resultMap="BaseResultMap"> SELECT * FROM a LEFT JOIN b ON a.bid = b.id WHERE a.NAME LIKE concat ("%", #{name},"%") <select>…