|
@@ -81,11 +81,11 @@ public class ModuleFacade extends ModuleInfoServiceImpl {
|
|
list = getModuleInfoByDisType(0, 0L);
|
|
list = getModuleInfoByDisType(0, 0L);
|
|
isPacs = true;
|
|
isPacs = true;
|
|
}
|
|
}
|
|
- if(isPacs){
|
|
|
|
|
|
+ if (isPacs) {
|
|
for (ModuleInfo moduleInfo : list) {
|
|
for (ModuleInfo moduleInfo : list) {
|
|
- if (Integer.parseInt(moduleInfo.getType()) == QuestionTypeEnum.Pacs.getKey()){
|
|
|
|
|
|
+ if (Integer.parseInt(moduleInfo.getType()) == QuestionTypeEnum.Pacs.getKey()) {
|
|
pacModuleIds.add(moduleInfo.getId());
|
|
pacModuleIds.add(moduleInfo.getId());
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
ids.add(moduleInfo.getId());
|
|
ids.add(moduleInfo.getId());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -101,11 +101,11 @@ public class ModuleFacade extends ModuleInfoServiceImpl {
|
|
paramMap.put("sexType", moduleVO.getSexType());
|
|
paramMap.put("sexType", moduleVO.getSexType());
|
|
paramMap.put("age", moduleVO.getAge());
|
|
paramMap.put("age", moduleVO.getAge());
|
|
List<ModuleDetail> moduleDetailList = moduleDetailFacade.getDetailByModuleFac(paramMap);
|
|
List<ModuleDetail> moduleDetailList = moduleDetailFacade.getDetailByModuleFac(paramMap);
|
|
- if(ListUtil.isNotEmpty(pacModuleIds)){//获取类型是化验的标签id
|
|
|
|
|
|
+ if (ListUtil.isNotEmpty(pacModuleIds)) {//获取类型是化验的标签id
|
|
QueryWrapper<ModuleDetail> moduleDetailQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<ModuleDetail> moduleDetailQueryWrapper = new QueryWrapper<>();
|
|
- moduleDetailQueryWrapper.eq("is_deleted",IsDeleteEnum.N.getKey())
|
|
|
|
- .in("module_id",pacModuleIds);
|
|
|
|
- List<ModuleDetail> moduleDetails = moduleDetailFacade.list(moduleDetailQueryWrapper);
|
|
|
|
|
|
+ moduleDetailQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .in("module_id", pacModuleIds);
|
|
|
|
+ List<ModuleDetail> moduleDetails = moduleDetailFacade.list(moduleDetailQueryWrapper);
|
|
for (ModuleDetail moduleDetail : moduleDetails) {
|
|
for (ModuleDetail moduleDetail : moduleDetails) {
|
|
moduleDetailList.add(moduleDetail);
|
|
moduleDetailList.add(moduleDetail);
|
|
}
|
|
}
|
|
@@ -121,9 +121,9 @@ public class ModuleFacade extends ModuleInfoServiceImpl {
|
|
if (moduleDetailMap.get(bean.getId()) != null) {
|
|
if (moduleDetailMap.get(bean.getId()) != null) {
|
|
moduleDetailDTOList = BeanUtil.listCopyTo(moduleDetailMap.get(bean.getId()), ModuleDetailDTO.class);
|
|
moduleDetailDTOList = BeanUtil.listCopyTo(moduleDetailMap.get(bean.getId()), ModuleDetailDTO.class);
|
|
for (ModuleDetailDTO detailDTO : moduleDetailDTOList) {
|
|
for (ModuleDetailDTO detailDTO : moduleDetailDTOList) {
|
|
- if(Integer.parseInt(bean.getType()) == 6){
|
|
|
|
|
|
+ if (Integer.parseInt(bean.getType()) == 6) {
|
|
pacsConceptIds.add(detailDTO.getQuestionId());
|
|
pacsConceptIds.add(detailDTO.getQuestionId());
|
|
- }else if (null != detailDTO.getQuestionId()) {
|
|
|
|
|
|
+ } else if (null != detailDTO.getQuestionId()) {
|
|
QuestionVO questionVO = new QuestionVO();
|
|
QuestionVO questionVO = new QuestionVO();
|
|
questionVO.setId(detailDTO.getQuestionId());
|
|
questionVO.setId(detailDTO.getQuestionId());
|
|
questionVO.setSexType(moduleVO.getSexType());
|
|
questionVO.setSexType(moduleVO.getSexType());
|
|
@@ -133,27 +133,27 @@ public class ModuleFacade extends ModuleInfoServiceImpl {
|
|
}
|
|
}
|
|
if (null != detailDTO.getRelationModule() &&
|
|
if (null != detailDTO.getRelationModule() &&
|
|
moduleInfoMap.get(detailDTO.getRelationModule()) != null) {
|
|
moduleInfoMap.get(detailDTO.getRelationModule()) != null) {
|
|
- detailDTO.setRelationModuleName(moduleInfoMap.get(detailDTO.getRelationModule()).getName());
|
|
|
|
|
|
+ detailDTO.setRelationModuleName(moduleInfoMap.get(detailDTO.getRelationModule()).getName());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
bean.setModuleDetailDTOList(moduleDetailDTOList);
|
|
bean.setModuleDetailDTOList(moduleDetailDTOList);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- RespDTO<Map<Long,String>> pacsRespDTO = null;
|
|
|
|
|
|
+ RespDTO<Map<Long, String>> pacsRespDTO = null;
|
|
//辅检
|
|
//辅检
|
|
- if(ListUtil.isNotEmpty(pacsConceptIds)){
|
|
|
|
|
|
+ if (ListUtil.isNotEmpty(pacsConceptIds)) {
|
|
conceptFindVO = new ConceptFindVO();
|
|
conceptFindVO = new ConceptFindVO();
|
|
conceptFindVO.setConceptIds(pacsConceptIds);
|
|
conceptFindVO.setConceptIds(pacsConceptIds);
|
|
conceptFindVO.setAge(moduleVO.getAge());
|
|
conceptFindVO.setAge(moduleVO.getAge());
|
|
conceptFindVO.setSexType(moduleVO.getSexType());
|
|
conceptFindVO.setSexType(moduleVO.getSexType());
|
|
pacsRespDTO = aiptServiceClient.getConceptCondMap(conceptFindVO);
|
|
pacsRespDTO = aiptServiceClient.getConceptCondMap(conceptFindVO);
|
|
- RespDTOUtil.respNGDeal(pacsRespDTO,"获取辅检标签失败");
|
|
|
|
|
|
+ RespDTOUtil.respNGDeal(pacsRespDTO, "获取辅检标签失败");
|
|
}
|
|
}
|
|
- if(ListUtil.isNotEmpty(pacsConceptIds)){//如果存在辅检相关信息添加数据返回
|
|
|
|
|
|
+ if (ListUtil.isNotEmpty(pacsConceptIds)) {//如果存在辅检相关信息添加数据返回
|
|
//将辅检标签放入出参
|
|
//将辅检标签放入出参
|
|
for (ModuleInfoDTO bean : data) {
|
|
for (ModuleInfoDTO bean : data) {
|
|
if (Integer.parseInt(bean.getType()) == QuestionTypeEnum.Pacs.getKey() && pacsRespDTO.data != null) {
|
|
if (Integer.parseInt(bean.getType()) == QuestionTypeEnum.Pacs.getKey() && pacsRespDTO.data != null) {
|
|
- for (ModuleDetailDTO detailDTO : bean.getModuleDetailDTOList()) {
|
|
|
|
|
|
+ for (ModuleDetailDTO detailDTO : bean.getModuleDetailDTOList()) {
|
|
detailDTO.setName(pacsRespDTO.data.get(detailDTO.getQuestionId()));
|
|
detailDTO.setName(pacsRespDTO.data.get(detailDTO.getQuestionId()));
|
|
}
|
|
}
|
|
}
|
|
}
|