mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-19 11:40:05 +08:00
订单:
1、实现确认收货接口
This commit is contained in:
parent
503c996acd
commit
7dc398717a
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user