diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index a6c8d8400..c89af43ab 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -1866,13 +1866,6 @@ func RefreshOrderSkuInfo(ctx *jxcontext.Context, vendorOrderID string, vendorID, dao.UpdateEntity(db, v, "ShopPrice", "EarningPrice") return err } - txDB, _ := dao.Begin(db) - defer func() { - if r := recover(); r != nil { - dao.Rollback(db, txDB) - panic(r) - } - }() for _, v := range order.Skus { if v.SkuID == 0 { if v.JxSkuID == skuID { @@ -1894,7 +1887,6 @@ func RefreshOrderSkuInfo(ctx *jxcontext.Context, vendorOrderID string, vendorID, order.ShopPrice = shopPrice order.EarningPrice = earningPrice num, err = dao.UpdateEntity(db, order, "ShopPrice", "EarningPrice") - dao.Commit(db, txDB) return num, err }