diff --git a/business/model/dao/thing_map.go b/business/model/dao/thing_map.go index 59ce42b1c..5a84f8e2e 100644 --- a/business/model/dao/thing_map.go +++ b/business/model/dao/thing_map.go @@ -38,7 +38,7 @@ func GetThingMapMap(db *DaoDB, thingType int, vendorIDs, thingIDs []int) (thingM func SetThingMapSyncStatus(db *DaoDB, vendorIDs []int, vendorOrgCodes []string, thingType int, thingIDs []int, syncStatus int8) (num int64, err error) { sql := ` UPDATE thing_map t1 - SET t1.sync_status |= ? + SET t1.sync_status = t1.sync_status | ? WHERE t1.deleted_at = ? AND t1.thing_type = ? ` sqlParams := []interface{}{