|
@@ -412,7 +412,7 @@ namespace SiteCore
|
|
|
Content tObj = fullObj.content;
|
|
Content tObj = fullObj.content;
|
|
|
List<Api_tmc_trade_info_Obj.LinesItem> orderList = tObj.lines;
|
|
List<Api_tmc_trade_info_Obj.LinesItem> orderList = tObj.lines;
|
|
|
//未付款,未成功的单不需要 榆家不收
|
|
//未付款,未成功的单不需要 榆家不收
|
|
|
- if (tObj.status == "DELETED" || (tObj.status == "CANCEL" && tObj.refType != "JD") || tObj.status == "UNKNOWN" || tObj.status == "UNPAID" )
|
|
|
|
|
|
|
+ if (tObj.status == "DELETED" || (tObj.status == "CANCEL" && tObj.refType != "JD") || tObj.status == "UNKNOWN" || tObj.status == "UNPAID")
|
|
|
{
|
|
{
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -731,8 +731,16 @@ namespace SiteCore
|
|
|
{
|
|
{
|
|
|
order.spu_id = item.refSpuId;
|
|
order.spu_id = item.refSpuId;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if (item.refSkuId != null && item.standards != null && (item.standards.IndexOf("现货") != -1 || item.standards.IndexOf("封酒贴") != -1 || item.standards.IndexOf("兔团团") != -1 || item.standards.IndexOf("帆布") != -1 || item.standards.IndexOf("手拉旗") != -1 || item.standards.IndexOf("kt") != -1 || item.standards.IndexOf("条幅") != -1 || item.standards.IndexOf("#") != -1) && item.standards.IndexOf("定制") == -1)
|
|
|
|
|
|
|
+ List<string> standards_list = new List<string>() { "现货", "封酒贴", "兔团团", "帆布", "手拉旗", "kt", "条幅"};
|
|
|
|
|
+ bool isInList = false;
|
|
|
|
|
+ foreach (string text in standards_list)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (item.standards.IndexOf(text) > -1)
|
|
|
|
|
+ {
|
|
|
|
|
+ isInList = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.refSkuId != null && item.standards != null && (isInList || item.standards.IndexOf("#") != -1) && item.standards.IndexOf("定制") == -1)
|
|
|
{
|
|
{
|
|
|
isXianhuo = true;
|
|
isXianhuo = true;
|
|
|
xianhuoMemo += order.sku_properties_name;
|
|
xianhuoMemo += order.sku_properties_name;
|
|
@@ -903,6 +911,16 @@ namespace SiteCore
|
|
|
{
|
|
{
|
|
|
entity.SupplierId = 108;
|
|
entity.SupplierId = 108;
|
|
|
}
|
|
}
|
|
|
|
|
+ else if (xianhuoMemo.IndexOf("臂贴") != -1)
|
|
|
|
|
+ {
|
|
|
|
|
+ entity.OrderState = 2;
|
|
|
|
|
+ entity.ProductId = 327;
|
|
|
|
|
+ entity.IsXianHuo = 0;
|
|
|
|
|
+ xianhuoMemo = xianhuoMemo.Replace("现货", "");
|
|
|
|
|
+ xianhuoMemo = xianhuoMemo.Replace(" ", "");
|
|
|
|
|
+ entity.seller_memo = xianhuoMemo;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
string goodsSql = "select * from CE_ErpSupplier where IsClose = 0 and XianhuoMemo IS NOT NULL AND XianhuoMemo != ''";
|
|
string goodsSql = "select * from CE_ErpSupplier where IsClose = 0 and XianhuoMemo IS NOT NULL AND XianhuoMemo != ''";
|
|
@@ -3390,12 +3408,13 @@ namespace SiteCore
|
|
|
CeErpSukuraData.createInfo(entity.ctid, 1);
|
|
CeErpSukuraData.createInfo(entity.ctid, 1);
|
|
|
LogHelper.addLog(entity.ctid, entity.CustomerUserId, "普通推送生成:" + entity.seller_memo, entity.OrderState);
|
|
LogHelper.addLog(entity.ctid, entity.CustomerUserId, "普通推送生成:" + entity.seller_memo, entity.OrderState);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ public static List<int> shop_list = new List<int>() { 5, 6, 8, 10, 11, 12, 14, 15, 16, 18, 24, 28, 31, 32, 56, 61, 126, 128 };
|
|
|
public static void dealOldCustomerEntityTag(ref CeErpTradeCell entity, CeErpTrade father)
|
|
public static void dealOldCustomerEntityTag(ref CeErpTradeCell entity, CeErpTrade father)
|
|
|
{
|
|
{
|
|
|
//UV跟指定店铺
|
|
//UV跟指定店铺
|
|
|
int[] shopList = { 49, 67, 26, 45, 13, 68, 20, 17, 52, 21, 66, 63, 64 };
|
|
int[] shopList = { 49, 67, 26, 45, 13, 68, 20, 17, 52, 21, 66, 63, 64 };
|
|
|
- if (entity.ProductId == 43 || shopList.Contains(entity.ShopId))
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if ((entity.ProductId == 43 && !shop_list.Contains(entity.ShopId)) || shopList.Contains(entity.ShopId))
|
|
|
{
|
|
{
|
|
|
/**int curHour = DateTime.Now.Hour;
|
|
/**int curHour = DateTime.Now.Hour;
|
|
|
int initSysDesignerId = Convert.ToInt32(webConfig.OldCusPartShopDesigner);
|
|
int initSysDesignerId = Convert.ToInt32(webConfig.OldCusPartShopDesigner);
|