后厨 页面 按台桌查看 按商品查看 完成

This commit is contained in:
2025-11-26 18:27:06 +08:00
parent 6bfcbe6d73
commit a344469e61

View File

@@ -24,8 +24,7 @@ import java.util.List;
* @since 2025-03-07 15:25 * @since 2025-03-07 15:25
*/ */
@RestController @RestController
//@RequestMapping("/admin/kitchen") @RequestMapping("/admin/kitchen")
@RequestMapping("/notify/kitchen")
public class TableController { public class TableController {
@Resource @Resource
@@ -36,8 +35,8 @@ public class TableController {
* 按台桌查看 * 按台桌查看
*/ */
@GetMapping("getKitchenTable") @GetMapping("getKitchenTable")
// @SaAdminCheckPermission(value = "kitchen:table", name = "后厨-按台桌查看") @SaAdminCheckPermission(value = "kitchen:table", name = "后厨-按台桌查看")
public CzgResult<List<KitchenTableVO>> getKitchenTable(@RequestParam String tableName, @RequestParam Long areaId) { public CzgResult<List<KitchenTableVO>> getKitchenTable(@RequestParam(required = false) String tableName, @RequestParam(required = false) Long areaId) {
Long shopId = StpKit.USER.getShopId(); Long shopId = StpKit.USER.getShopId();
List<KitchenTableVO> kitchenTables = kitchenDetailMapper.getKitchenTable(shopId, tableName, areaId); List<KitchenTableVO> kitchenTables = kitchenDetailMapper.getKitchenTable(shopId, tableName, areaId);
return CzgResult.success(kitchenTables); return CzgResult.success(kitchenTables);
@@ -47,7 +46,7 @@ public class TableController {
* 按台桌查看 商品内容 * 按台桌查看 商品内容
*/ */
@GetMapping("getKitchenTableFoods") @GetMapping("getKitchenTableFoods")
// @SaAdminCheckPermission(value = "kitchen:tableFood", name = "后厨-按台桌查看商品内容") @SaAdminCheckPermission(value = "kitchen:tableFood", name = "后厨-按台桌查看商品内容")
public CzgResult<List<KitchenTableFoodVO>> getKitchenTableFoods(@RequestParam(required = false) Long orderId, public CzgResult<List<KitchenTableFoodVO>> getKitchenTableFoods(@RequestParam(required = false) Long orderId,
@RequestParam(required = false) String tableCode, @RequestParam(required = false) String tableCode,
@RequestParam(required = false) Long isNoTable) { @RequestParam(required = false) Long isNoTable) {
@@ -64,8 +63,8 @@ public class TableController {
* 按商品查看 * 按商品查看
*/ */
@GetMapping("getKitchenFood") @GetMapping("getKitchenFood")
// @SaAdminCheckPermission(value = "kitchen:table", name = "后厨-按台桌查看") @SaAdminCheckPermission(value = "kitchen:table", name = "后厨-按台桌查看")
public CzgResult<List<KitchenFoodVO>> getKitchenFood(@RequestParam String productName) { public CzgResult<List<KitchenFoodVO>> getKitchenFood(@RequestParam(required = false) String productName) {
Long shopId = StpKit.USER.getShopId(); Long shopId = StpKit.USER.getShopId();
List<KitchenFoodVO> kitchenFood = kitchenDetailMapper.getKitchenFood(shopId, productName); List<KitchenFoodVO> kitchenFood = kitchenDetailMapper.getKitchenFood(shopId, productName);
return CzgResult.success(kitchenFood); return CzgResult.success(kitchenFood);