This commit is contained in:
suyl
2021-07-19 17:09:32 +08:00
parent 2d8838c3d7
commit d5d9f509d7
2 changed files with 1 additions and 11 deletions

View File

@@ -216,15 +216,6 @@ func BeginSavePriceRefer(ctx *jxcontext.Context, cityCodes, skuIDs []int, isAsyn
}
resultMap[k1] = skuNameMap
}
txDB, _ := dao.Begin(db)
defer func() {
if r := recover(); r != nil || err != nil {
dao.Rollback(db, txDB)
if r != nil {
panic(r)
}
}
}()
if len(priceReferSnapshotList) > 0 {
for _, v := range priceReferSnapshotList {
if v.CityCode == 0 {
@@ -246,7 +237,6 @@ func BeginSavePriceRefer(ctx *jxcontext.Context, cityCodes, skuIDs []int, isAsyn
}
}
}
dao.Commit(db, txDB)
case 2:
if len(priceReferSnapshotList) > 0 {
for _, v := range priceReferSnapshotList {