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