aa
This commit is contained in:
@@ -1848,11 +1848,13 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
storeMaps, _ := dao.GetStoresMapList(db, []int{model.VendorIDJD}, nil, nil, model.StoreStatusAll, model.StoreIsSyncAll, "", "", "320406")
|
||||
things, _ := dao.GetThingMapList(db, model.ThingTypeSku, []int{model.VendorIDJD}, nil, []string{"320406"})
|
||||
thingIDmap := make(map[int64]string)
|
||||
thingIDmap2 := make(map[string]int)
|
||||
//
|
||||
for _, v := range things {
|
||||
if v.VendorThingID != "" {
|
||||
//vendorThingIDs = append(vendorThingIDs, utils.Str2Int64(v.VendorThingID))
|
||||
thingIDmap[v.ThingID] = v.VendorThingID
|
||||
thingIDmap2[v.VendorThingID] = int(v.ThingID)
|
||||
}
|
||||
}
|
||||
task := tasksch.NewParallelTask("uuuuu", tasksch.NewParallelConfig().SetIsContinueWhenError(true), ctx,
|
||||
@@ -1871,7 +1873,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
for _, vv := range priceInfo {
|
||||
if vv.VipPrice != 0 {
|
||||
list = append(list, &jdapi.SkuIdEntity{
|
||||
OutSkuId: thingIDmap[vv.SkuID],
|
||||
OutSkuId: utils.Int2Str(thingIDmap2[utils.Int64ToStr(vv.SkuID)]),
|
||||
})
|
||||
// result = []bool{true}
|
||||
// return result, 0, err
|
||||
|
||||
Reference in New Issue
Block a user