From 95c0ebd334c2484e002c1677970ee7469b05bf05 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 6 Feb 2024 17:20:26 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=B8=80=E4=B8=AA=E5=9C=88=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...one_circles_public_platoon_user_relation_commission.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rule/one_circles/one_circles_public_platoon_user_relation_commission.go b/rule/one_circles/one_circles_public_platoon_user_relation_commission.go index 6f73dd8..d9a5196 100644 --- a/rule/one_circles/one_circles_public_platoon_user_relation_commission.go +++ b/rule/one_circles/one_circles_public_platoon_user_relation_commission.go @@ -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