123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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.CustomerInfoFollowCyDto;
- 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<CustomerInfoFollow> selectByPageNumSize(CustomerInfoFollowDto customerInfoFollowDto) {
- PageHelper.startPage(customerInfoFollowDto.getPage(), customerInfoFollowDto.getLimit());
- return customerInfoFollowMapper.selectByPageNumSize(customerInfoFollowDto);
- }
- public void insertInfoFollowList(List<CustomerInfoFollowCyDto> list) {
- customerInfoFollowMapper.insertInfoFollowList(list);
- }
- }
|