1
This commit is contained in:
@@ -63,6 +63,14 @@ func GetThingToTiktokMapList(db *DaoDB, vendorId int, thingId int64) (cats []*mo
|
||||
return cats, err
|
||||
}
|
||||
|
||||
// DeleteThingToTiktokMapList 删除同步关联关系
|
||||
func DeleteThingToTiktokMapList(vendorId int, vendorThingId string) error {
|
||||
sql := ` DELETE FROM thing_map t1 WHERE vendor_thing_id = ? AND vendor_id = ? `
|
||||
param := []interface{}{vendorThingId, vendorId}
|
||||
_, err := ExecuteSQL(GetDB(), sql, param...)
|
||||
return err
|
||||
}
|
||||
|
||||
func GetThingMapMap(db *DaoDB, thingType int, vendorIDs, thingIDs []int) (thingMapMap map[int64][]*model.ThingMap, err error) {
|
||||
thingMapList, err := GetThingMapList(db, thingType, vendorIDs, thingIDs, nil)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user