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 }