|  | @@ -5,18 +5,24 @@ import com.ym.mec.auth.api.entity.SysUser;
 | 
											
												
													
														|  |  import com.ym.mec.biz.dal.dao.EmployeeDao;
 |  |  import com.ym.mec.biz.dal.dao.EmployeeDao;
 | 
											
												
													
														|  |  import com.ym.mec.biz.dal.entity.Employee;
 |  |  import com.ym.mec.biz.dal.entity.Employee;
 | 
											
												
													
														|  |  import com.ym.mec.biz.dal.page.CourseHomeWorkTemplateQueryInfo;
 |  |  import com.ym.mec.biz.dal.page.CourseHomeWorkTemplateQueryInfo;
 | 
											
												
													
														|  | 
 |  | +import com.ym.mec.biz.dal.page.CourseHomeworkQueryInfo;
 | 
											
												
													
														|  |  import com.ym.mec.biz.service.CourseHomeworkService;
 |  |  import com.ym.mec.biz.service.CourseHomeworkService;
 | 
											
												
													
														|  | 
 |  | +import com.ym.mec.biz.service.StudentCourseHomeworkService;
 | 
											
												
													
														|  |  import com.ym.mec.common.controller.BaseController;
 |  |  import com.ym.mec.common.controller.BaseController;
 | 
											
												
													
														|  | 
 |  | +import com.ym.mec.common.entity.HttpResponseResult;
 | 
											
												
													
														|  |  import io.swagger.annotations.Api;
 |  |  import io.swagger.annotations.Api;
 | 
											
												
													
														|  |  import io.swagger.annotations.ApiOperation;
 |  |  import io.swagger.annotations.ApiOperation;
 | 
											
												
													
														|  |  import org.apache.commons.lang3.StringUtils;
 |  |  import org.apache.commons.lang3.StringUtils;
 | 
											
												
													
														|  |  import org.springframework.beans.factory.annotation.Autowired;
 |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.http.HttpStatus;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.security.access.prepost.PreAuthorize;
 | 
											
												
													
														|  |  import org.springframework.web.bind.annotation.GetMapping;
 |  |  import org.springframework.web.bind.annotation.GetMapping;
 | 
											
												
													
														|  |  import org.springframework.web.bind.annotation.RequestMapping;
 |  |  import org.springframework.web.bind.annotation.RequestMapping;
 | 
											
												
													
														|  |  import org.springframework.web.bind.annotation.RestController;
 |  |  import org.springframework.web.bind.annotation.RestController;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  import java.util.Arrays;
 |  |  import java.util.Arrays;
 | 
											
												
													
														|  |  import java.util.List;
 |  |  import java.util.List;
 | 
											
												
													
														|  | 
 |  | +import java.util.Objects;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  /**
 |  |  /**
 | 
											
												
													
														|  |   * @Author zouxuan
 |  |   * @Author zouxuan
 | 
											
										
											
												
													
														|  | @@ -33,6 +39,8 @@ public class WebCourseHomeworkController extends BaseController {
 | 
											
												
													
														|  |      private SysUserFeignService sysUserFeignService;
 |  |      private SysUserFeignService sysUserFeignService;
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      private EmployeeDao employeeDao;
 |  |      private EmployeeDao employeeDao;
 | 
											
												
													
														|  | 
 |  | +    @Autowired
 | 
											
												
													
														|  | 
 |  | +    private StudentCourseHomeworkService studentCourseHomeworkService;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @ApiOperation(value = "分页查询作业列表")
 |  |      @ApiOperation(value = "分页查询作业列表")
 | 
											
												
													
														|  |      @GetMapping(value = "/queryHomePage")
 |  |      @GetMapping(value = "/queryHomePage")
 | 
											
										
											
												
													
														|  | @@ -57,4 +65,12 @@ public class WebCourseHomeworkController extends BaseController {
 | 
											
												
													
														|  |          return succeed(courseHomeworkService.queryHomePage(queryInfo));
 |  |          return succeed(courseHomeworkService.queryHomePage(queryInfo));
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    @ApiOperation(value = "获取学生作业记录")
 | 
											
												
													
														|  | 
 |  | +    @GetMapping(value = "/findStudentHomeworkRecord")
 | 
											
												
													
														|  | 
 |  | +    @PreAuthorize("@pcs.hasPermissions('webCurseHomework/findStudentHomeworkRecord')")
 | 
											
												
													
														|  | 
 |  | +    public HttpResponseResult findStudentHomeworkRecord(CourseHomeworkQueryInfo queryInfo){
 | 
											
												
													
														|  | 
 |  | +        return succeed(studentCourseHomeworkService.findStudentHomeworkRecord(queryInfo));
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  }
 |  |  }
 |