package com.ssm.manage.dao.impl;

import com.ssm.core.impl.BaseDaoImpl;
import com.ssm.manage.dao.SsmCourseAccountDao;
import com.ssm.manage.entity.CourseAccount;
import com.ssm.manage.mapper.CourseAccountMapper;
import com.ssm.manage.query.CourseAccountRequest;
import com.ssm.manage.response.CourseAccountResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SsmCourseAccountDaoImpl extends BaseDaoImpl<CourseAccount> implements SsmCourseAccountDao {
    @Autowired
    private CourseAccountMapper mapper;

    @Override
    public CourseAccountMapper getMapper() {
        return mapper;
    }

    @Override
    public int insertBatch(List<CourseAccount> list) {
        return mapper.insertBatch(list);
    }

    @Override
    public List<CourseAccountResponse> memberCourse(CourseAccountRequest courseAccountRequest) {
        return mapper.memberCourse(courseAccountRequest);
    }

    @Override
    public List<CourseAccount> selectRefundList(CourseAccountRequest courseAccountRequest) {
        return mapper.selectRefundList(courseAccountRequest);
    }
    @Override
    public List<CourseAccount> selectMessage(CourseAccountRequest courseAccountRequest){
        return mapper.selectMessage(courseAccountRequest);
    }
}
