|
|
@ -706,6 +706,8 @@ namespace BBWYB.Server.Business |
|
|
|
throw new BusinessException("无效订单号"); |
|
|
|
if (dbOrder.OrderState == Enums.OrderState.已取消) |
|
|
|
throw new BusinessException("订单已取消"); |
|
|
|
if (dbOrder.OrderState == Enums.OrderState.已完成) |
|
|
|
throw new BusinessException("订单已完成无需签收"); |
|
|
|
|
|
|
|
var dbOrderPurchaseInfo = fsql.Select<OrderPurchaseInfo>().Where(opi => opi.PurchaseOrderId == request.PurchaseOrderId && opi.IsEnabled == true).ToOne(); |
|
|
|
if (dbOrderPurchaseInfo == null) |
|
|
@ -717,7 +719,8 @@ namespace BBWYB.Server.Business |
|
|
|
|
|
|
|
fsql.Transaction(() => |
|
|
|
{ |
|
|
|
|
|
|
|
fsql.Update<OrderPurchaseInfo>(dbOrderPurchaseInfo.Id).Set(opi => opi.IsSign, true).ExecuteAffrows(); |
|
|
|
fsql.Update<Order>(dbOrder.Id).Set(o => o.IsWaitPack, true).ExecuteAffrows(); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|