This commit is contained in:
苏尹岚
2021-02-08 16:15:44 +08:00
parent c62d18d03b
commit 80eea88ccb

View File

@@ -1844,8 +1844,10 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
thingIDmap := make(map[int64]string) thingIDmap := make(map[int64]string)
for _, v := range things { for _, v := range things {
vendorThingIDs = append(vendorThingIDs, utils.Str2Int64(v.VendorThingID)) if v.VendorThingID != "" {
thingIDmap[utils.Str2Int64(v.VendorThingID)] = utils.Int64ToStr(v.ThingID) vendorThingIDs = append(vendorThingIDs, utils.Str2Int64(v.VendorThingID))
thingIDmap[utils.Str2Int64(v.VendorThingID)] = utils.Int64ToStr(v.ThingID)
}
} }
task := tasksch.NewParallelTask("uuuuu", tasksch.NewParallelConfig().SetIsContinueWhenError(true), ctx, task := tasksch.NewParallelTask("uuuuu", tasksch.NewParallelConfig().SetIsContinueWhenError(true), ctx,