Browse Source

update 一个圈圈

master
DengBiao 10 months ago
parent
commit
95c0ebd334
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      rule/one_circles/one_circles_public_platoon_user_relation_commission.go

+ 4
- 4
rule/one_circles/one_circles_public_platoon_user_relation_commission.go View File

@@ -729,7 +729,7 @@ func OneCirclesDealCommonWealthPunish(engine *xorm.Engine, uid int, reason strin
}

//2、查询出 `one_circles_public_platoon_user_relation` 中相关记录 && 将该记录的uid置为 -1
params, err := db.UserSmallPublicPlatoonRelationGetOneByParams(engine, map[string]interface{}{
params, err := db.OneCirclesPublicPlatoonUserRelationGetOneByParams(engine, map[string]interface{}{
"key": "uid",
"value": uid,
})
@@ -738,7 +738,7 @@ func OneCirclesDealCommonWealthPunish(engine *xorm.Engine, uid int, reason strin
return
}
if params == nil {
fmt.Println("未查询到公排关系记录!!!!!!!")
fmt.Println("未查询到公排关系记录!!!!!!!", uid)
return
}

@@ -751,7 +751,7 @@ func OneCirclesDealCommonWealthPunish(engine *xorm.Engine, uid int, reason strin

for n := 1; n <= 9; n++ {
str := "father_uid" + strconv.Itoa(n)
sql := fmt.Sprintf("UPDATE `user_small_public_platoon_relation` SET %s=%s where %s=%s", str, strconv.Itoa(params.Uid), str, strconv.Itoa(uid))
sql := fmt.Sprintf("UPDATE `one_circles_public_platoon_user_relation` SET %s=%s where %s=%s", str, strconv.Itoa(params.Uid), str, strconv.Itoa(uid))
fmt.Println(">>>>>>>sql>>>>>>>", sql)
_, err = session.Exec(sql)
if err != nil {
@@ -760,7 +760,7 @@ func OneCirclesDealCommonWealthPunish(engine *xorm.Engine, uid int, reason strin
}
}

updateAffected, err := db.UserSmallPublicPlatoonRelationUpdate(session, params.Id, params)
updateAffected, err := db.OneCirclesPublicPlatoonUserRelationUpdate(session, params.Id, params)
if err != nil {
_ = session.Rollback()
return


Loading…
Cancel
Save