|
@@ -3,6 +3,9 @@ package com.ruoyi.web.work.service.impl;
|
|
|
import java.util.List;
|
|
|
|
|
|
import com.ruoyi.web.work.domain.Request;
|
|
|
+import com.ruoyi.web.work.domain.dto.ReportDto;
|
|
|
+import com.ruoyi.web.work.mapper.RequestMapper;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.ruoyi.web.work.mapper.ReportMapper;
|
|
@@ -19,6 +22,9 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
@Autowired
|
|
|
private ReportMapper reportMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private RequestMapper requestMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public List<Report> selectList(Report report) {
|
|
|
return reportMapper.selectList(report);
|
|
@@ -30,8 +36,15 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Report getOrcReportByObcId(String orcId) {
|
|
|
- return reportMapper.selectOrcReportByObcId(orcId);
|
|
|
+ public ReportDto getOrcReportByObcId(String orcId) {
|
|
|
+ ReportDto dto = new ReportDto();
|
|
|
+ //根据orcId查得到检查项目名称
|
|
|
+ Request request = requestMapper.selectOrcReportByOrcId(orcId);
|
|
|
+ String medTechProName = request.getMedTechProName();
|
|
|
+ Report report = reportMapper.selectOrcReportByObcId(orcId);
|
|
|
+ BeanUtils.copyProperties(report,dto);
|
|
|
+ dto.setMedTechProName(medTechProName);
|
|
|
+ return dto;
|
|
|
}
|
|
|
|
|
|
|