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

@ -29,6 +29,7 @@ public interface PayOrderApi {
*/
PayOrderRespDTO getOrder(Long id);
// TODO @puhui999可以去掉 byId然后 payOrderId 参数改成 id
/**
* 更新支付订单价格
*
@ -36,4 +37,5 @@ public interface PayOrderApi {
* @param payPrice 支付单价格
*/
void updatePayOrderPriceById(Long payOrderId, Integer payPrice);
}

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);