aa
This commit is contained in:
@@ -497,7 +497,7 @@ func GetVendorCategoryMapExt(db *DaoDB, parentID, level, vendorID int, vendorOrg
|
|||||||
sql := `
|
sql := `
|
||||||
SELECT a.*, b.vendor_thing_id
|
SELECT a.*, b.vendor_thing_id
|
||||||
FROM vendor_category_map a
|
FROM vendor_category_map a
|
||||||
JOIN thing_map b ON b.thing_id = a.category_id AND b.thing_type = ?
|
JOIN thing_map b ON b.thing_id = a.category_id AND b.vendor_org_code = a.vendor_org_code AND b.vendor_id = a.vendor_id AND b.thing_type = ?
|
||||||
WHERE a.deleted_at = ?
|
WHERE a.deleted_at = ?
|
||||||
`
|
`
|
||||||
sqlParams := []interface{}{
|
sqlParams := []interface{}{
|
||||||
|
|||||||
Reference in New Issue
Block a user