|
@@ -473,12 +473,14 @@ public class UserTicketOrderServiceImpl extends
|
|
|
LogUtil.info(logger, "渠道结佣时,订单对应的渠道不存在,无需结佣。orderId:{0}",
|
|
|
channelCommParam.getOrderId());
|
|
|
}
|
|
|
- boolean rst = update(
|
|
|
- new LambdaUpdateWrapper<UserTicketOrder>().set(UserTicketOrder::getCommStatus,
|
|
|
- CommStatusEnum.YES)
|
|
|
- .eq(UserTicketOrder::getOrderId, orderId)
|
|
|
- .eq(UserTicketOrder::getCommStatus, CommStatusEnum.DOING));
|
|
|
- Assert.isTrue(rst, "渠道结佣完成,更新订单状态失败。orderId:" + orderId);
|
|
|
+ if (ChannelCommissionResourceEnum.USER.getValue().equals(resource)) {
|
|
|
+ boolean rst = update(
|
|
|
+ new LambdaUpdateWrapper<UserTicketOrder>().set(UserTicketOrder::getCommStatus,
|
|
|
+ CommStatusEnum.YES)
|
|
|
+ .eq(UserTicketOrder::getOrderId, orderId)
|
|
|
+ .eq(UserTicketOrder::getCommStatus, CommStatusEnum.DOING));
|
|
|
+ Assert.isTrue(rst, "渠道结佣完成,更新订单状态失败。orderId:" + orderId);
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|