|  | @@ -7,10 +7,12 @@ import com.ym.mec.biz.dal.dto.UpdateStudentFeeDto;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.Employee;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.*;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.MusicGroupStudentFeeService;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.service.StudentCourseHomeworkService;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.StudentManageService;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.StudentRegistrationService;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.controller.BaseController;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.exception.BizException;
 | 
	
		
			
				|  |  | +import com.ym.mec.common.page.QueryInfo;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.*;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.slf4j.Logger;
 | 
	
	
		
			
				|  | @@ -18,7 +20,6 @@ import org.slf4j.LoggerFactory;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.security.access.prepost.PreAuthorize;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  import java.util.Arrays;
 | 
	
		
			
				|  |  |  import java.util.Date;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
	
		
			
				|  | @@ -37,7 +38,10 @@ public class StudentManageController extends BaseController {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private MusicGroupStudentFeeService musicGroupStudentFeeService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  | +    private StudentCourseHomeworkService studentCourseHomeworkService;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  |      private EmployeeDao employeeDao;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      private final Logger LOGGER = LoggerFactory.getLogger(this.getClass());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "获取学生列表")
 | 
	
	
		
			
				|  | @@ -234,4 +238,32 @@ public class StudentManageController extends BaseController {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          return succeed(musicGroupStudentFeeService.findByUser(studentId,musicGroupId));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * 获取课程学员作业列表
 | 
	
		
			
				|  |  | +     * @return
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    @GetMapping(value = "/findStudentCourseHomeworks")
 | 
	
		
			
				|  |  | +    @PreAuthorize("@pcs.hasPermissions('studentManage/findStudentCourseHomeworks')")
 | 
	
		
			
				|  |  | +    public Object findStudentCourseHomeworks(QueryInfo queryInfo) {
 | 
	
		
			
				|  |  | +        SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  | +        if(sysUser == null){
 | 
	
		
			
				|  |  | +            throw new BizException("用户信息获取失败");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return succeed(studentCourseHomeworkService.findStudentCourseHomeworks(queryInfo));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * 获取课程学员作业列表
 | 
	
		
			
				|  |  | +     * @return
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    @GetMapping(value = "/sumStudentAttendance")
 | 
	
		
			
				|  |  | +    @PreAuthorize("@pcs.hasPermissions('studentManage/sumStudentAttendance')")
 | 
	
		
			
				|  |  | +    public Object sumStudentAttendance(Integer courseScheduleId) {
 | 
	
		
			
				|  |  | +        SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  | +        if(sysUser == null){
 | 
	
		
			
				|  |  | +            throw new BizException("用户信息获取失败");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return succeed(studentManageService.sumStudentAttendance(courseScheduleId));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 |