订单:

1、实现确认收货接口
This commit is contained in:
YunaiV 2023-08-13 20:27:19 +08:00
parent 503c996acd
commit 7dc398717a
2 changed files with 8 additions and 8 deletions

View File

@ -135,11 +135,11 @@ public class AppTradeOrderController {
return success(orderCount); return success(orderCount);
} }
@PutMapping("/take") @PutMapping("/receive")
@Operation(summary = "确认交易订单收货") @Operation(summary = "确认交易订单收货")
@Parameter(name = "id", description = "交易订单编号") @Parameter(name = "id", description = "交易订单编号")
public CommonResult<Boolean> takeOrder(@RequestParam("id") Long id) { public CommonResult<Boolean> receiveOrder(@RequestParam("id") Long id) {
// TODO @芋艿未实现mock tradeOrderService.receiveOrder(getLoginUserId(), id);
return success(true); return success(true);
} }

View File

@ -489,11 +489,6 @@ public class TradeOrderServiceImpl implements TradeOrderService {
// TODO 芋艿lili 发送商品被购买完成的数据 // TODO 芋艿lili 发送商品被购买完成的数据
} }
@Override
public TradeOrderDO getOrder(Long id) {
return tradeOrderMapper.selectById(id);
}
/** /**
* 校验交易订单满足可售货的条件 * 校验交易订单满足可售货的条件
* *
@ -516,6 +511,11 @@ public class TradeOrderServiceImpl implements TradeOrderService {
return order; return order;
} }
@Override
public TradeOrderDO getOrder(Long id) {
return tradeOrderMapper.selectById(id);
}
@Override @Override
public TradeOrderDO getOrder(Long userId, Long id) { public TradeOrderDO getOrder(Long userId, Long id) {
TradeOrderDO order = tradeOrderMapper.selectById(id); TradeOrderDO order = tradeOrderMapper.selectById(id);