aa
This commit is contained in:
@@ -2977,5 +2977,8 @@ func LoadStoreVendorCategories(ctx *jxcontext.Context, vendorOrgCode string, ven
|
|||||||
OnCreateThing(ctx, db, vendorOrgCodes, int64(v.CategoryID), model.ThingTypeCategory, model.SyncFlagNewMask, true)
|
OnCreateThing(ctx, db, vendorOrgCodes, int64(v.CategoryID), model.ThingTypeCategory, model.SyncFlagNewMask, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if _, err = SyncCategories(ctx, nil, []int{vendorID}, []string{vendorOrgCode}, nil, false); err == nil {
|
||||||
|
SyncReorderCategories2(ctx, 0, vendorID, vendorOrgCode)
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -471,7 +471,9 @@ func GetStoreManageState(ctx *jxcontext.Context, storeIDs []int, vendorID int, f
|
|||||||
result.SkuCount = skuCount
|
result.SkuCount = skuCount
|
||||||
result.HighSkuCount = highSkuCount
|
result.HighSkuCount = highSkuCount
|
||||||
//活动丰富度
|
//活动丰富度
|
||||||
|
handler := partner.GetPurchasePlatformFromVendorID(vendorID)
|
||||||
|
ample, _ := handler.GetActAmple(ctx, storeDetail.VendorStoreID, storeDetail.VendorStoreID)
|
||||||
|
result.ActAmple = ample
|
||||||
getStoreManageStateResult = append(getStoreManageStateResult, result)
|
getStoreManageStateResult = append(getStoreManageStateResult, result)
|
||||||
}
|
}
|
||||||
return getStoreManageStateResult, err
|
return getStoreManageStateResult, err
|
||||||
|
|||||||
@@ -260,13 +260,11 @@ func (c *PurchaseHandler) SyncAct(ctx *jxcontext.Context, parentTask tasksch.ITa
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *PurchaseHandler) GetActAmple(ctx *jxcontext.Context, vendorStoreID, vendorOrgCode string) (ample int, err error) {
|
func (c *PurchaseHandler) GetActAmple(ctx *jxcontext.Context, vendorStoreID, vendorOrgCode string) (ample int, err error) {
|
||||||
// for _, v := range mtwmapi.ActTypeList {
|
for _, v := range mtwmapi.ActTypeList {
|
||||||
// //1表示进行中
|
//1表示进行中
|
||||||
// if actList, err := getAPI(vendorOrgCode, 0, vendorStoreID).GetByAppPoiCodeAndType(vendorOrgCode, 1, v); err == nil {
|
if actList, err := getAPI(vendorOrgCode, 0, vendorStoreID).GetByAppPoiCodeAndType(vendorOrgCode, 1, v); err == nil {
|
||||||
// for _, vv := range actList {
|
ample += len(actList)
|
||||||
|
}
|
||||||
// }
|
}
|
||||||
// }
|
|
||||||
// }
|
|
||||||
return ample, err
|
return ample, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user