|
@@ -993,18 +993,17 @@ func SmallDealCommonWealthPunish(engine *xorm.Engine, uid int, reason string) (e |
|
|
err = errors.New("未查询到公排关系记录") |
|
|
err = errors.New("未查询到公排关系记录") |
|
|
_ = session.Rollback() |
|
|
_ = session.Rollback() |
|
|
} |
|
|
} |
|
|
oldUid := params.Uid |
|
|
|
|
|
|
|
|
|
|
|
//TODO::判断是否为推荐用户 |
|
|
//TODO::判断是否为推荐用户 |
|
|
if params.RecommendUid == 0 { |
|
|
if params.RecommendUid == 0 { |
|
|
params.Uid = params.Uid - 9999999999 |
|
|
|
|
|
|
|
|
params.Uid = params.Uid - 2147483648 |
|
|
} else { |
|
|
} else { |
|
|
params.Uid = params.Uid - 9999999999 |
|
|
|
|
|
|
|
|
params.Uid = params.Uid - 2147483648 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
for n := 1; n <= 9; n++ { |
|
|
for n := 1; n <= 9; n++ { |
|
|
str := "father_uid" + strconv.Itoa(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(oldUid), str, strconv.Itoa(params.Uid)) |
|
|
|
|
|
|
|
|
sql := fmt.Sprintf("UPDATE `user_small_public_platoon_relation` SET %s=%s where %s=%s", str, strconv.Itoa(params.Uid), str, strconv.Itoa(uid)) |
|
|
fmt.Println(">>>>>>>sql>>>>>>>", sql) |
|
|
fmt.Println(">>>>>>>sql>>>>>>>", sql) |
|
|
_, err = session.Exec(sql) |
|
|
_, err = session.Exec(sql) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|