code review:营销活动+订单

This commit is contained in:
YunaiV
2023-09-09 01:27:55 +08:00
parent 5235aff8ad
commit 87c55784c4
18 changed files with 96 additions and 67 deletions

View File

@ -36,5 +36,4 @@ public class PayOrderApiImpl implements PayOrderApi {
payOrderService.updatePayOrderPriceById(payOrderId, payPrice);
}
}

View File

@ -413,6 +413,7 @@ public class PayOrderServiceImpl implements PayOrderService {
@Override
public void updatePayOrderPriceById(Long payOrderId, Integer payPrice) {
// TODO @puhui999不能直接这样修改哈应该只有未支付状态的订单才可以改另外如果价格如果没变可以直接 return 哈;
PayOrderDO order = orderMapper.selectById(payOrderId);
if (order == null) {
throw exception(ORDER_NOT_FOUND);