aa
This commit is contained in:
@@ -4598,7 +4598,7 @@ func BackUpStoreSkuBind(ctx *jxcontext.Context, isAsync, isContinueWhenError boo
|
|||||||
snapshotAt = utils.Time2Date(time.Now())
|
snapshotAt = utils.Time2Date(time.Now())
|
||||||
)
|
)
|
||||||
storeSkuBindHis := &model.StoreSkuBindHistory{
|
storeSkuBindHis := &model.StoreSkuBindHistory{
|
||||||
SnapshotAt: snapshotAt.AddDate(0, 0, -5),
|
SnapshotAt: snapshotAt.AddDate(0, 0, -3),
|
||||||
}
|
}
|
||||||
dao.DeleteEntity(db, storeSkuBindHis, "SnapshotAt")
|
dao.DeleteEntity(db, storeSkuBindHis, "SnapshotAt")
|
||||||
storeList, err := dao.GetStoreList(db, nil, nil, nil, nil, nil, "")
|
storeList, err := dao.GetStoreList(db, nil, nil, nil, nil, nil, "")
|
||||||
|
|||||||
@@ -216,15 +216,6 @@ func BeginSavePriceRefer(ctx *jxcontext.Context, cityCodes, skuIDs []int, isAsyn
|
|||||||
}
|
}
|
||||||
resultMap[k1] = skuNameMap
|
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 {
|
if len(priceReferSnapshotList) > 0 {
|
||||||
for _, v := range priceReferSnapshotList {
|
for _, v := range priceReferSnapshotList {
|
||||||
if v.CityCode == 0 {
|
if v.CityCode == 0 {
|
||||||
@@ -246,7 +237,6 @@ func BeginSavePriceRefer(ctx *jxcontext.Context, cityCodes, skuIDs []int, isAsyn
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dao.Commit(db, txDB)
|
|
||||||
case 2:
|
case 2:
|
||||||
if len(priceReferSnapshotList) > 0 {
|
if len(priceReferSnapshotList) > 0 {
|
||||||
for _, v := range priceReferSnapshotList {
|
for _, v := range priceReferSnapshotList {
|
||||||
|
|||||||
Reference in New Issue
Block a user