This commit is contained in:
苏尹岚
2021-02-02 16:23:19 +08:00
parent f992f6a0e2
commit 32d08027bf

View File

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