|
@ -727,6 +727,7 @@ namespace BBWY.Server.Business |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
#region 查询数据库采购单
|
|
|
#region 查询数据库采购单
|
|
|
|
|
|
currentProgress = "查询数据库采购单"; |
|
|
var purchaseOrder = fsql.Select<PurchaseOrderV2>(purchaseOrderId).ToOne(); |
|
|
var purchaseOrder = fsql.Select<PurchaseOrderV2>(purchaseOrderId).ToOne(); |
|
|
if (purchaseOrder == null) |
|
|
if (purchaseOrder == null) |
|
|
throw new Exception($"未查询到采购单"); |
|
|
throw new Exception($"未查询到采购单"); |
|
@ -740,6 +741,7 @@ namespace BBWY.Server.Business |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
#region 查询接口采购单
|
|
|
#region 查询接口采购单
|
|
|
|
|
|
currentProgress = "查询接口采购单"; |
|
|
var purchaseOrderSimpleInfo = platformSDKBusinessList.FirstOrDefault(p => p.Platform == callbackPlatform).GetOrderSimpleInfo(new GetOrderInfoRequest() |
|
|
var purchaseOrderSimpleInfo = platformSDKBusinessList.FirstOrDefault(p => p.Platform == callbackPlatform).GetOrderSimpleInfo(new GetOrderInfoRequest() |
|
|
{ |
|
|
{ |
|
|
AppKey = purchaseAccount.AppKey, |
|
|
AppKey = purchaseAccount.AppKey, |
|
@ -750,6 +752,7 @@ namespace BBWY.Server.Business |
|
|
}); |
|
|
}); |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
currentProgress = "更新数据库"; |
|
|
fsql.Transaction(() => |
|
|
fsql.Transaction(() => |
|
|
{ |
|
|
{ |
|
|
fsql.Update<PurchaseOrderV2>(purchaseOrderId).Set(po => po.ProductAmount, purchaseOrderSimpleInfo.ProductAmount) |
|
|
fsql.Update<PurchaseOrderV2>(purchaseOrderId).Set(po => po.ProductAmount, purchaseOrderSimpleInfo.ProductAmount) |
|
|