package com.ym.mec.web.controller;

import com.ym.mec.biz.dal.dto.CourseScheduleStudentListDto;
import com.ym.mec.biz.dal.enums.StudentAttendanceStatusEnum;
import com.ym.mec.biz.dal.page.CourseScheduleStudentPaymentQueryInfo;
import com.ym.mec.biz.dal.page.CourseScheduleTeacherSalaryQueryInfo;
import com.ym.mec.biz.service.CourseScheduleStudentPaymentService;
import com.ym.mec.common.controller.BaseController;
import com.ym.mec.common.entity.HttpResponseResult;
import com.ym.mec.common.page.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * @Author Joburgess
 * @Date 2020/11/17 0017
 */
@RestController
@RequestMapping("courseScheduleStudentPayment")
@Api(tags = "学生课程之缴费记录服务")
public class CourseScheduleStudentPaymentController extends BaseController {

    @Autowired
    private CourseScheduleStudentPaymentService courseScheduleStudentPaymentService;

    @ApiOperation(value = "分页查询指定课程上的学员")
    @GetMapping("/queryCourseStudentList")
    @PreAuthorize("@pcs.hasPermissions('courseScheduleStudentPayment/queryCourseStudentList')")
    public HttpResponseResult queryCourseStudentList(CourseScheduleStudentPaymentQueryInfo queryInfo) {
        return succeed(courseScheduleStudentPaymentService.queryCourseStudentList(queryInfo));
    }

}
