fix: 抓单返回类型修改

This commit is contained in:
张松
2024-12-12 14:56:50 +08:00
parent c17da7d4b3
commit 331e1ddc00

View File

@@ -147,8 +147,8 @@ public class OrderController {
* 转台并台
*/
@PutMapping("/switch")
public ResponseEntity<?> switchTable(@Validated @RequestBody SwitchTableDTO switchTableDTO, @RequestHeader("token") String token) {
return ResponseEntity.ok(orderService.switchTable(switchTableDTO, token));
public Result switchTable(@Validated @RequestBody SwitchTableDTO switchTableDTO, @RequestHeader("token") String token) {
return Result.success(CodeEnum.SUCCESS, orderService.switchTable(switchTableDTO, token));
}
@PostMapping("/createBackOrder")