DengBiao 9 месяцев назад
Родитель
Сommit
5e7ef75073
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      rule/one_circles/one_circles_activity_coin_auto_exchange_green_energy.go

+ 2
- 2
rule/one_circles/one_circles_activity_coin_auto_exchange_green_energy.go Просмотреть файл

@@ -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


Загрузка…
Отмена
Сохранить