package com.goafanti.customer.service.impl;

import com.goafanti.common.dao.UserReceiveLogMapper;
import com.goafanti.common.model.UserReceiveLog;
import com.goafanti.common.utils.BeanUtilsExt;
import com.goafanti.core.mybatis.BaseMybatisDao;
import com.goafanti.core.mybatis.page.Pagination;
import com.goafanti.customer.service.UserReceiveLogService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class UserReceiveLogServiceImpl extends BaseMybatisDao<UserReceiveLogMapper> implements UserReceiveLogService {
    @Override
    public Object list(UserReceiveLog in, Integer pageNo, Integer pageSize) {
        Map<String, Object> map = BeanUtilsExt.pushMap(in);
        Pagination<?> page = findPage("findUserReceiveLogList", "findUserReceiveLogCount", map, pageNo, pageSize);
        return page;
    }
}
