💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
>dao层 ``` List<Product> search(@Param(value = "content") String content);//搜索 ``` >mapper.xml ``` /* 使用concat进行联接 对价格和名称字段进行匹配 */ <select id="search" parameterType="java.lang.String" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from product <where> product_name LIKE CONCAT('%',#{content},'%') OR initial_price LIKE CONCAT('%',#{content},'%') </where> </select> ```