Error message:
Org.mybatis.spring.MyBatisSystemException:nested exception isOrg.apache.ibatis.reflection.ReflectionException:There isNo Getter forProperty named'Investtime' inch 'class Java.lang.String'At org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible ( Mybatisexceptiontranslator.java: the) at Org.mybatis.spring.sqlsessiontemplate$sqlsessioninterceptor.invoke (Sqlsessiontemplate.java:399) at Com.sun.proxy. $Proxy 30.selectOne (Unknown Source) at Org.mybatis.spring.SqlSessionTemplate.selectOne (sqlses Siontemplate.java:165) at Org.apache.ibatis.binding.MapperMethod.execute (Mappermethod.java: the) at Org.apache.ibatis.binding.MapperProxy.invoke (Mapperproxy.java: -) at Com.sun.proxy. $Proxy 36.mokuUserTotalAmount (Unknown Source)
Error wording:
<if test="investdate!=null and investdate!=" > and Invest.addtime like CONCAT ('%', #{investdate},'%' )</if>
Correct wording:
<if test="_parameter!=null and _parameter!=" > and Invest.addtime like CONCAT ('%', #{_parameter},'%' )</if>
Summarize:
If you do not use if test to judge, no matter what kind of writing will not error! Suggestions are written in _parameter, multi-parameter with map or encapsulation of a bean to do parameters
There is no getter for property named ' xxx ' in ' class java.lang.String