实现用户信息修改页面session传值

This commit is contained in:
F嘉阳
2018-02-21 12:57:49 +08:00
parent 4335a6764e
commit b6def717f4
18 changed files with 407 additions and 100 deletions

View File

@@ -6,6 +6,7 @@ import com.fjy.spring.exception.UserException;
import com.fjy.spring.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@@ -31,6 +32,12 @@ public class DataController {
@Autowired
private HomeworkService homeworkService;
@Autowired
private FileService fileService;
@Autowired
private VUserfileService vUserfileService;
@GetMapping("/home/findAllHomework")
public List<VWorkDetail> findAllHomework(){
List<VWorkDetail> homeworks = workDetailService.findAll();
@@ -90,4 +97,15 @@ public class DataController {
new UserException(ResultEnum.EMPTY_DATA);
return null;
}
@GetMapping("/home/findStudentInCourseFile")
public List<VUserfile> findStudentInCourseFile(
@RequestParam(value = "Folder") String Folder,@RequestParam(value = "CourseName") String CourseName){
List<VUserfile> files = vUserfileService.findByWorkFolderAndCourseName(Folder,CourseName);
if (files!=null){
return files;
}
new UserException(ResultEnum.EMPTY_DATA);
return null;
}
}