|
|
@@ -270,12 +270,12 @@ func ActivityCoinAutoExchangeGreenEnergy(engine *xorm.Engine, masterId string) ( |
|
|
|
|
|
|
|
//3、当前 "个人活跃积分"可以自动兑换的用户数据 && "团队活跃积分"可以自动兑换的用户数据 |
|
|
|
var list1, list2 []model.UserVirtualAmount |
|
|
|
err = engine.Where("coin_id = ?", oneCirclesPublicPlatoonBasicSetting.PersonActivePointsCoinId).And("amount >=?", autoExchangeNumsByPerson).Limit(200, 0).Find(&list1) |
|
|
|
err = engine.Where("coin_id = ?", oneCirclesPublicPlatoonBasicSetting.PersonActivePointsCoinId).And("amount >=?", autoExchangeNumsByPerson).Limit(1000, 0).Find(&list1) |
|
|
|
if err != nil { |
|
|
|
fmt.Println("err:::::1111", err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
err = engine.Where("coin_id = ?", oneCirclesPublicPlatoonBasicSetting.TeamActivePointsCoinId).And("amount >=?", autoExchangeNumsByTeam).Limit(200, 0).Find(&list2) |
|
|
|
err = engine.Where("coin_id = ?", oneCirclesPublicPlatoonBasicSetting.TeamActivePointsCoinId).And("amount >=?", autoExchangeNumsByTeam).Limit(1000, 0).Find(&list2) |
|
|
|
if err != nil { |
|
|
|
fmt.Println("err:::::2222", err.Error()) |
|
|
|
return |
|
|
|