在线寄件尝试 订单过滤功能 订单采购路径功能

This commit is contained in:
wule committed 2026-05-21 22:13:47 +08:00
1 parent ef35522b6a
commit e5910fc100
25 files changed
+5233 -316

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Data
{
public class WXBuyUrlNotesInfo
{
public int id { get; set; }
public string spu_code { get; set; }
public string user_name { get; set; }
public string buy_url_notes { get; set; }
public DateTime add_time { get; set; }
public DateTime mdy_time { get; set; }
}
}
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Data
{
public class WXOrderDecryptAddressInfo
{
public int id { get; set; }
public string shop_id { get; set; }
public string order_id { get; set; }
public string order_address { get; set; }
public DateTime add_time { get; set; }
public DateTime mdy_time { get; set; }
}
}
@@ -0,0 +1,117 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Param.WXParam
{
public class WaybillHelper
{
//中国移动‌:134、135、136、137、138、139、147、150、151、152、157、158、159、172、178、182、183、184、187、188、195、197、198。
//中国联通‌:130、131、132、145、155、156、166、175、176、185、186、196。其中‌145号段‌主要用于上网卡。
//中国电信‌:133、149、153、173、177、180、181、189、190、191、193、199。
//中国广电‌:192。作为第四大运营商,其号段于2022年开始放号。
public static List<int> MobileHead { get; set; } = new List<int>()
{
134, 135, 136, 137, 138, 139, 147, 150, 151, 152, 157, 158, 159, 172, 178, 182, 183, 184, 187, 188, 195, 197, 198,
130, 131, 132, 155, 156, 166, 175, 176, 185, 186, 196,
133, 149, 153, 173, 177, 180, 181, 189, 190, 191, 193, 199,
};
public static List<string> LastName { get; set; } = new List<string>()
{
"赵", "钱", "孙", "李", "周", "吴", "郑", "王", "冯", "陈", "沈", "杨", "朱", "许", "何", "张",
};
}
// 预在线寄件读取快递信息
public class WXPreCreateOrderWaybillOnlineParam
{
public List<string> deliveryIds { get; set; } = new List<string>()
{
"JTSD", "YUNDA", "YTO", "ZTO", "JD", "SF", "DBKD", "STO", "CNSD",
};
public WXPreCreateOrderWaybillOnlineReqParam req { get; set; } = new WXPreCreateOrderWaybillOnlineReqParam();
}
// 选中快递寄件信息后申请在线寄件
public class WXCreateOrderWaybillOnlineParam
{
public int? payMethod { get; set; } = 2; // 2,
public List<WaybillOnlineRequestContentParam> requestContent { get; set; } = new List<WaybillOnlineRequestContentParam>();
}
public class WaybillOnlineRequestContentParam
{
public string deliveryId { get; set; } // = "YTO";
public string ewaybillOrderId { get; set; } // = "4525894132274036739";
public List<ecOrderParam> ecOrderList { get; set; } = new List<ecOrderParam>();
public waybillOnlineSenderParam sender { get; set; } = new waybillOnlineSenderParam();
public wayBillOnlineDeliveryInfo deliveryInfo { get; set; } = new wayBillOnlineDeliveryInfo();
public wayBillOnlineExtInfo extInfo { get; set; }
public string uuid { get; set; } // "ac843315-48c8-4186-b573-1880f497c002"
public List<object> orderVasList { get; set; } = new List<object>();
public int? source { get; set; } = 3;
}
public class WXPreCreateOrderWaybillOnlineReqParam
{
public List<preWaybillOnlineRequestContentParam> requestContent { get; set; } = new List<preWaybillOnlineRequestContentParam>();
}
public class preWaybillOnlineRequestContentParam
{
public string deliveryId { get; set; } = "";
public int? orderType { get; set; } = 1;
public List<ecOrderParam> ecOrderList { get; set; } = new List<ecOrderParam>();
public waybillOnlineSenderParam sender { get; set; } = new waybillOnlineSenderParam();
public wayBillOnlineDeliveryInfo deliveryInfo { get; set; } = new wayBillOnlineDeliveryInfo();
public wayBillOnlineExtInfo extInfo { get; set; } = new wayBillOnlineExtInfo();
public string uuid { get; set; } // "ac843315-48c8-4186-b573-1880f497c002"
public List<object> orderVasList { get; set; } = new List<object>();
public int? source { get; set; } = 3;
}
public class wayBillOnlineExtInfo
{
public int? packageWeightG { get; set; } = 1000;
}
public class wayBillOnlineDeliveryInfo
{
public int? appointmentType { get; set; } = 1; // 1,
public string datetime { get; set; } = DateTime.Now.AddDays(1).ToString("yyyyMMdd"); // "20260521"
}
public class waybillOnlineSenderParam
{
public string name { get; set; } = ""; // "陈图书",
public string mobile { get; set; } = ""; // "13023098035",
public string province { get; set; } = ""; // "安徽省",
public string city { get; set; } = ""; // "合肥市",
public string county { get; set; } = "";// "肥西县",
public string street { get; set; } = ""; // "",
public string address { get; set; } = ""; // "上派镇中盟电子产业园8栋一单元(东电梯3楼快递指定存放点)",
public string lat { get; set; } = "";// "",
public string lng { get; set; } = ""; // ""
}
public class ecOrderParam
{
public string ecOrderId { get; set; } // "3736506990289905920",
public List<orderGoodsParam> goodsList { get; set; } = new List<orderGoodsParam>();
}
public class orderGoodsParam
{
public int? goodCount { get; set; } // 1,
public string goodName { get; set; } // "【抢限量印签】信任养育:你的孩子本来就很好 白瑞家庭教育作品,千万父母追随,20余年经验沉淀",
public string productId { get; set; } // "10000852376968",
public string skuId { get; set; } // "15057811153"
}
}
@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Result.WXResult
{
public class WxOnlineWaybillDeliveryInfo
{
public int? code { get; set; } // 0;
public List<DeliveryResponseContentInfo> responseContent { get; set; }
public bool? showInsufficientBalance { get; set; } // false
}
public class DeliveryResponseContentInfo
{
public int? retcode { get; set; } // 0,
public string errorMsg { get; set; } // "",
public string deliveryErrorMsg { get; set; } // "success",
public string totalFee { get; set; } // "400",
public feeDetailInfo feeDetail { get; set; }
public int? predictedArrivedTime { get; set; } // 0,
public string uuid { get; set; } // "4da17f94-b935-4022-a531-3b431279273f",
public string deliveryId { get; set; } // "JTSD",
public int? orderType { get; set; } // 1,
public string ewaybillOrderId { get; set; } // "4526098104048025619",
public string deliveryResultCode { get; set; } // "0",
public int? errorType { get; set; } // 0,
public object blockExplainUrl { get; set; } // { },
public bool? showInsufficientBalance { get; set; } // false
}
public class feeDetailInfo
{
public string totalShippingFee { get; set; } // "400",
public int? totalVasFee { get; set; } // 0,
public int? otherFee { get; set; } // 0,
public string otherFeeName { get; set; } // ""
}
}
@@ -11,6 +11,7 @@ namespace AllBase.Model.Result.WXResult
public commonInfoInfo commonInfo { get; set; }
public buyerInfoInfo buyerInfo { get; set; }
public flagInfoInfo flagInfo { get; set; }
public acceptInfoInfo acceptInfo { get; set; }
public notesInfoInfo notesInfo { get; set; }
public List<orderProductInfoInfo> orderProductInfo { get; set; }
@@ -117,6 +118,12 @@ namespace AllBase.Model.Result.WXResult
public string presentNotes { get; set; } // ""
}
public class flagInfoInfo
{
public string flagNotes { get; set; } // "订单测试",
public int? flagColor { get; set; } // 1
}
public class acceptInfoInfo
{
public addressInfoInfo addressInfo { get; set; }