This commit is contained in:
邹宗楠
2024-03-12 11:52:23 +08:00
parent cf49205cbf
commit a163e5b6a6

View File

@@ -234,7 +234,7 @@ func (v *VendorSync) SyncStore2Time(ctx *jxcontext.Context, db *dao.DaoDB, vendo
if len(loopMapInfo.StoreMapList) > 1 { if len(loopMapInfo.StoreMapList) > 1 {
db2 = dao.GetDB() db2 = dao.GetDB()
} }
if storeMap.Status == model.StoreStatusDisabled { if storeMap.Status == model.StoreStatusDisabled { // 会出现已经禁用的门店还去调用下线操作,这儿给筛选一下
resultList = append(resultList, 1) resultList = append(resultList, 1)
} else if model.IsSyncStatusNew(storeMap.SyncStatus) { } else if model.IsSyncStatusNew(storeMap.SyncStatus) {
storeDetail, _ := dao.GetStoreDetail(db, storeMap.StoreID, storeMap.VendorID, storeMap.VendorOrgCode) storeDetail, _ := dao.GetStoreDetail(db, storeMap.StoreID, storeMap.VendorID, storeMap.VendorOrgCode)