From 912430980454e45dee69b6e1646e3a48c40ae22e Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 8 Sep 2022 12:14:13 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=8C=BA=E5=9D=97=E6=98=9F=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/block_star_chain_settlement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/block_star_chain_settlement.go b/rule/block_star_chain_settlement.go index 2028823..999a2b3 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -217,7 +217,7 @@ func statisticsAndDistributeCoinForStatic(session *xorm.Session, userIds []int, sumStaticValue := decimal.NewFromFloat(sumStatic) //2、查询出所有拥有静态贡献值的用户 - err = session.Table("user_virtual_amount").In("uid", userIds).Where("coin_id =?", chain.Coin2).And("amount > 0").Find(&userVirtualAmounts) + err = session.Table("user_virtual_amount").NotIn("uid", userIds).Where("coin_id =?", chain.Coin2).And("amount > 0").Find(&userVirtualAmounts) if err != nil { return err, unassignedTotalCoinValue } @@ -296,7 +296,7 @@ func statisticsAndDistributeCoinForDynamic(session *xorm.Session, userIds []int, sumStaticValue := decimal.NewFromFloat(sumStatic) //2、查询出所有拥有静态贡献值的用户 - err = session.Table("user_virtual_amount").In("uid", userIds).Where("coin_id =?", chain.Coin2).And("amount > 0").Find(&userVirtualAmounts) + err = session.Table("user_virtual_amount").NotIn("uid", userIds).Where("coin_id =?", chain.Coin2).And("amount > 0").Find(&userVirtualAmounts) if err != nil { return err, unassignedTotalCoinValue }