|
|
|
@ -11,6 +11,8 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 菜品管理
|
|
|
|
|
* */
|
|
|
|
@ -37,4 +39,14 @@ public class DishController {
|
|
|
|
|
PageResult pageResult = dishService.pageQuery(dishPageQueryDTO);
|
|
|
|
|
return Result.success(pageResult);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//删除菜品,涉及dish、dish_flavor、setmeal_dish表
|
|
|
|
|
// 注解自动将字符串转为长整形集合
|
|
|
|
|
@DeleteMapping
|
|
|
|
|
@ApiOperation("批量删除")
|
|
|
|
|
public Result delete(@RequestParam List<Long> ids){
|
|
|
|
|
log.info("菜品批量删除{}",ids);
|
|
|
|
|
dishService.deleteBatch(ids);
|
|
|
|
|
return Result.success();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|