Browse Source

add reverse:for v1.8.8 公排修改加固定字段

tags/v1.8.8
huangjiajun 2 years ago
parent
commit
3a358a6c3b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      rule/public_platoon_relate_commission.go

+ 2
- 2
rule/public_platoon_relate_commission.go View File

@@ -48,7 +48,7 @@ func AddPublicPlatoonRelateCommission(engine *xorm.Engine, AddPublicPlatoonRelat
uniqueIdentifier := strings.Split(userPublicPlatoonRelation.UniqueIdentifier, "-")
uniqueIdentifier[1] = param.Uid
userPublicPlatoonRelation.UniqueIdentifier = strings.Join(uniqueIdentifier, "-")
updateAffected, err := db.UserPublicPlatoonRelationUpdate(engine.NewSession(), userPublicPlatoonRelation.Id, userPublicPlatoonRelation)
updateAffected, err := db.UserPublicPlatoonRelationUpdate(engine.NewSession(), userPublicPlatoonRelation.Id, userPublicPlatoonRelation, "uid", "unique_identifier")
if err != nil {
return nil, err
}
@@ -387,7 +387,7 @@ func DealCommonWealthPunish(engine *xorm.Engine, uid int, reason string) (err er
_ = session.Rollback()
}
params.Uid = -1
updateAffected, err := db.UserPublicPlatoonRelationUpdate(session, params.Id, params)
updateAffected, err := db.UserPublicPlatoonRelationUpdate(session, params.Id, params, "uid")
if err != nil {
_ = session.Rollback()
return


Loading…
Cancel
Save