From 42f4c01c1e693be6d52d7618069fd5388491d972 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 15 Nov 2018 18:51:13 +0800 Subject: [PATCH] - Store.IsSync --- business/jxstore/cms/sync.go | 2 +- business/model/store.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index 1e54144a4..a323bd743 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -340,7 +340,7 @@ func (v *VendorSync) LoopStoresMap(ctx *jxcontext.Context, db *dao.DaoDB, taskNa sql := ` SELECT t1.* FROM store_map t1 - WHERE t1.deleted_at = ? + WHERE t1.is_sync = 1 AND t1.deleted_at = ? ` sqlParams := []interface{}{ utils.DefaultTimeValue, diff --git a/business/model/store.go b/business/model/store.go index a0efa971b..86abdebf3 100644 --- a/business/model/store.go +++ b/business/model/store.go @@ -171,6 +171,7 @@ type StoreMap struct { DeliveryCompetition int8 `orm:"default(1)" json:"deliveryCompetition"` // 是否支持配送竞争 SyncStatus int8 `orm:"default(2)" json:"syncStatus"` + IsSync int8 `orm:"default(1)" json:"isSync"` // 是否同步 } func (*StoreMap) TableUnique() [][]string {