- SaveStoresVendorSnapshot中清除两天前的平台商品快照状态
This commit is contained in:
@@ -1294,6 +1294,9 @@ func SaveStoresVendorSnapshot(db *dao.DaoDB, snapshotAt time.Time, curSnapshotLi
|
||||
}
|
||||
}
|
||||
}()
|
||||
if err = dao.DeleteVendorStoreSnapshot(db, snapshotAt.Add(-48*time.Hour)); err != nil {
|
||||
return err
|
||||
}
|
||||
for _, v := range curSnapshotList {
|
||||
v.SnapshotAt = snapshotAt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user