package com.iformall.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.iformall.domain.po.WxCouponSendConfig;
import com.iformall.mapper.WxCouponSendConfigMapper;
import com.iformall.service.WxCouponSendConfigService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class WxCouponSendConfigServiceImpl implements WxCouponSendConfigService {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());
	
	@Autowired
    WxCouponSendConfigMapper wxCouponSendConfigMapper;


    @Override
    public PageInfo<WxCouponSendConfig> listAsPage(WxCouponSendConfig record, Integer pageIndex, Integer pageSize) {
        return PageHelper.startPage(pageIndex, pageSize).doSelectPageInfo(() -> wxCouponSendConfigMapper.findList(record));
    }


    @Override
    public void update(WxCouponSendConfig record) {
        wxCouponSendConfigMapper.updateByPrimaryKeySelective(record);
    }


    
    
    
    
    
    
}
