|
|
@ -2,6 +2,7 @@ package com.sztzjy.forex.trading_trading.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import com.sztzjy.forex.trading_trading.annotation.Permission;
|
|
|
|
import com.sztzjy.forex.trading_trading.annotation.Permission;
|
|
|
|
import com.sztzjy.forex.trading_trading.annotation.aspect.PermissionType;
|
|
|
|
import com.sztzjy.forex.trading_trading.annotation.aspect.PermissionType;
|
|
|
|
|
|
|
|
import com.sztzjy.forex.trading_trading.entity.Report;
|
|
|
|
import com.sztzjy.forex.trading_trading.entity.ReportWithBLOBs;
|
|
|
|
import com.sztzjy.forex.trading_trading.entity.ReportWithBLOBs;
|
|
|
|
import com.sztzjy.forex.trading_trading.service.ReportService;
|
|
|
|
import com.sztzjy.forex.trading_trading.service.ReportService;
|
|
|
|
import com.sztzjy.forex.trading_trading.util.ResultEntity;
|
|
|
|
import com.sztzjy.forex.trading_trading.util.ResultEntity;
|
|
|
@ -50,4 +51,12 @@ public class ReportController {
|
|
|
|
public void download(@RequestParam String id, HttpServletResponse response) {
|
|
|
|
public void download(@RequestParam String id, HttpServletResponse response) {
|
|
|
|
reportService.download(id, response);
|
|
|
|
reportService.download(id, response);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("教师端--获取学生上传的报告")
|
|
|
|
|
|
|
|
@GetMapping("getReportByMemberId")
|
|
|
|
|
|
|
|
public ResultEntity<Report> getReportByMemberId(@RequestParam String memberId
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
return new ResultEntity<>(reportService.findByMemberId(memberId));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|