分类
This commit is contained in:
@@ -64,9 +64,9 @@ public class TableController {
|
||||
*/
|
||||
@GetMapping("getKitchenFood")
|
||||
// @SaAdminCheckPermission(value = "kitchen:table", name = "后厨-按台桌查看")
|
||||
public CzgResult<List<KitchenFoodVO>> getKitchenFood(@RequestParam(required = false) String productName) {
|
||||
public CzgResult<List<KitchenFoodVO>> getKitchenFood(@RequestParam(required = false) String productName, @RequestParam(required = false) Long categoryId) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
List<KitchenFoodVO> kitchenFood = kitchenDetailMapper.getKitchenFood(shopId, productName);
|
||||
List<KitchenFoodVO> kitchenFood = kitchenDetailMapper.getKitchenFood(shopId, productName, categoryId);
|
||||
return CzgResult.success(kitchenFood);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user