|
@@ -4,12 +4,11 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.diagbot.dto.ModuleMappingDTO;
|
|
|
import com.diagbot.dto.QcAllInputcasesDTO;
|
|
|
-import com.diagbot.dto.QcInputcasesAllDTO;
|
|
|
import com.diagbot.dto.QcInputcasesMappingDTO;
|
|
|
import com.diagbot.entity.CasesNumber;
|
|
|
import com.diagbot.entity.Mode;
|
|
|
import com.diagbot.entity.ModelMapping;
|
|
|
-import com.diagbot.entity.QcHospitalInfo;
|
|
|
+import com.diagbot.entity.BasHospitalInfo;
|
|
|
import com.diagbot.entity.QcInputcases;
|
|
|
import com.diagbot.entity.QcInputcasesMapping;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
@@ -33,7 +32,6 @@ import com.diagbot.vo.QcInputcasesSaveVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import javax.annotation.Resource;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
@@ -59,7 +57,7 @@ public class QcInputcasesFacade extends QcInputcasesServiceImpl {
|
|
|
@Autowired
|
|
|
ModeService modeService;
|
|
|
@Autowired
|
|
|
- QcHospitalInfoFacade qcHospitalInfoFacade;
|
|
|
+ BasHospitalInfoFacade qcHospitalInfoFacade;
|
|
|
|
|
|
/* public List<QcInputcasesAllDTO> getInputcasesAlls(Long textId) {
|
|
|
//查出所有病例
|
|
@@ -228,10 +226,10 @@ public class QcInputcasesFacade extends QcInputcasesServiceImpl {
|
|
|
public List<QcAllInputcasesDTO> getAllInputcases(QcInputcasesAllVO qcInputcasesAllVO){
|
|
|
List<Long> hospitalIds = new ArrayList<>();
|
|
|
if (StringUtil.isNotEmpty(qcInputcasesAllVO.getHospitalName())){
|
|
|
- QueryWrapper<QcHospitalInfo> qcHospitalInfoQueryWrapper = new QueryWrapper<>();
|
|
|
+ QueryWrapper<BasHospitalInfo> qcHospitalInfoQueryWrapper = new QueryWrapper<>();
|
|
|
qcHospitalInfoQueryWrapper.eq("is_deleted",IsDeleteEnum.N.getKey())
|
|
|
.like("name",qcInputcasesAllVO.getHospitalName());
|
|
|
- hospitalIds = qcHospitalInfoFacade.list(qcHospitalInfoQueryWrapper).stream().map(QcHospitalInfo::getId).collect(Collectors.toList());
|
|
|
+ hospitalIds = qcHospitalInfoFacade.list(qcHospitalInfoQueryWrapper).stream().map(BasHospitalInfo::getId).collect(Collectors.toList());
|
|
|
}
|
|
|
//病例
|
|
|
QueryWrapper<CasesNumber> casesNumberQueryWrapper = new QueryWrapper<>();
|
|
@@ -251,11 +249,11 @@ public class QcInputcasesFacade extends QcInputcasesServiceImpl {
|
|
|
List<CasesNumber> casesNumbers = casesNumberService.list(casesNumberQueryWrapper);
|
|
|
//将病例内容放入出参
|
|
|
List<QcAllInputcasesDTO> res = new ArrayList<>();
|
|
|
- QueryWrapper<QcHospitalInfo> hospitalInfoQueryWrapper = new QueryWrapper<>();
|
|
|
+ QueryWrapper<BasHospitalInfo> hospitalInfoQueryWrapper = new QueryWrapper<>();
|
|
|
hospitalInfoQueryWrapper.eq("is_deleted",IsDeleteEnum.N.getKey());
|
|
|
- List<QcHospitalInfo> qcHospitalInfos = qcHospitalInfoFacade.list();
|
|
|
+ List<BasHospitalInfo> qcHospitalInfos = qcHospitalInfoFacade.list();
|
|
|
Map<Long,String> hospitalMap = new HashMap<>();
|
|
|
- hospitalMap = qcHospitalInfos.stream().collect(Collectors.toMap(QcHospitalInfo::getId,hospitalInfo -> hospitalInfo.getName()));
|
|
|
+ hospitalMap = qcHospitalInfos.stream().collect(Collectors.toMap(BasHospitalInfo::getId, hospitalInfo -> hospitalInfo.getName()));
|
|
|
res = BeanUtil.listCopyTo(casesNumbers,QcAllInputcasesDTO.class);
|
|
|
for (QcAllInputcasesDTO qcAllInputcasesDTO : res) {
|
|
|
qcAllInputcasesDTO.setHospitalName(hospitalMap.get(Long.parseLong(qcAllInputcasesDTO.getHospitalId())));
|
|
@@ -286,11 +284,11 @@ public class QcInputcasesFacade extends QcInputcasesServiceImpl {
|
|
|
modelQueryWrapper.eq("is_deleted",IsDeleteEnum.N.getKey());
|
|
|
List<Mode> modes = modeService.list();
|
|
|
//病例列表
|
|
|
- QueryWrapper<QcHospitalInfo> hospitalInfoQueryWrapper = new QueryWrapper<>();
|
|
|
+ QueryWrapper<BasHospitalInfo> hospitalInfoQueryWrapper = new QueryWrapper<>();
|
|
|
hospitalInfoQueryWrapper.eq("is_deleted",IsDeleteEnum.N.getKey());
|
|
|
- List<QcHospitalInfo> qcHospitalInfos = qcHospitalInfoFacade.list();
|
|
|
+ List<BasHospitalInfo> qcHospitalInfos = qcHospitalInfoFacade.list();
|
|
|
Map<Long,String> hospitalMap = new HashMap<>();
|
|
|
- hospitalMap = qcHospitalInfos.stream().collect(Collectors.toMap(QcHospitalInfo::getId,hospitalInfo -> hospitalInfo.getName()));
|
|
|
+ hospitalMap = qcHospitalInfos.stream().collect(Collectors.toMap(BasHospitalInfo::getId, hospitalInfo -> hospitalInfo.getName()));
|
|
|
List<ModuleMappingDTO> moduleMappingDTOS = new ArrayList<>();
|
|
|
ModuleMappingDTO moduleMappingDTO = new ModuleMappingDTO();
|
|
|
List<String> modeList = new ArrayList();
|