- Store.IsSync

This commit is contained in:
gazebo
2018-11-15 18:51:13 +08:00
parent 74d1a44306
commit 42f4c01c1e
2 changed files with 2 additions and 1 deletions

View File

@@ -340,7 +340,7 @@ func (v *VendorSync) LoopStoresMap(ctx *jxcontext.Context, db *dao.DaoDB, taskNa
sql := ` sql := `
SELECT t1.* SELECT t1.*
FROM store_map t1 FROM store_map t1
WHERE t1.deleted_at = ? WHERE t1.is_sync = 1 AND t1.deleted_at = ?
` `
sqlParams := []interface{}{ sqlParams := []interface{}{
utils.DefaultTimeValue, utils.DefaultTimeValue,

View File

@@ -171,6 +171,7 @@ type StoreMap struct {
DeliveryCompetition int8 `orm:"default(1)" json:"deliveryCompetition"` // 是否支持配送竞争 DeliveryCompetition int8 `orm:"default(1)" json:"deliveryCompetition"` // 是否支持配送竞争
SyncStatus int8 `orm:"default(2)" json:"syncStatus"` SyncStatus int8 `orm:"default(2)" json:"syncStatus"`
IsSync int8 `orm:"default(1)" json:"isSync"` // 是否同步
} }
func (*StoreMap) TableUnique() [][]string { func (*StoreMap) TableUnique() [][]string {