diff --git a/business/jxstore/cms/sync2.go b/business/jxstore/cms/sync2.go index f5a291a12..742a47942 100644 --- a/business/jxstore/cms/sync2.go +++ b/business/jxstore/cms/sync2.go @@ -341,16 +341,18 @@ func onUpdateThing(ctx *jxcontext.Context, db *dao.DaoDB, vendorInfoList []*mode VendorID: v.VendorID, VendorOrgCode: v.VendorOrgCode, } - thingMap.DeletedAt = utils.DefaultTimeValue - if err2 := getThingMap(db, thingMap); err2 == nil { - thingMap.SyncStatus |= syncStatus - thingMap.LastOperator = ctx.GetUserName() - _, err2 = dao.UpdateEntity(db, thingMap) - errList.AddErr(err2) + if v.IsJxCat == model.NO { + thingMap.DeletedAt = utils.DefaultTimeValue + if err2 := getThingMap(db, thingMap); err2 == nil { + thingMap.SyncStatus |= syncStatus + thingMap.LastOperator = ctx.GetUserName() + _, err2 = dao.UpdateEntity(db, thingMap) + errList.AddErr(err2) - updateThingMapEntity(db, thingMap) - } else { - errList.AddErr(err2) + updateThingMapEntity(db, thingMap) + } else { + errList.AddErr(err2) + } } } err = errList.GetErrListAsOne()