Browse Source

注销处罚

master
huangjiajun 5 days ago
parent
commit
9d8d04dfbd
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      consume/user_delete_consume.go
  2. +1
    -1
      go.mod

+ 2
- 1
consume/user_delete_consume.go View File

@@ -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.用户关系链
//查出所有下级


+ 1
- 1
go.mod View File

@@ -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


Loading…
Cancel
Save