<select id="selectByNameVague" parameterType="string" resultMap="BreedFactoryMap"> SELECT <include refid="cols_all"/> FROM <include refid="tb"/> <where> <if test="_parameter!=null">AND name LIKE concat('%',#{_parameter},'%')</if> </where> </select>
mybatis里面的模糊查询
最新推荐文章于 2022-12-14 13:45:53 发布