- 调整dao.GetVendorStoreSnapshot的实现

- updateVendorStoreStatusBySnapshot中更新本地平台门店信息
This commit is contained in:
gazebo
2019-07-30 09:27:14 +08:00
parent 5b10960232
commit 3c7ddddcba
3 changed files with 15 additions and 11 deletions

View File

@@ -27,3 +27,9 @@ func TestSendAlarmVendorSnapshot(t *testing.T) {
t.Fatal(err)
}
}
func TestUpdateVendorStoreStatusBySnapshot(t *testing.T) {
db := dao.GetDB()
curSnapshotList, _ := dao.GetVendorStoreSnapshot(db, utils.Str2Time("2019-07-30 08:00:00"))
updateVendorStoreStatusBySnapshot(db, curSnapshotList)
}