同步分类到平台

This commit is contained in:
苏尹岚
2020-05-27 09:30:04 +08:00
parent d1520597e8
commit cbbfddfd85
2 changed files with 4 additions and 3 deletions

View File

@@ -210,8 +210,9 @@ func GetSkuCategoryWithVendor(db *DaoDB, vendorIDs []int, appOrgCodes []string,
LEFT JOIN thing_map t1pm ON t1pm.thing_id = t1p.id AND t1pm.thing_type = ? AND t1m.deleted_at = ?
AND t1pm.vendor_id = t1m.vendor_id AND t1pm.vendor_org_code = t1m.vendor_org_code
WHERE 1 = 1
AND t1.is_sync <> ?
`
sqlParams = append(sqlParams, model.ThingTypeCategory, utils.DefaultTimeValue)
sqlParams = append(sqlParams, model.ThingTypeCategory, utils.DefaultTimeValue, model.YES)
if mustDirty {
sql += " AND t1m.sync_status IS NOT NULL AND t1m.sync_status <> 0"
} else {