拼多多订单获取
This commit is contained in:
1 parent
627dce3e5b
commit
87c1b8fc79
14 files changed
+679
-101
No files matched your search
@@ -1,4 +1,6 @@
|
||||
using NaiBa.Util.Extension;
|
||||
using AllBase.Model.MvvmBaseClasses;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -7,11 +9,211 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace AllBase.Model.Result
|
||||
{
|
||||
public class PddBuyerAfterSaleLiteInfo
|
||||
public class PddBuyerAfterSaleLiteInfo : PropertyNotifyObject
|
||||
{
|
||||
public string ShopOrderIdStr
|
||||
{
|
||||
get { return this.GetValue(x => x.ShopOrderIdStr); }
|
||||
set { this.SetValue(x => x.ShopOrderIdStr, value); }
|
||||
}
|
||||
public string ShopOrderSkuIdStr
|
||||
{
|
||||
get { return this.GetValue(x => x.ShopOrderSkuIdStr); }
|
||||
set { this.SetValue(x => x.ShopOrderSkuIdStr, value); }
|
||||
}
|
||||
public string ShopOrderSkuNameStr
|
||||
{
|
||||
get { return this.GetValue(x => x.ShopOrderSkuNameStr); }
|
||||
set { this.SetValue(x => x.ShopOrderSkuNameStr, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 店铺售后订单状态 无售后或售后关闭为空 否则为店铺售后
|
||||
/// </summary>
|
||||
public string ShopOrderRefundStr
|
||||
{
|
||||
get { return this.GetValue(x => x.ShopOrderRefundStr); }
|
||||
set { this.SetValue(x => x.ShopOrderRefundStr, value); }
|
||||
}
|
||||
public string TransitBuyerOrderRefundStatus
|
||||
{
|
||||
get { return this.GetValue(x => x.TransitBuyerOrderRefundStatus); }
|
||||
set { this.SetValue(x => x.TransitBuyerOrderRefundStatus, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 中转仓仓库编号
|
||||
/// </summary>
|
||||
public string TransitWarehouseIdStr
|
||||
{
|
||||
get { return this.GetValue(x => x.TransitWarehouseIdStr); }
|
||||
set { this.SetValue(x => x.TransitWarehouseIdStr, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 拍单物流公司编码
|
||||
/// </summary>
|
||||
public string Express1CompanyStr
|
||||
{
|
||||
get { return this.GetValue(x => x.Express1CompanyStr); }
|
||||
set { this.SetValue(x => x.Express1CompanyStr, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 拍单物流
|
||||
/// </summary>
|
||||
public string Express1WaybillStr
|
||||
{
|
||||
get { return this.GetValue(x => x.Express1WaybillStr); }
|
||||
set { this.SetValue(x => x.Express1WaybillStr, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 中转仓物流公司编码(提前取号)
|
||||
/// </summary>
|
||||
public string Express2CompanyStr
|
||||
{
|
||||
get { return this.GetValue(x => x.Express2CompanyStr); }
|
||||
set { this.SetValue(x => x.Express2CompanyStr, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 中转仓物流编码(提前取号)
|
||||
/// </summary>
|
||||
public string Express2WaybillStr
|
||||
{
|
||||
get { return this.GetValue(x => x.Express2WaybillStr); }
|
||||
set { this.SetValue(x => x.Express2WaybillStr, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 中转仓状态:"0" 未使用,"1" 已创建,"2" 创建失败,"3" 处理中(业务方根据此字段处理中转流程)
|
||||
/// 使用此字段判断中转仓库是否已取号
|
||||
/// </summary>
|
||||
public string TransferWareHouseStatus
|
||||
{
|
||||
get { return this.GetValue(x => x.TransferWareHouseStatus); }
|
||||
set { this.SetValue(x => x.TransferWareHouseStatus, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 微信订单作废状态 0 未作废 1已作废 2作废失败
|
||||
/// </summary>
|
||||
public string WxOrderVoidStatus
|
||||
{
|
||||
get { return this.GetValue(x => x.WxOrderVoidStatus); }
|
||||
set { this.SetValue(x => x.WxOrderVoidStatus, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 1 正常取号 2 提前取号 3 已更正
|
||||
/// </summary>
|
||||
public string PreAllocatedOrderNoStr
|
||||
{
|
||||
get { return this.GetValue(x => x.PreAllocatedOrderNoStr); }
|
||||
set { this.SetValue(x => x.PreAllocatedOrderNoStr, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 处理中, "已取号(更正)", 已取号, 提前取号, 取号失败
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string TransitOrderStatus
|
||||
{
|
||||
get
|
||||
{
|
||||
string wareHouseStatusStr = TransferWareHouseStatus == "3" ? " 仓库处理中" : "";
|
||||
//if (TransferWareHouseStatus == "3")
|
||||
//{
|
||||
// return "处理中";
|
||||
//}
|
||||
// 不考虑仓库取号失败情况,只要取号状态不是3或者1,且有仓库订单记录,就处理取号
|
||||
//if (TransferWareHouseStatus == "2")
|
||||
//{
|
||||
// return "取号失败";
|
||||
//}
|
||||
if (PreAllocatedOrderNoStr == "3")
|
||||
{
|
||||
return "已取号(更正)";
|
||||
}
|
||||
if (PreAllocatedOrderNoStr == "1")
|
||||
{
|
||||
//if (OrderTime >= new DateTime(2026, 6, 29))
|
||||
if (orderDate >= 260629)
|
||||
return "已取号";
|
||||
else
|
||||
return "提前取号" + wareHouseStatusStr;
|
||||
}
|
||||
if (PreAllocatedOrderNoStr == "2")
|
||||
{
|
||||
return "提前取号" + wareHouseStatusStr;
|
||||
}
|
||||
|
||||
//if (!TransitWarehouseIdStr.IsNullOrEmpty() && OrderTime < new DateTime(2026, 6, 29))
|
||||
if (!TransitWarehouseIdStr.IsNullOrEmpty() && orderDate < 260629)
|
||||
{
|
||||
return "提前取号(旧订单)" + wareHouseStatusStr;
|
||||
}
|
||||
if (TransitWarehouseIdStr.IsNullOrEmpty())
|
||||
{
|
||||
return "非中转仓订单";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
set { }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 微信小店订单创建时间
|
||||
/// </summary>
|
||||
public DateTime WxOrderCreateTime
|
||||
{
|
||||
get { return this.GetValue(x => x.WxOrderCreateTime); }
|
||||
set { this.SetValue(x => x.WxOrderCreateTime, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 中转单创建时间
|
||||
/// </summary>
|
||||
public DateTime TransitCreateTime
|
||||
{
|
||||
get { return this.GetValue(x => x.TransitCreateTime); }
|
||||
set { this.SetValue(x => x.TransitCreateTime, value); }
|
||||
}
|
||||
|
||||
|
||||
public string ProdInfoStr
|
||||
{
|
||||
get
|
||||
{
|
||||
var info = listItemGoodsVO == null ? "" : listItemGoodsVO.goodsName + " " + listItemGoodsVO.spec + " x" + listItemGoodsVO.goodsNumber; // 商品信息
|
||||
return info;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public decimal? OrderAmountValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return listItemAmountVO.orderAmount * 0.01m;
|
||||
}
|
||||
set { }
|
||||
}
|
||||
public decimal? RefundAmountValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return listItemAmountVO.refundAmount * 0.01m;
|
||||
}
|
||||
set { }
|
||||
}
|
||||
public string AfterSaleStatusStr
|
||||
{
|
||||
get
|
||||
{
|
||||
return listItemStatusVO.statusText;
|
||||
}
|
||||
set { }
|
||||
}
|
||||
|
||||
public string sendStatus { get; set; } = "";
|
||||
public string afterSaleSendStatus { get; set; } = "";
|
||||
|
||||
public string buyerId { get; set; } // 买手Id
|
||||
public string buyerName { get; set; } // 买手名称
|
||||
public string sendStatus { get; set; } = "";
|
||||
public string orderSn
|
||||
{
|
||||
get
|
||||
@@ -19,11 +221,13 @@ namespace AllBase.Model.Result
|
||||
var detailPage = listItemExtraVO.navToDetailPageUrl;
|
||||
return BaseRegex.GetStringQuery(ref detailPage, "order_sn");
|
||||
}
|
||||
set { }
|
||||
}
|
||||
public int? orderDate { get { return orderSn.Split('-').FirstOrDefault().ParseToInt(); } }
|
||||
public int? orderDate { get { return orderSn.Split('-').FirstOrDefault().ParseToInt(); } set { } }
|
||||
|
||||
|
||||
public long? afterSalesId { get; set; } // 20129688312436,
|
||||
|
||||
public ListItemExtraVO listItemExtraVO { get; set; }
|
||||
public ListItemMallVO listItemMallVO { get; set; }
|
||||
public ListItemStatusVO listItemStatusVO { get; set; }
|
||||
|
||||
@@ -111,11 +111,19 @@ namespace AllBase.Model.Result
|
||||
get { return this.GetValue(x => x.ShopOrderSkuNameStr); }
|
||||
set { this.SetValue(x => x.ShopOrderSkuNameStr, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 店铺售后订单状态 无售后或售后关闭为空 否则为"店铺售后"
|
||||
/// </summary>
|
||||
public string ShopOrderRefundStr
|
||||
{
|
||||
get { return this.GetValue(x => x.ShopOrderRefundStr); }
|
||||
set { this.SetValue(x => x.ShopOrderRefundStr, value); }
|
||||
}
|
||||
public string TransitBuyerOrderRefundStatus
|
||||
{
|
||||
get { return this.GetValue(x => x.TransitBuyerOrderRefundStatus); }
|
||||
set { this.SetValue(x => x.TransitBuyerOrderRefundStatus, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 中转仓仓库编号
|
||||
/// </summary>
|
||||
@@ -166,6 +174,14 @@ namespace AllBase.Model.Result
|
||||
set { this.SetValue(x => x.TransferWareHouseStatus, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 店铺订单作废状态 0 未作废 1已作废 2作废失败
|
||||
/// </summary>
|
||||
public string WxOrderVoidStatus
|
||||
{
|
||||
get { return this.GetValue(x => x.WxOrderVoidStatus); }
|
||||
set { this.SetValue(x => x.WxOrderVoidStatus, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 1 正常取号 2 提前取号 3 已更正
|
||||
/// </summary>
|
||||
public string PreAllocatedOrderNoStr
|
||||
|
||||
Reference in new issue
Block a user