|
|
@@ -57,7 +57,7 @@ namespace SiteCore.Handler
|
|
|
|
|
|
string poscode = CurrentUser.UserPost.Post.Code;
|
|
|
DataStruct dStruct = GetPostStruct();
|
|
|
- //jiemiUtils.ossFileDecrypt("C:\\Users\\231010\\Downloads\\店铺.xlsx");
|
|
|
+ //jiemiUtils.ossFileDecrypt("C:\\Users\\231010\\Downloads\\CE_ErpProduct(3).xlsx");
|
|
|
//apiHelper.Api_SyncOrderByTime("598825");
|
|
|
//apiHelper.API_GetWaybill("ZTO-CAINIAO-TZJK", "4233447147588233939");
|
|
|
//apiHelper.Api_SyacOrder("2460143282114312263", "yujia");
|
|
|
@@ -7331,6 +7331,7 @@ namespace SiteCore.Handler
|
|
|
newentity.CheckMemo = "";
|
|
|
newentity.OutSid = "";
|
|
|
newentity.CheckOrderTime = null;
|
|
|
+ newentity.MemoOpt = 0;
|
|
|
LogHelper.addLog(newentity.ctid, CurrentUser.UserID, "售后处理生成:" + newMemo, entity.OrderState, 1);
|
|
|
}
|
|
|
newentity.isAfterSaleOrder = 1;
|
|
|
@@ -12899,13 +12900,11 @@ namespace SiteCore.Handler
|
|
|
|
|
|
string result = designHelper.API_CheckOrderTo(ceErpTradeCellExtend.ctid, ceErpTradeCellExtend.spu_id, ceErpTradeCell.ShopId);
|
|
|
ceErpTradeCellExtend.ToType = result;
|
|
|
- List<int> products = new List<int>() { 4, 13, 19, 24, 28, 32, 40, 51, 57, 1971, 2319, 2377, 2521, 2524, 2533, 2538, 2542, 2554, 2556, 2557, 2559, 2560, 2561, 2562, 2563, 2564, 2565, 2566, 2568, 2569, 2570, 2571, 2572, 2619, 2625, 2634, 2636, 2637, 2638, 2645, 2646 };
|
|
|
- List<int> shopIds = new List<int>() { 5, 6, 8, 10, 11, 12, 14, 15, 16, 18, 24, 27, 28, 31, 32, 56, 61 };
|
|
|
- if (products.Contains(ceErpTradeCell.ProductId) || ceErpTradeCell.seller_memo.IndexOf("手绘") > -1 || ceErpTradeCell.seller_memo.IndexOf("电子稿") > -1 || ceErpTradeCell.isDianziOrder > 0)
|
|
|
+ if (commonHelper.spu_products.Contains(ceErpTradeCell.ProductId) || ceErpTradeCell.seller_memo.IndexOf("手绘") > -1 || ceErpTradeCell.seller_memo.IndexOf("电子稿") > -1 || ceErpTradeCell.isDianziOrder > 0)
|
|
|
{
|
|
|
ceErpTradeCellExtend.ToType = "外协";
|
|
|
}
|
|
|
- if ((ceErpTradeCell.seller_memo.Contains("改稿") || ceErpTradeCell.OtherMemo.Contains("改稿")) && shopIds.Contains(ceErpTradeCell.ShopId))
|
|
|
+ if ((ceErpTradeCell.seller_memo.Contains("改稿") || ceErpTradeCell.OtherMemo.Contains("改稿")) && commonHelper.spu_shopIds.Contains(ceErpTradeCell.ShopId) && !commonHelper.spu_oldProducts.Contains(ceErpTradeCell.ProductId))
|
|
|
{
|
|
|
ceErpTradeCellExtend.ToType = "内部";
|
|
|
}
|
|
|
@@ -13560,8 +13559,9 @@ namespace SiteCore.Handler
|
|
|
returnErrorMsg("单次下载次数不能超过20个");
|
|
|
return;
|
|
|
}
|
|
|
+ string textCtids = "'" + ctids.Replace(",", "','") + "'";
|
|
|
StringBuilder sql = new StringBuilder();
|
|
|
- sql.AppendFormat("select ctid,OrderState,SupplierId from CE_ErpTradeCell where ctid in ({0})", "'" + ctids.Replace(",", "','") + "'");
|
|
|
+ sql.AppendFormat("select ctid,OrderState,SupplierId from CE_ErpTradeCell where ctid in ({0})", textCtids);
|
|
|
DataTable dt = DbHelper.DbConn.ExecuteDataset(sql.ToString()).Tables[0];
|
|
|
int supplierId = 0;
|
|
|
StringBuilder insterSql = new StringBuilder();
|
|
|
@@ -13598,12 +13598,44 @@ namespace SiteCore.Handler
|
|
|
string inSql = string.Format(insterSql.ToString(), ceErpPackData.ID);
|
|
|
DbHelper.DbConn.ExecuteNonQuery(inSql);
|
|
|
}
|
|
|
+ //DbHelper.DbConn.ExecuteNonQuery(string.Format("update CE_ErpTradeCell set OrderState=6,IsVerifyToSupplier=0 where ctid in ({0}) and OrderState=5 and IsVerifyToSupplier=1", textCtids));
|
|
|
returnSuccessMsg("打包成功");
|
|
|
return;
|
|
|
}
|
|
|
returnErrorMsg("缺少必要的参数");
|
|
|
}
|
|
|
|
|
|
+ public void rePackOrderInfo()
|
|
|
+ {
|
|
|
+ string id = GetPostString("id");
|
|
|
+ if (!string.IsNullOrEmpty(id))
|
|
|
+ {
|
|
|
+ CeErpPackData ceErpPackData = CeErpPackData.Get(id);
|
|
|
+ if (ceErpPackData == null)
|
|
|
+ {
|
|
|
+ returnSuccessMsg("查无数据");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ ceErpPackData.upStatus = 0;
|
|
|
+ ceErpPackData.message = "";
|
|
|
+ ceErpPackData.Update();
|
|
|
+ returnSuccessMsg("打包成功");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ returnErrorMsg("缺少必要的参数");
|
|
|
+ }
|
|
|
+ public void addPackDownNum()
|
|
|
+ {
|
|
|
+ string id = GetPostString("id");
|
|
|
+ if (!string.IsNullOrEmpty(id))
|
|
|
+ {
|
|
|
+ DbHelper.DbConn.ExecuteNonQuery(string.Format("update CE_ErpPackData set downNum+=1 where id= {0}", id));
|
|
|
+ returnSuccessMsg("下载成功");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ returnErrorMsg("缺少必要的参数");
|
|
|
+ }
|
|
|
+
|
|
|
public void get_pack_list()
|
|
|
{
|
|
|
DataStruct dStruct = GetPostStruct();
|