@@ -93,7 +93,7 @@ public interface KuaishouPromoterMapper {
KuaishouPromoter getOnlyPromoterInfoByUserId(@Param("promoterId") String promoterId, @Param("userId") Long userId);
- Integer getUserPromotersCount(@Param("userId") Long userId);
+ Integer getUserPromotersCount(@Param("userId") Long userId, @Param("mediaId") String mediaId);
Integer getBoundCount(@Param("userId") Long userId);
@@ -227,7 +227,7 @@ public class KuaishouPromoterServiceImpl implements IKuaishouPromoterService {
}
//查询 设置可绑定达人数
- Integer count = kuaishouPromoterMapper.getUserPromotersCount(promoter.getUserId());
+ Integer count = kuaishouPromoterMapper.getUserPromotersCount(promoter.getUserId(), promoter.getMediaId());
if (Check.isNotNull(count)) {
//查询 已绑定达人数
Integer hCount = kuaishouPromoterMapper.getBoundCount(promoter.getUserId());
@@ -498,6 +498,7 @@
select promoters_count
from user_promoters_count
where user_id = #{userId}
+ AND media_id = #{mediaId}
</select>
<select id="getBoundCount" resultType="java.lang.Integer">