Commit 612bb2c6 by jianshuqin

修复BUG:同步FBA发货

parent d8ad4f63
...@@ -8041,11 +8041,12 @@ group by currency"; ...@@ -8041,11 +8041,12 @@ group by currency";
,t1.data_json AS data_json ,t1.data_json AS data_json
FROM amazon_fba_summary t1 FROM amazon_fba_summary t1
LEFT JOIN ( LEFT JOIN (
SELECT DISTINCT ShopName,AccountName FROM amazon_account_map SELECT DISTINCT ShopName,AccountName,Site FROM amazon_account_map
) )
AS t2 AS t2
ON 1 = 1 ON 1 = 1
AND t1.account_name = t2.shopname AND t1.account_name = t2.shopname
AND t1.market = t2.Site
WHERE 1 = 1 WHERE 1 = 1
AND t1.account_name in @accountName AND t1.account_name in @accountName
AND t1.report_month >= @startReportMonth AND t1.report_month >= @startReportMonth
...@@ -8130,15 +8131,16 @@ group by currency"; ...@@ -8130,15 +8131,16 @@ group by currency";
count = db.Execute(sql, list); count = db.Execute(sql, list);
transaction.Commit(); transaction.Commit();
result.Result = true;
} }
catch (Exception ex) catch (Exception ex)
{ {
transaction.Rollback(); transaction.Rollback();
result.Message = ex.Message;
} }
} }
} }
result.Result = true;
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment