批量删除菜品
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user