|
@@ -2,11 +2,13 @@ package com.fs.medical.service.impl;
|
|
|
|
|
|
import com.fs.medical.domain.MedicalIndicator;
|
|
|
import com.fs.medical.mapper.MedicalIndicatorMapper;
|
|
|
+import com.fs.medical.mapper.ReportIndicatorResultMapper;
|
|
|
import com.fs.medical.param.MedicalIndicatorQueryDto;
|
|
|
import com.fs.medical.service.MedicalIndicatorService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -17,7 +19,8 @@ public class MedicalIndicatorServiceImpl implements MedicalIndicatorService {
|
|
|
|
|
|
@Autowired
|
|
|
private MedicalIndicatorMapper medicalIndicatorMapper;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private ReportIndicatorResultMapper reportIndicatorResultMapper;
|
|
|
@Override
|
|
|
public MedicalIndicator getById(Long indicatorId) {
|
|
|
return medicalIndicatorMapper.getById(indicatorId);
|
|
@@ -52,4 +55,10 @@ public class MedicalIndicatorServiceImpl implements MedicalIndicatorService {
|
|
|
public List<MedicalIndicator> selectPageList(MedicalIndicatorQueryDto queryDto) {
|
|
|
return medicalIndicatorMapper.selectPageList(queryDto);
|
|
|
}
|
|
|
-}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<MedicalIndicator> listAllEnabledByReportId(Long reportId) {
|
|
|
+ List<Long> indicatorIdList = reportIndicatorResultMapper.querySelectedIndicator(reportId);
|
|
|
+ return medicalIndicatorMapper.listAllEnabledFilterSelected(indicatorIdList);
|
|
|
+ }
|
|
|
+}
|