正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -67,7 +67,8 @@ func (dao BusinessBonusDao) SearchBusinessBonus(partnerId int64, partnerNameMatc | @@ -67,7 +67,8 @@ func (dao BusinessBonusDao) SearchBusinessBonus(partnerId int64, partnerNameMatc | ||
67 | 67 | ||
68 | func (dao BusinessBonusDao) CountBusinessBonus(partnerId int64, partnerNameMatch string, | 68 | func (dao BusinessBonusDao) CountBusinessBonus(partnerId int64, partnerNameMatch string, |
69 | companyId int64, limit int, offset int) (int, error) { | 69 | companyId int64, limit int, offset int) (int, error) { |
70 | - sql := `SELECT count(*) | 70 | + sql := `SELECT count(*) |
71 | + FROM business_bonus | ||
71 | JOIN partner_info ON business_bonus.partner_info_id=partner_info.id | 72 | JOIN partner_info ON business_bonus.partner_info_id=partner_info.id |
72 | WHERE business_bonus.is_disable=0 AND business_bonus.company_id = ? ` | 73 | WHERE business_bonus.is_disable=0 AND business_bonus.company_id = ? ` |
73 | partnerCondition := []string{} | 74 | partnerCondition := []string{} |
-
请 注册 或 登录 后发表评论