37 lines
1.4 KiB
C#
37 lines
1.4 KiB
C#
using AllBase;
|
|
using AllBase.Model;
|
|
using AllBase.Model.DBModel;
|
|
using CefSharp.DevTools.LayerTree;
|
|
using NaiBa.Util.Extension;
|
|
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Work._29Tools.BLL
|
|
{
|
|
public class SendBuyerOrder
|
|
{
|
|
public static string SendBuyerOrderToTransitWarehouse(oms_wei_order_item_info order_item, TransitWarehouseParam warehouseParam,
|
|
string outOrderNo, int outAmount, string buyerNick, string userNickName)
|
|
{
|
|
JObject body = new JObject();
|
|
body["orderNo"] = order_item.order_id;
|
|
body["outOrderNo"] = outOrderNo;
|
|
body["outAmount"] = outAmount.ParseToString();
|
|
body["buyerAccount"] = buyerNick;
|
|
body["purchaserNote"] = userNickName;
|
|
body["express1Company"] = ""; // 物流公司编号
|
|
body["express1Waybill"] = ""; // 物流编号
|
|
body["platform"] = warehouseParam.TransId; // 中转仓ID
|
|
body["orderPlatformCode"] = "WEISHOP";
|
|
var url = "https://po.e57.cn/prod-api/api/oms-api/externalProcurement/saveOrUpdate";
|
|
var dataStr = JsonHelper.SerializeObject(body);
|
|
var exportRst = HttpResponseWXBLL.e57PostResponse(url, dataStr, "");
|
|
return exportRst;
|
|
}
|
|
}
|
|
}
|