mybatis-bind 女爷i 2022-06-02 04:28 144阅读 0赞 ## mybatis-bind ## <select id="getEmpByConditionIf" parameterType="com.example.demo.entity.Employee" resultType="com.example.demo.entity.Employee"> <bind name="_param" value="'%'+last_name+'%'"/> SELECT * FROM tbl_employee WHERE last_name LIKE #{_param} </select >
还没有评论,来说两句吧...