- SaveStoresVendorSnapshot中清除两天前的平台商品快照状态

This commit is contained in:
gazebo
2019-06-28 18:09:51 +08:00
parent e6fc253851
commit a03041d6fd
2 changed files with 12 additions and 0 deletions

View File

@@ -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