mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-23 23:45:08 +08:00
code review:营销活动+订单
This commit is contained in:
@ -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);
|
||||
|
||||
}
|
||||
|
@ -36,5 +36,4 @@ public class PayOrderApiImpl implements PayOrderApi {
|
||||
payOrderService.updatePayOrderPriceById(payOrderId, payPrice);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user