|
|
@ -14,6 +14,7 @@ using System.Net.Http; |
|
|
|
using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Yitter.IdGenerator; |
|
|
|
using static BBWY.Server.Model.Enums; |
|
|
|
|
|
|
|
namespace BBWY.Server.Business |
|
|
|
{ |
|
|
@ -548,7 +549,8 @@ namespace BBWY.Server.Business |
|
|
|
*/ |
|
|
|
var loggerName = $"批量采购-{request.ShopName}"; |
|
|
|
nLogManager.GetLogger(loggerName).Info(JsonConvert.SerializeObject(request)); |
|
|
|
|
|
|
|
if (request.IntoStoreType == null) |
|
|
|
request.IntoStoreType = Enums.IntoStoreType.发回齐越; |
|
|
|
if (request.CargoParamGroupList == null || request.CargoParamGroupList.Count() == 0 || |
|
|
|
request.CargoParamGroupList.Any(g => g.CargoParamList == null || g.CargoParamList.Count() == 0 || string.IsNullOrEmpty(g.PurchaserId))) |
|
|
|
throw new BusinessException("缺少商品参数"); |
|
|
@ -641,6 +643,7 @@ namespace BBWY.Server.Business |
|
|
|
TradeMode = tradeMode, |
|
|
|
Extensions = cardId, |
|
|
|
AutoPay = request.AutoPay, |
|
|
|
IntoStoreType = request.IntoStoreType |
|
|
|
}); |
|
|
|
|
|
|
|
var purchaseOrderSimpleInfo = platformSDKBusinessList.FirstOrDefault(p => p.Platform == purchaseGroup.PurchasePlatform).GetOrderSimpleInfo(new GetOrderInfoRequest() |
|
|
|