|
|
@@ -478,6 +478,7 @@ func SmallDealCommonWealthReward(engine *xorm.Engine, uid int, isCompleteReward |
|
|
|
Amount: param.Amount, |
|
|
|
Title: "结算共富奖励", |
|
|
|
Date: now.AddDate(0, 0, 30).Format("2006-01-02"), |
|
|
|
Type: 2, |
|
|
|
CreateAt: now, |
|
|
|
UpdateAt: now, |
|
|
|
} |
|
|
@@ -563,7 +564,7 @@ func SmallDealCommonWealthPunish(engine *xorm.Engine, uid int, reason string) (e |
|
|
|
} |
|
|
|
|
|
|
|
//2、查询出 `user_public_platoon_relation` 中相关记录 && 将该记录的uid置为 -1 |
|
|
|
params, err := db.UserPublicPlatoonRelationGetOneByParams(engine, map[string]interface{}{ |
|
|
|
params, err := db.UserSmallPublicPlatoonRelationGetOneByParams(engine, map[string]interface{}{ |
|
|
|
"key": "uid", |
|
|
|
"value": uid, |
|
|
|
}) |
|
|
@@ -582,7 +583,7 @@ func SmallDealCommonWealthPunish(engine *xorm.Engine, uid int, reason string) (e |
|
|
|
params.Uid = -2 |
|
|
|
} |
|
|
|
|
|
|
|
updateAffected, err := db.UserPublicPlatoonRelationUpdate(session, params.Id, params) |
|
|
|
updateAffected, err := db.UserSmallPublicPlatoonRelationUpdate(session, params.Id, params) |
|
|
|
if err != nil { |
|
|
|
_ = session.Rollback() |
|
|
|
return |
|
|
@@ -609,6 +610,7 @@ func SmallDealCommonWealthPunish(engine *xorm.Engine, uid int, reason string) (e |
|
|
|
Date: now.AddDate(0, 0, 30).Format("2006-01-02"), |
|
|
|
Title: "共富收益-系统处罚记录", |
|
|
|
Reason: reason, |
|
|
|
Type: 2, |
|
|
|
CreateAt: now, |
|
|
|
UpdateAt: now, |
|
|
|
}) |
|
|
|