|
|
@ -30,6 +30,7 @@ public class ProjectRecordController implements ProjectRcordControllerApi { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 服务端实验报告 |
|
|
|
* 服务端实验报告 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
@GetMapping("/schoolRecord") |
|
|
|
@GetMapping("/schoolRecord") |
|
|
|
public R list(@RequestParam Integer page, @RequestParam Integer size, @RequestParam Integer month,@RequestParam String startTime,@RequestParam String endTime, |
|
|
|
public R list(@RequestParam Integer page, @RequestParam Integer size, @RequestParam Integer month,@RequestParam String startTime,@RequestParam String endTime, |
|
|
|
@RequestParam Integer recordState,@RequestParam String condition ){ |
|
|
|
@RequestParam Integer recordState,@RequestParam String condition ){ |
|
|
@ -51,12 +52,13 @@ public class ProjectRecordController implements ProjectRcordControllerApi { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 用户实验记录 |
|
|
|
* 用户端虚拟仿真实验记录 |
|
|
|
* @param page |
|
|
|
* @param page |
|
|
|
* @param size |
|
|
|
* @param size |
|
|
|
* @param userid |
|
|
|
* @param userid |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
@GetMapping("/user/record") |
|
|
|
@GetMapping("/user/record") |
|
|
|
public R queryUserRecord(@RequestParam Integer page,@RequestParam Integer size,@RequestParam Integer userid){ |
|
|
|
public R queryUserRecord(@RequestParam Integer page,@RequestParam Integer size,@RequestParam Integer userid){ |
|
|
|
PageUtils page1 = projectRecordService.queryPage(page,size,userid); |
|
|
|
PageUtils page1 = projectRecordService.queryPage(page,size,userid); |
|
|
@ -64,11 +66,27 @@ public class ProjectRecordController implements ProjectRcordControllerApi { |
|
|
|
return R.ok().put("data", page1); |
|
|
|
return R.ok().put("data", page1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 用户端教学实验记录 |
|
|
|
|
|
|
|
* @param page |
|
|
|
|
|
|
|
* @param size |
|
|
|
|
|
|
|
* @param userid |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
@GetMapping("/user/experimentRecord") |
|
|
|
|
|
|
|
public R getUserExperimentscore(@RequestParam Integer page,@RequestParam Integer size,@RequestParam Integer userid){ |
|
|
|
|
|
|
|
PageUtils page1 = projectRecordService.queryExperimentPage(page,size,userid); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return R.ok().put("data", page1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 个人实验预览 |
|
|
|
* 个人实验预览 |
|
|
|
* @param userid |
|
|
|
* @param userid |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
@GetMapping("/user/score/{userId}") |
|
|
|
@GetMapping("/user/score/{userId}") |
|
|
|
public R getUserScore(@PathVariable("userId") Integer userid){ |
|
|
|
public R getUserScore(@PathVariable("userId") Integer userid){ |
|
|
|
ProjectRecordVo projectRecord = projectRecordService.queryUserScore(userid); |
|
|
|
ProjectRecordVo projectRecord = projectRecordService.queryUserScore(userid); |
|
|
@ -76,12 +94,14 @@ public class ProjectRecordController implements ProjectRcordControllerApi { |
|
|
|
return R.ok().put("data", projectRecord); |
|
|
|
return R.ok().put("data", projectRecord); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 导出个人项目记录 |
|
|
|
* 导出个人项目记录 |
|
|
|
* @param response |
|
|
|
* @param response |
|
|
|
* @param userId |
|
|
|
* @param userId |
|
|
|
* @throws Exception |
|
|
|
* @throws Exception |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
@GetMapping("/user/exportProjectRecord") |
|
|
|
@GetMapping("/user/exportProjectRecord") |
|
|
|
public void exportProjectRecord(HttpServletResponse response,@RequestParam("userId") Integer userId)throws Exception{ |
|
|
|
public void exportProjectRecord(HttpServletResponse response,@RequestParam("userId") Integer userId)throws Exception{ |
|
|
|
projectRecordService.exportProjectRecord(response,userId); |
|
|
|
projectRecordService.exportProjectRecord(response,userId); |
|
|
@ -110,6 +130,7 @@ public class ProjectRecordController implements ProjectRcordControllerApi { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 修改实验分数 |
|
|
|
* 修改实验分数 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
@PutMapping("/update") |
|
|
|
@PutMapping("/update") |
|
|
|
public R update(@RequestBody ProjectRecordEntity projectRecord){ |
|
|
|
public R update(@RequestBody ProjectRecordEntity projectRecord){ |
|
|
|
boolean result = projectRecordService.updateUserRecord(projectRecord); |
|
|
|
boolean result = projectRecordService.updateUserRecord(projectRecord); |
|
|
@ -120,6 +141,7 @@ public class ProjectRecordController implements ProjectRcordControllerApi { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 删除实验报告 |
|
|
|
* 删除实验报告 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
@DeleteMapping("/delete") |
|
|
|
@DeleteMapping("/delete") |
|
|
|
public R delete(@RequestBody Integer[] recordids){ |
|
|
|
public R delete(@RequestBody Integer[] recordids){ |
|
|
|
projectRecordService.removeByIds(Arrays.asList(recordids)); |
|
|
|
projectRecordService.removeByIds(Arrays.asList(recordids)); |
|
|
|