作者 唐旭辉

bug

修复
@@ -98,7 +98,7 @@ func (dao BusinessBonusDao) CountBusinessBonus(partnerId int64, partnerNameMatch @@ -98,7 +98,7 @@ func (dao BusinessBonusDao) CountBusinessBonus(partnerId int64, partnerNameMatch
98 func (dao BusinessBonusDao) ExistBusinessBonus(userId int64) (bool, error) { 98 func (dao BusinessBonusDao) ExistBusinessBonus(userId int64) (bool, error) {
99 tx := dao.transactionContext.PgTx 99 tx := dao.transactionContext.PgTx
100 ok, err := tx.Model(&models.BusinessBonus{}). 100 ok, err := tx.Model(&models.BusinessBonus{}).
101 - Where("user_id=?", userId). 101 + Where("partner_info_id=?", userId).
102 Exists() 102 Exists()
103 return ok, err 103 return ok, err
104 } 104 }