苍穹外卖--导入用户端商品浏览功能代码

This commit is contained in:
2025-11-18 16:20:05 +08:00
parent ccf1aeb7af
commit 10ec822766
11 changed files with 234 additions and 2 deletions

View File

@@ -61,4 +61,19 @@
</set>
where id = #{id}
</update>
<select id="list" parameterType="Setmeal" resultType="Setmeal">
select * from setmeal
<where>
<if test="name != null">
and name like concat('%',#{name},'%')
</if>
<if test="categoryId != null">
and category_id = #{categoryId}
</if>
<if test="status != null">
and status = #{status}
</if>
</where>
</select>
</mapper>