This commit is contained in:
苏尹岚
2021-01-07 10:36:34 +08:00
parent 3f331702fd
commit e3266af9ae
2 changed files with 3 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ func SyncStoreCategories(ctx *jxcontext.Context, parentTask tasksch.ITask, vendo
return nil, err
}
}
if vendorID == model.VendorIDEBAI && catInfo.VendorOrgCode == "34665" && catInfo.CityCode == 510100 {
if vendorID == model.VendorIDEBAI && catInfo.VendorOrgCode == "34665" && catInfo.CityCode == 510100 && catInfo.IsExdSync == 0 {
catInfo.Name = catInfo.ExdName
catInfo.Seq = catInfo.ExdSeq
}

View File

@@ -71,6 +71,8 @@ func GetCategories(db *DaoDB, parentID, level int, catIDs []int, isExd bool) (ca
params = append(params, level)
}
if isExd {
sql += " AND t1.is_exd_sync <> ?"
params = append(params, 1)
sql += " ORDER BY t1.level, t1.exd_seq"
} else {
sql += ` AND t1.is_exd_spec = 0