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 {