删除不合适的仓库 优化订单和售后单读取
This commit is contained in:
1 parent
6f7aa58ac1
commit
13b68fa64e
53 files changed
+14843
-820
No files matched your search
@@ -5,6 +5,7 @@ using NaiBa.Util.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -115,35 +116,49 @@ namespace AllBase.Model.Result
|
||||
get { return this.GetValue(x => x.ShopOrderRefundStr); }
|
||||
set { this.SetValue(x => x.ShopOrderRefundStr, 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 已提交创建
|
||||
/// 中转仓状态:"0" 未使用,"1" 已创建,"2" 创建失败,"3" 处理中(业务方根据此字段处理中转流程)
|
||||
/// 使用此字段判断中转仓库是否已取号
|
||||
/// </summary>
|
||||
public string TransferWareHouseStatus
|
||||
{
|
||||
@@ -151,7 +166,7 @@ namespace AllBase.Model.Result
|
||||
set { this.SetValue(x => x.TransferWareHouseStatus, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 1正常取号 2提前取号
|
||||
/// 1 正常取号 2 提前取号 3 已更正
|
||||
/// </summary>
|
||||
public string PreAllocatedOrderNoStr
|
||||
{
|
||||
@@ -159,48 +174,94 @@ namespace AllBase.Model.Result
|
||||
set { this.SetValue(x => x.PreAllocatedOrderNoStr, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 已取号, 提前取号, 已提交, 取号失败
|
||||
/// 处理中, "已取号(更正)", 已取号, 提前取号, 取号失败
|
||||
/// </summary>
|
||||
public string TransitOrderStatus
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((TransferWareHouseStatus == "1" || TransferWareHouseStatus == "3") &&
|
||||
//Express1CompanyStr == this.outExpressCompanyCode && !this.outExpressCompanyCode.IsNullOrEmpty() &&
|
||||
Express1WaybillStr == this.tracking_number && !this.tracking_number.IsNullOrEmpty())
|
||||
if (TransferWareHouseStatus == "3")
|
||||
{
|
||||
return "已取号";
|
||||
return "处理中";
|
||||
}
|
||||
if (string.IsNullOrEmpty(Express1CompanyStr) && string.IsNullOrEmpty(Express1WaybillStr) &&
|
||||
!string.IsNullOrEmpty(Express2CompanyStr) && !string.IsNullOrEmpty(Express2WaybillStr))
|
||||
// 不考虑仓库取号失败情况,只要取号状态不是3或者1,且有仓库订单记录,就处理取号
|
||||
//if (TransferWareHouseStatus == "2")
|
||||
//{
|
||||
// return "取号失败";
|
||||
//}
|
||||
if (PreAllocatedOrderNoStr == "3")
|
||||
{
|
||||
return "已取号(更正)";
|
||||
}
|
||||
if (PreAllocatedOrderNoStr == "1")
|
||||
{
|
||||
if (OrderTime >= new DateTime(2026, 6, 29))
|
||||
return "已取号";
|
||||
else
|
||||
return "提前取号";
|
||||
}
|
||||
if (PreAllocatedOrderNoStr == "2")
|
||||
{
|
||||
return "提前取号";
|
||||
}
|
||||
if (/*!string.IsNullOrEmpty(Express1CompanyStr) && Express1CompanyStr != this.outExpressCompanyCode && !this.outExpressCompanyCode.IsNullOrEmpty() &&*/
|
||||
!string.IsNullOrEmpty(Express1WaybillStr) && Express1WaybillStr != this.tracking_number && !this.tracking_number.IsNullOrEmpty())
|
||||
|
||||
if (!TransitWarehouseIdStr.IsNullOrEmpty() && OrderTime < new DateTime(2026, 6, 29))
|
||||
{
|
||||
return "提前取号";
|
||||
return "提前取号(旧订单)";
|
||||
}
|
||||
if ((TransferWareHouseStatus == "1" || TransferWareHouseStatus == "3") && (string.IsNullOrEmpty(Express1CompanyStr) || string.IsNullOrEmpty(Express1WaybillStr)))
|
||||
if (TransitWarehouseIdStr.IsNullOrEmpty())
|
||||
{
|
||||
return "提前取号";
|
||||
}
|
||||
if (TransferWareHouseStatus == "0" && !string.IsNullOrEmpty(Express1CompanyStr) && Express1CompanyStr == outExpressCompanyCode &&
|
||||
!string.IsNullOrEmpty(Express1WaybillStr) && Express1WaybillStr == tracking_number)
|
||||
{
|
||||
return "已提交";
|
||||
}
|
||||
if (TransferWareHouseStatus == "2" && !string.IsNullOrEmpty(Express1CompanyStr) && Express1CompanyStr == outExpressCompanyCode &&
|
||||
!string.IsNullOrEmpty(Express1WaybillStr) && Express1WaybillStr == tracking_number)
|
||||
{
|
||||
return "取号失败";
|
||||
return "非中转仓订单";
|
||||
}
|
||||
return "";
|
||||
|
||||
|
||||
//if ((TransferWareHouseStatus == "1" || TransferWareHouseStatus == "3") &&
|
||||
// //Express1CompanyStr == this.outExpressCompanyCode && !this.outExpressCompanyCode.IsNullOrEmpty() &&
|
||||
// Express1WaybillStr == this.tracking_number && !this.tracking_number.IsNullOrEmpty())
|
||||
//{
|
||||
// return "已取号";
|
||||
//}
|
||||
//if (string.IsNullOrEmpty(Express1CompanyStr) && string.IsNullOrEmpty(Express1WaybillStr) &&
|
||||
// !string.IsNullOrEmpty(Express2CompanyStr) && !string.IsNullOrEmpty(Express2WaybillStr))
|
||||
//{
|
||||
// return "提前取号";
|
||||
//}
|
||||
//if (/*!string.IsNullOrEmpty(Express1CompanyStr) && Express1CompanyStr != this.outExpressCompanyCode && !this.outExpressCompanyCode.IsNullOrEmpty() &&*/
|
||||
// !string.IsNullOrEmpty(Express1WaybillStr) && Express1WaybillStr != this.tracking_number && !this.tracking_number.IsNullOrEmpty())
|
||||
//{
|
||||
// return "提前取号";
|
||||
//}
|
||||
//if ((TransferWareHouseStatus == "1" || TransferWareHouseStatus == "3") && (string.IsNullOrEmpty(Express1CompanyStr) || string.IsNullOrEmpty(Express1WaybillStr)))
|
||||
//{
|
||||
// return "提前取号";
|
||||
//}
|
||||
//if (TransferWareHouseStatus == "0" && !string.IsNullOrEmpty(Express1CompanyStr) && Express1CompanyStr == outExpressCompanyCode &&
|
||||
// !string.IsNullOrEmpty(Express1WaybillStr) && Express1WaybillStr == tracking_number)
|
||||
//{
|
||||
// return "已提交";
|
||||
//}
|
||||
//if (TransferWareHouseStatus == "2" && !string.IsNullOrEmpty(Express1CompanyStr) && Express1CompanyStr == outExpressCompanyCode &&
|
||||
// !string.IsNullOrEmpty(Express1WaybillStr) && Express1WaybillStr == tracking_number)
|
||||
//{
|
||||
// return "取号失败";
|
||||
//}
|
||||
//return "";
|
||||
}
|
||||
set { }
|
||||
}
|
||||
public DateTime TransitCreateTime
|
||||
{
|
||||
get { return this.GetValue(x => x.TransitCreateTime); }
|
||||
set { this.SetValue(x => x.TransitCreateTime, value); }
|
||||
}
|
||||
|
||||
|
||||
public DateTime OrderTime
|
||||
{
|
||||
get { return BaseClass.StampToDateTime(order_time.ParseToInt()); }
|
||||
set { }
|
||||
}
|
||||
public string OrderTimeStr
|
||||
{
|
||||
get { return BaseClass.StampToDateTime(order_time.ParseToInt()).ToString("yy-MM-dd HH:mm:ss"); }
|
||||
|
||||
Reference in new issue
Block a user