From 75f59c730b3f427c8b4d305bc0ab61dce9c3f2c7 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 8 Sep 2022 11:45:31 +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 a91c762..2028823 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -210,7 +210,7 @@ func statisticsAndDistributeCoinForStatic(session *xorm.Session, userIds []int, var userVirtualAmount model.UserVirtualAmount var userVirtualAmounts []model.UserVirtualAmount //1、统计出静态区总贡献值 - sumStatic, err := session.Table("user_virtual_amount").In("uid", userIds).Where("coin_id =?", chain.Coin2).Sum(&userVirtualAmount, "amount") + sumStatic, err := session.Table("user_virtual_amount").NotIn("uid", userIds).Where("coin_id =?", chain.Coin2).Sum(&userVirtualAmount, "amount") if err != nil { return err, unassignedTotalCoinValue } @@ -289,7 +289,7 @@ func statisticsAndDistributeCoinForDynamic(session *xorm.Session, userIds []int, var userVirtualAmounts []model.UserVirtualAmount //1、统计出动态区总贡献值 - sumStatic, err := session.Table("user_virtual_amount").In("uid", userIds).Where("coin_id =?", chain.Coin3).Sum(&userVirtualAmount, "amount") + sumStatic, err := session.Table("user_virtual_amount").NotIn("uid", userIds).Where("coin_id =?", chain.Coin3).Sum(&userVirtualAmount, "amount") if err != nil { return err, unassignedTotalCoinValue }