Browse Source

默认收货地址

AddValidOverTime
shanji 2 years ago
parent
commit
22f5524bc6
  1. 16
      BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs

16
BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs

@ -559,7 +559,19 @@ namespace BBWY.Server.Business
string.IsNullOrEmpty(request.Consignee.Address) ||
string.IsNullOrEmpty(request.Consignee.Mobile) ||
string.IsNullOrEmpty(request.Consignee.ContactName))
throw new BusinessException("缺少收货人信息");
{
request.Consignee = new ConsigneeRequest()
{
ContactName = "默认收货人",
Address = "齐越众创投资有限公司",
Province = "福建省",
City = "泉州市",
County = "鲤城区",
Town = "鲤城区",
Mobile = "15000000000",
TelePhone = "15000000000"
};
}
if (request.PurchaseAccountList == null || request.PurchaseAccountList.Count() == 0)
throw new BusinessException("缺少采购账号");
if (request.IntoStoreType == Enums.IntoStoreType.)
@ -680,7 +692,7 @@ namespace BBWY.Server.Business
var currentOrderSkuFreightAmount = purchaseOrderSimpleInfo.FreightAmount / belongSkuGroups.Count(); //采购运费(按sku数均分)
var belongSkuBasicInfo = belongSkuBasicInfoList.FirstOrDefault(x => x.Id == belongSkuGroup.Key);
var purchaseOrderSku = new PurchaseOrderSku()
{
Id = idGenerator.NewLong(),

Loading…
Cancel
Save