This commit is contained in:
parent
b5caf5fb15
commit
81bc8da7b9
|
@ -111,7 +111,7 @@ public class ReservationRefundServiceImpl implements IReservationRefundService {
|
|||
@Override
|
||||
public Boolean updateByBo(ReservationRefundBo bo) {
|
||||
ReservationRefund update = MapstructUtils.convert(bo, ReservationRefund.class);
|
||||
validEntityBeforeSave(update);
|
||||
//validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
|
@ -133,6 +133,11 @@ public class ReservationRefundServiceImpl implements IReservationRefundService {
|
|||
if (orderStatus != 1) {
|
||||
throw new ServiceException("订单数据异常,请确认后重试");
|
||||
}
|
||||
boolean exists = baseMapper.exists(new LambdaQueryWrapper<ReservationRefund>()
|
||||
.eq(ReservationRefund::getOrderId, orderId));
|
||||
if (exists) {
|
||||
throw new ServiceException("此订单已提交退款申请,请勿重复提交");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue