|
@@ -88,7 +88,7 @@ func DealUserGreenCoinDoubleChainIntegral(Db *xorm.Engine, uid int, amount, ordI |
|
|
|
|
|
|
|
|
//5、查询上级直推的所有下级用户的虚拟币金额是否有大于当前用户的 |
|
|
//5、查询上级直推的所有下级用户的虚拟币金额是否有大于当前用户的 |
|
|
var sonUserVirtualWallet model.UserVirtualAmount |
|
|
var sonUserVirtualWallet model.UserVirtualAmount |
|
|
isHas, err := session.Where(" coin_id = ? and amount >=?", greenCoinDoubleChain.Coin2, amount).In("uid", sonUserIds).Get(&sonUserVirtualWallet) |
|
|
|
|
|
|
|
|
isHas, err := session.Where(" coin_id = ? and amount >=?", greenCoinDoubleChain.Coin2, amount).And("uid != ?", uid).In("uid", sonUserIds).Get(&sonUserVirtualWallet) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|