package com.ygj.yuemum.service.customer; import com.github.pagehelper.PageHelper; import com.ygj.yuemum.dao.customer.CustomerInfoFollowMapper; import com.ygj.yuemum.domain.customer.CustomerInfoFollow; import com.ygj.yuemum.domain.customer.dto.CustomerInfoFollowDto; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; /** * customer_info_follow * @author zrz * @date 2020/06/19 */ @Service public class CustomerInfoFollowService { @Resource private CustomerInfoFollowMapper customerInfoFollowMapper; public int insert(CustomerInfoFollow customerInfoFollow) { return customerInfoFollowMapper.insert(customerInfoFollow); } public int delete(int id) { return customerInfoFollowMapper.delete(id); } public int update(CustomerInfoFollow customerInfoFollow) { return customerInfoFollowMapper.update(customerInfoFollow); } public CustomerInfoFollow load(int id) { return customerInfoFollowMapper.load(id); } public List selectByPageNumSize(CustomerInfoFollowDto customerInfoFollowDto) { PageHelper.startPage(customerInfoFollowDto.getPage(), customerInfoFollowDto.getLimit()); return customerInfoFollowMapper.selectByPageNumSize(customerInfoFollowDto); } }