This commit is contained in:
邹宗楠
2022-12-19 11:14:00 +08:00
parent e10db669dc
commit 57f699d16c
8 changed files with 51 additions and 13 deletions

View File

@@ -43,15 +43,16 @@ func CreateThingMap(thingId int64, vendorThingID, appOrgCode, err string, thingT
}
// GetThingToTiktokMapList 抖店获取同步类型
func GetThingToTiktokMapList(db *DaoDB, vendorId int, thingId int64) (cats []*model.ThingMap, err error) {
func GetThingToTiktokMapList(db *DaoDB, vendorId int, thingId int64, vendorOrgCode string) (cats []*model.ThingMap, err error) {
sql := `
SELECT t1.*
FROM thing_map t1
WHERE t1.thing_id = ? AND t1.vendor_id = ? AND t1.deleted_at = ?
WHERE t1.thing_id = ? AND t1.vendor_id = ? AND vendor_org_code = ? AND t1.deleted_at = ?
`
sqlParams := []interface{}{
thingId,
vendorId,
vendorOrgCode,
utils.DefaultTimeValue,
}