|
@@ -7,6 +7,7 @@ using NPOI.OpenXmlFormats.Wordprocessing;
|
|
|
using NPOI.SS.Formula.Functions;
|
|
using NPOI.SS.Formula.Functions;
|
|
|
using NPOI.SS.Formula.PTG;
|
|
using NPOI.SS.Formula.PTG;
|
|
|
using SiteCore.Handler;
|
|
using SiteCore.Handler;
|
|
|
|
|
+using SiteCore.taobao;
|
|
|
using SiteCore.taoObj;
|
|
using SiteCore.taoObj;
|
|
|
using SQLData;
|
|
using SQLData;
|
|
|
using System;
|
|
using System;
|
|
@@ -16,6 +17,7 @@ using System.Data;
|
|
|
using System.Linq;
|
|
using System.Linq;
|
|
|
using System.Net;
|
|
using System.Net;
|
|
|
using System.Reflection;
|
|
using System.Reflection;
|
|
|
|
|
+using System.Runtime.Remoting.Metadata.W3cXsd2001;
|
|
|
using System.Security.Cryptography;
|
|
using System.Security.Cryptography;
|
|
|
using System.Security.Cryptography.X509Certificates;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
using System.Text;
|
|
using System.Text;
|
|
@@ -2284,7 +2286,7 @@ namespace SiteCore.Handler
|
|
|
order.tid = trade.tid;
|
|
order.tid = trade.tid;
|
|
|
order.buyer_nick = trade.buyer_nick;
|
|
order.buyer_nick = trade.buyer_nick;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ CeErpShop nShop = CeErpShop.GetShopIdByName(trade.seller_nick);
|
|
|
order.refund_status = item.refundStatus;
|
|
order.refund_status = item.refundStatus;
|
|
|
order.status = trade.status;
|
|
order.status = trade.status;
|
|
|
order.title = item.title;
|
|
order.title = item.title;
|
|
@@ -2325,6 +2327,40 @@ namespace SiteCore.Handler
|
|
|
if (isCreateOrder)
|
|
if (isCreateOrder)
|
|
|
{
|
|
{
|
|
|
order.Create();
|
|
order.Create();
|
|
|
|
|
+ CeErpTradeSpu ceErpTradeSpu = CeErpTradeSpu.GetBySpuId(order.spu_id);
|
|
|
|
|
+ //dataHelper.sendErpTradeOrderInfo(new dataSendTradeOrderBean(item, tObj));
|
|
|
|
|
+
|
|
|
|
|
+ if (ceErpTradeSpu == null)
|
|
|
|
|
+ {
|
|
|
|
|
+ ceErpTradeSpu = new CeErpTradeSpu();
|
|
|
|
|
+ ceErpTradeSpu.spuId = order.spu_id;
|
|
|
|
|
+ ceErpTradeSpu.tid = order.tid;
|
|
|
|
|
+ ceErpTradeSpu.shopId = nShop.ID;
|
|
|
|
|
+ ceErpTradeSpu.createTime = DateTime.Now;
|
|
|
|
|
+ dataSendSpuBean bean = new dataSendSpuBean();
|
|
|
|
|
+ bean.ShortText1728890680485 = order.title;
|
|
|
|
|
+ bean.ShortText1728890649488 = order.spu_id;
|
|
|
|
|
+ bean.shopId = nShop.ID.ToString();
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ bean.Date1728891156995 = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
+ dataResponseVo response = dataHelper.sendSpuInfo(bean);
|
|
|
|
|
+
|
|
|
|
|
+ if (response != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ if ("0".Equals(response.errcode))
|
|
|
|
|
+ {
|
|
|
|
|
+ ceErpTradeSpu.isSync = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ ceErpTradeSpu.message = response.errmsg;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ ceErpTradeSpu.Create();
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|