CustomerInfoFollowService.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package com.ygj.yuemum.service.customer;
  2. import com.github.pagehelper.PageHelper;
  3. import com.ygj.yuemum.dao.customer.CustomerInfoFollowMapper;
  4. import com.ygj.yuemum.domain.customer.CustomerInfoFollow;
  5. import com.ygj.yuemum.domain.customer.dto.CustomerInfoFollowDto;
  6. import org.springframework.stereotype.Service;
  7. import javax.annotation.Resource;
  8. import java.util.List;
  9. /**
  10. * customer_info_follow
  11. * @author zrz
  12. * @date 2020/06/19
  13. */
  14. @Service
  15. public class CustomerInfoFollowService {
  16. @Resource
  17. private CustomerInfoFollowMapper customerInfoFollowMapper;
  18. public int insert(CustomerInfoFollow customerInfoFollow) {
  19. return customerInfoFollowMapper.insert(customerInfoFollow);
  20. }
  21. public int delete(int id) {
  22. return customerInfoFollowMapper.delete(id);
  23. }
  24. public int update(CustomerInfoFollow customerInfoFollow) {
  25. return customerInfoFollowMapper.update(customerInfoFollow);
  26. }
  27. public CustomerInfoFollow load(int id) {
  28. return customerInfoFollowMapper.load(id);
  29. }
  30. public List<CustomerInfoFollow> selectByPageNumSize(CustomerInfoFollowDto customerInfoFollowDto) {
  31. PageHelper.startPage(customerInfoFollowDto.getPage(), customerInfoFollowDto.getLimit());
  32. return customerInfoFollowMapper.selectByPageNumSize(customerInfoFollowDto);
  33. }
  34. }