退菜接口,sku mapper结构修改
This commit is contained in:
@@ -5,6 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.entity.OrderVo;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseCountDTO;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ReturnCartDTO;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.UpdateVipDTO;
|
||||
import com.chaozhanggui.system.cashierservice.entity.vo.CartVo;
|
||||
import com.chaozhanggui.system.cashierservice.service.OrderService;
|
||||
@@ -202,14 +203,26 @@ public class OrderController {
|
||||
return orderService.getOutNumber(shopId, page, pageSize);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("getOrderById")
|
||||
public Result getOrderById(@RequestParam("orderId") Integer orderId) {
|
||||
return orderService.getOrder(orderId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 就餐人数选择
|
||||
*/
|
||||
@PutMapping("/choseCount")
|
||||
public Result choseCount(@Validated @RequestBody ChoseCountDTO choseCountDTO) {
|
||||
return Result.success(CodeEnum.SUCCESS, orderService.choseCount(choseCountDTO));
|
||||
}
|
||||
|
||||
/**
|
||||
* 退菜
|
||||
* @param returnCartDTO 退菜信息
|
||||
* @return 是否成功
|
||||
*/
|
||||
@PostMapping("/returnCart")
|
||||
public Result returnCart(@Validated @RequestBody ReturnCartDTO returnCartDTO) {
|
||||
return Result.success(CodeEnum.SUCCESS, orderService.returnCart(returnCartDTO));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user