其他平台买手拍单发送功能 店铺筛选功能逻辑优化
This commit is contained in:
1 parent
2dece676c1
commit
aa45b35145
46 files changed
+4038
-2223
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using NaiBa.Util.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -15,12 +16,23 @@ namespace AllBase.Model.Config
|
||||
/// <summary>
|
||||
/// 日上货数量
|
||||
/// </summary>
|
||||
public Dictionary<int, int> DicDayUploadCount { get; set; } = new Dictionary<int, int>();
|
||||
public Dictionary<int, int> DicDayUploadCount
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!dicDayUploadCount.ContainsKey(DateTime.Now.ToString("yyyyMMdd").ParseToInt()))
|
||||
dicDayUploadCount[DateTime.Now.ToString("yyyyMMdd").ParseToInt()] = 0;
|
||||
return dicDayUploadCount;
|
||||
}
|
||||
set { dicDayUploadCount = value; }
|
||||
}
|
||||
Dictionary<int, int> dicDayUploadCount = new Dictionary<int, int>();
|
||||
|
||||
/// <summary>
|
||||
/// 在售商品数
|
||||
/// </summary>
|
||||
public int OnSaleCount { get; set; }
|
||||
public int OnSaleCount { get { return OnSaleRefreshDay == DateTime.Now.ToString("yyyyMMdd").ParseToInt() ? onSaleCount : 0; } set { onSaleCount = value; } }
|
||||
int onSaleCount = 0;
|
||||
/// <summary>
|
||||
/// 刷新在售商品时间
|
||||
/// </summary>
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace AllBase.Model.Result.PDDResult
|
||||
if (expressCompanyName.Contains("顺丰速运")) return "SF";
|
||||
if (expressCompanyName.Contains("京东快递")) return "JD";
|
||||
if (expressCompanyName.Contains("京东快运")) return "JDKY";
|
||||
if (expressCompanyName.Contains("其他快递")) return "OTHER";
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -89,6 +90,7 @@ namespace AllBase.Model.Result.PDDResult
|
||||
if (outExpressCompanyMsg.Contains("京东快递")) return "京东快递";
|
||||
if (outExpressCompanyMsg.Contains("京东快运")) return "京东快运";
|
||||
if (outExpressCompanyMsg.Contains("京东大件物流")) return "京东大件物流";
|
||||
if (outExpressCompanyMsg.Contains("其他快递")) return "其他快递";
|
||||
return "物流名称获取失败";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user