diff --git a/consume/user_delete_consume.go b/consume/user_delete_consume.go index 627a1ce..42fb3fe 100644 --- a/consume/user_delete_consume.go +++ b/consume/user_delete_consume.go @@ -91,8 +91,9 @@ func handleUserDeleteConsume(backEg *xorm.Engine, ch *rabbit.Channel, msgData [] backEg.Insert(&user) user.Phone = "" user.State = 2 + user.ParentUid = 0 user.Nickname = "注销用户" - db.Db.Where("id=?", user.Id).Cols("state,phone,nickname").Update(&user) + db.Db.Where("id=?", user.Id).Cols("state,phone,nickname,parent_uid").Update(&user) } //2.用户关系链 //查出所有下级 diff --git a/go.mod b/go.mod index 25aeb87..2ac258a 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ go 1.19 // replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules require ( - code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241224090637-89a57f7fbb1e + code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241229040905-b840e6fb411a code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241227092843-802cf07ae61c code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5