From 55ab58df0fb43e8fadfa5409acc676bf4f98f71a Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 13 Aug 2019 09:34:51 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8DSaveOrderFinancialInfo?= =?UTF-8?q?=E4=B8=AD=E8=AF=AF=E5=88=A0=E5=94=AE=E5=90=8E=E5=8D=95=E7=9A=84?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/financial.go | 4 ++-- business/jxcallback/orderman/order_afs.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxcallback/orderman/financial.go b/business/jxcallback/orderman/financial.go index 42c0cb83e..bfb79be22 100644 --- a/business/jxcallback/orderman/financial.go +++ b/business/jxcallback/orderman/financial.go @@ -37,7 +37,7 @@ func (c *OrderManager) SaveOrderFinancialInfo(order *model.OrderFinancial, opera return err } err = utils.CallFuncLogError(func() error { - _, err = dao.ExecuteSQL(db, "DELETE FROM order_sku_financial WHERE vendor_order_id = ? AND vendor_id = ?", order.VendorOrderID, order.VendorID) + _, err = dao.ExecuteSQL(db, "DELETE FROM order_sku_financial WHERE vendor_order_id = ? AND vendor_id = ? AND is_afs_order = 0", order.VendorOrderID, order.VendorID) return err }, "SaveOrderFinancialInfo delete order_sku_financial, orderID:%s", order.VendorOrderID) if err != nil { @@ -46,7 +46,7 @@ func (c *OrderManager) SaveOrderFinancialInfo(order *model.OrderFinancial, opera err = utils.CallFuncLogError(func() error { _, err = dao.ExecuteSQL(db, "DELETE FROM order_discount_financial WHERE vendor_order_id = ? AND vendor_id = ?", order.VendorOrderID, order.VendorID) return err - }, "SaveOrderFinancialInfo delete order_sku, orderID:%s", order.VendorOrderID) + }, "SaveOrderFinancialInfo delete order_discount_financial, orderID:%s", order.VendorOrderID) if err != nil { return err } diff --git a/business/jxcallback/orderman/order_afs.go b/business/jxcallback/orderman/order_afs.go index 08e6ea78f..9e4cc263d 100644 --- a/business/jxcallback/orderman/order_afs.go +++ b/business/jxcallback/orderman/order_afs.go @@ -78,7 +78,7 @@ func (c *OrderManager) onAfsOrderNew(afsOrder *model.AfsOrder, orderStatus *mode return err } } else { - // 外退都要先全删除再建 + // 全退都要先全删除再建 if afsOrder.RefundType == model.AfsTypeFullRefund { isAdjust = true }