|
@@ -109,7 +109,13 @@ public class InspectionsService {
|
|
|
|
|
|
public List<TestReport> checkTestIndex(ReportIndexInquiry inquiry) {
|
|
|
inquiry.setReqEndTime(inquiry.getReqEndTime() + " 23:59:59");
|
|
|
- return dao.selectTestReportIndex(inquiry);
|
|
|
+ List<TestReport> list = dao.selectTestReportIndex(inquiry);
|
|
|
+ List<String> inpatientNos = inpatientService.getInpatientNoByPatientId(inquiry.getPatientId());
|
|
|
+ for (String inpatientNo : inpatientNos) {
|
|
|
+ inquiry.setPatientId(inpatientNo);
|
|
|
+ list.addAll(dao.selectTestReportIndex(inquiry));
|
|
|
+ }
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
public TestReport checkTestDetail(ReportDetailInquiry request) {
|