aa
This commit is contained in:
@@ -341,16 +341,18 @@ func onUpdateThing(ctx *jxcontext.Context, db *dao.DaoDB, vendorInfoList []*mode
|
|||||||
VendorID: v.VendorID,
|
VendorID: v.VendorID,
|
||||||
VendorOrgCode: v.VendorOrgCode,
|
VendorOrgCode: v.VendorOrgCode,
|
||||||
}
|
}
|
||||||
thingMap.DeletedAt = utils.DefaultTimeValue
|
if v.IsJxCat == model.NO {
|
||||||
if err2 := getThingMap(db, thingMap); err2 == nil {
|
thingMap.DeletedAt = utils.DefaultTimeValue
|
||||||
thingMap.SyncStatus |= syncStatus
|
if err2 := getThingMap(db, thingMap); err2 == nil {
|
||||||
thingMap.LastOperator = ctx.GetUserName()
|
thingMap.SyncStatus |= syncStatus
|
||||||
_, err2 = dao.UpdateEntity(db, thingMap)
|
thingMap.LastOperator = ctx.GetUserName()
|
||||||
errList.AddErr(err2)
|
_, err2 = dao.UpdateEntity(db, thingMap)
|
||||||
|
errList.AddErr(err2)
|
||||||
|
|
||||||
updateThingMapEntity(db, thingMap)
|
updateThingMapEntity(db, thingMap)
|
||||||
} else {
|
} else {
|
||||||
errList.AddErr(err2)
|
errList.AddErr(err2)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err = errList.GetErrListAsOne()
|
err = errList.GetErrListAsOne()
|
||||||
|
|||||||
Reference in New Issue
Block a user