Browse Source

update 小公排

tags/v3.6.0
DengBiao 2 years ago
parent
commit
3ec1b39001
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      rule/small_public_platoon_relate_commission.go

+ 1
- 1
rule/small_public_platoon_relate_commission.go View File

@@ -68,7 +68,7 @@ func AddSmallPublicPlatoonRelateCommission(engine *xorm.Engine, AddSmallPublicPl
} else { } else {
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, param.Uid)
sql := fmt.Sprintf("UPDATE `user_small_public_platoon_relation` SET %s=%s where %s=%s", str, param.Uid, str, strconv.Itoa(oldUid))
fmt.Println(">>>>>>>sql>>>>>>>", sql) fmt.Println(">>>>>>>sql>>>>>>>", sql)
_, err = engine.Exec(sql) _, err = engine.Exec(sql)
if err != nil { if err != nil {


Loading…
Cancel
Save