CustomerInfoFollowService.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.CustomerInfoFollowCyDto;
  6. import com.ygj.yuemum.domain.customer.dto.CustomerInfoFollowDto;
  7. import org.springframework.stereotype.Service;
  8. import javax.annotation.Resource;
  9. import java.util.List;
  10. /**
  11. * customer_info_follow
  12. * @author zrz
  13. * @date 2020/06/19
  14. */
  15. @Service
  16. public class CustomerInfoFollowService {
  17. @Resource
  18. private CustomerInfoFollowMapper customerInfoFollowMapper;
  19. public int insert(CustomerInfoFollow customerInfoFollow) {
  20. return customerInfoFollowMapper.insert(customerInfoFollow);
  21. }
  22. public int delete(int id) {
  23. return customerInfoFollowMapper.delete(id);
  24. }
  25. public int update(CustomerInfoFollow customerInfoFollow) {
  26. return customerInfoFollowMapper.update(customerInfoFollow);
  27. }
  28. public CustomerInfoFollow load(int id) {
  29. return customerInfoFollowMapper.load(id);
  30. }
  31. public List<CustomerInfoFollow> selectByPageNumSize(CustomerInfoFollowDto customerInfoFollowDto) {
  32. PageHelper.startPage(customerInfoFollowDto.getPage(), customerInfoFollowDto.getLimit());
  33. return customerInfoFollowMapper.selectByPageNumSize(customerInfoFollowDto);
  34. }
  35. public void insertInfoFollowList(List<CustomerInfoFollowCyDto> list) {
  36. customerInfoFollowMapper.insertInfoFollowList(list);
  37. }
  38. }