|
|
|
@ -172,11 +172,11 @@ public class ReportService {
|
|
|
|
|
fileUtil.download(response, report.getFileName(), report.getFilePath());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Report findByMemberId(String memberId) {
|
|
|
|
|
public ReportWithBLOBs findByMemberId(String memberId) {
|
|
|
|
|
ReportExample reportExample = new ReportExample();
|
|
|
|
|
ReportExample.Criteria criteria = reportExample.createCriteria();
|
|
|
|
|
criteria.andMemberIdEqualTo(memberId);
|
|
|
|
|
List<Report> reports = reportsMapper.selectByExample(reportExample);
|
|
|
|
|
List<ReportWithBLOBs> reports = reportsMapper.selectByExampleWithBLOBs(reportExample);
|
|
|
|
|
if (reports != null && reports.size() > 0) {
|
|
|
|
|
return reports.get(0);
|
|
|
|
|
}
|
|
|
|
|