| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.mzl.flower.config.exception.ValidationException; |
| | | import com.mzl.flower.config.security.SecurityUtils; |
| | | import com.mzl.flower.dto.request.customer.CreateFollowDTO; |
| | | import com.mzl.flower.dto.response.customer.FollowDTO; |
| | | import com.mzl.flower.entity.customer.Follow; |
| | | import com.mzl.flower.mapper.customer.FollowMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | .eq(Follow::getSupplierId, supplierId)); |
| | | return count; |
| | | } |
| | | |
| | | |
| | | public Integer getStatisFansCount(Long supplierId) { |
| | | |
| | | Integer count = followMapper.getStatisFansCount(supplierId); |
| | | |
| | | return count; |
| | | } |
| | | } |