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
需求:查出给定id的记录: <select id="getEmpsByConditionForeach" resultType="com.test.beans.Employee"> SELECT * FROM tb1_emplyee WHERE id IN <foreach collection="list" item="item_id" separator="," open="
一.入参为List的写法: <select id="queryParamList" resultType="map" parameterType="java.util.List"> select id from static where id in <foreach collection="list" index="index" item="item" open=&qu
如果有一个查询参数有多个,用一个List集合传进去,这个mapper文件可以这么写 <select id="queryList04" resultType="map" parameterType="java.util.List"> select CEZJRC_TXLJ,CEZJRC_XM,CEZJRC_ZY,CEZJRC_ZC from NRJRENCAI where CEZJRC_BM in <foreach collecti
在使用mybatis时,写了一条sql语句,只有一个String类型的参数, 示例代码 <select id="getApplyNum" parameterType="java.lang.String" resultType="java.util.Map"> SELECT t.activity_id AS "activityId", COUNT(1) AS "count" FROM t_user