批量删除菜品

This commit is contained in:
slhaf
2024-09-12 14:35:36 +08:00
parent b6c3de2165
commit 22e629b6e1
8 changed files with 186 additions and 6 deletions

View File

@@ -10,4 +10,22 @@
values (#{name}, #{categoryId}, #{price}, #{image}, #{description}, #{status}, #{createTime}, #{updateTime},
#{createUser}, #{updateUser})
</insert>
<select id="pageQuery" resultType="com.sky.vo.DishVO">
select dish.*, category.name as categoryName
from dish
left outer join category
on dish.category_id = category.id
<where>
<if test="name != null">
and dish.name like concat('%',#{name},'%')
</if>
<if test="categoryId != null">
and dish.category_id = #{categoryId}
</if>
<if test="status != null">
and dish.status = #{status}
</if>
</where>
order by dish.create_time desc
</select>
</mapper>