修改菜品

This commit is contained in:
slhaf
2024-09-12 18:23:55 +08:00
parent 22e629b6e1
commit 5419e321c8
7 changed files with 143 additions and 4 deletions

View File

@@ -11,6 +11,8 @@ import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@Mapper
public interface DishMapper {
@@ -50,4 +52,13 @@ public interface DishMapper {
*/
@Delete("delete from dish where id = #{id}")
void deleteById(Long id);
/**
* 根据菜品ids集合批量删除菜品
* @param ids
*/
void deleteByIds(List<Long> ids);
@AutoFill(OperationType.UPDATE)
void update(Dish dish);
}