- fix ebai create category bug

This commit is contained in:
gazebo
2018-12-04 17:14:32 +08:00
parent c9491aaf20
commit 425bb8a1b1

View File

@@ -117,7 +117,7 @@ func (p *PurchaseHandler) createCatByStoreSkus(ctx *jxcontext.Context, parentTas
catList2Add := make(map[int]int)
for _, storeSku := range storeSkuInfoList {
if storeSku.EbaiSyncStatus&(model.SyncFlagNewMask|model.SyncFlagModifiedMask) != 0 {
if storeSku.ParentCatEbaiID == 0 && catList2Add[storeSku.ParentCatID] != 0 {
if storeSku.ParentCatEbaiID == 0 && storeSku.ParentCatID != 0 {
catList2Add[storeSku.ParentCatID] = 1
}
if storeSku.CatEbaiID == 0 {