正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论