<select id="getScrollPage" parameterMap="paramMap" resultType="com.nd.orm.ProductType"> select * from ProductType where 1=1 <if test="productType.name!=null and productType.name!=''"> and name like #{productType.name} </if> </select>
可是如果a没有setName,系统就报错: Cause: org.apache.ibatis.executor.ExecutorException: There was no TypeHandler found for parameter productType of statement ProductType.getScrollPage