package com.yunzhi.marketing.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunzhi.marketing.entity.TaCheckin;
import com.yunzhi.marketing.mapper.TaCheckinMapper;
import com.yunzhi.marketing.service.ITaCheckinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * <p>
 *   服务实现类
 * </p>
 *
 * @author jobob
 * @since 2019-07-24
 */
@Service
public class TaCheckinServiceImpl extends ServiceImpl<TaCheckinMapper, TaCheckin> implements ITaCheckinService {
    @Autowired
    TaCheckinMapper taCheckinMapper;

    @Override
    public IPage<TaCheckin> getCheckinCustomerList(IPage<TaCheckin> pg, String activity, Integer status, LocalDateTime dayBegin){
        return taCheckinMapper.getCheckinCustomerList(pg, activity, status, dayBegin);
    }

    @Override
    public Integer isCustomerChecked(String activity,String personId){
        return taCheckinMapper.isCustomerChecked(activity,personId);
    }

}
