|
@@ -184,8 +184,7 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
|
|
|
public List<ModuleInfoDTO> getModuleInfo(GetModuleInfoVO getModuleInfoVO) {
|
|
|
//获取模板信息
|
|
|
QueryWrapper<ModuleInfo> moduleInfoQueryWrapper = new QueryWrapper<>();
|
|
|
- moduleInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
- .eq("relation_id", "-1");
|
|
|
+ moduleInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
if (getModuleInfoVO.getModuleType() != null) {
|
|
|
moduleInfoQueryWrapper.eq("module_type", getModuleInfoVO.getModuleType());
|
|
|
}
|
|
@@ -281,7 +280,7 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
|
|
|
//将用户信息放入实体
|
|
|
for (ModuleInfoListDTO moduleInfoListDTO : moduleInfoDTOIPage.getRecords()) {
|
|
|
moduleInfoListDTO.setUserName(respDTO.data.get(moduleInfoListDTO.getModifier()));
|
|
|
- if(moduleInfoListDTO.getModuleType().intValue() != 3){
|
|
|
+ if(dictionaryInfoMap.get(moduleInfoListDTO.getType()) != null ){
|
|
|
moduleInfoListDTO.setAscriptionName(dictionaryInfoMap.get(moduleInfoListDTO.getType()).getName());
|
|
|
}
|
|
|
if(moduleInfoListDTO.getModuleType().intValue() == 1){//根据科室
|
|
@@ -431,8 +430,8 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
|
|
|
if(getModuleTypeVO.getModuleType() != null && getModuleTypeVO.getModuleType().intValue() == 2){//为慢病时过滤现病史空模板、主诉模板、现病史空模板子模板
|
|
|
dictionaryInfoQueryWrapper.notIn("val","1","22","31","322");
|
|
|
}
|
|
|
- if(getModuleTypeVO.getModuleType() != null && getModuleTypeVO.getModuleType().intValue() == 0 && getModuleTypeVO.getModuleType().intValue() == 1){//为通用或科室时过滤化验附件诊断
|
|
|
- dictionaryInfoQueryWrapper.notIn("val","5","6","7");
|
|
|
+ if(getModuleTypeVO.getModuleType() != null && getModuleTypeVO.getModuleType().intValue() == 0 || getModuleTypeVO.getModuleType() != null && getModuleTypeVO.getModuleType().intValue() == 1){//为通用或科室时过滤化验附件诊断
|
|
|
+ dictionaryInfoQueryWrapper.notIn("val","4","5","6","7");
|
|
|
}
|
|
|
List<DictionaryInfo> dictionaryInfoList = dictionaryFacade.list(dictionaryInfoQueryWrapper);
|
|
|
List<GetModuleTypeDTO> getModuleTypeDTOS = new ArrayList<>();
|
|
@@ -464,10 +463,10 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
|
|
|
List<DisDTO> disDTOS = new ArrayList<>();
|
|
|
for (DisType disType: disTypes) {
|
|
|
DisDTO disDTO = new DisDTO();
|
|
|
- disDTO.setId(disType.getParentId());
|
|
|
+ disDTO.setId(disType.getDisId());
|
|
|
disDTOS.add(disDTO);
|
|
|
}
|
|
|
- List<Long> questionIds = disTypes.stream().map(DisType::getParentId).collect(Collectors.toList());
|
|
|
+ List<Long> questionIds = disTypes.stream().map(DisType::getDisId).collect(Collectors.toList());
|
|
|
QueryWrapper<QuestionInfo> questionInfoQueryWrapper = new QueryWrapper<>();
|
|
|
questionInfoQueryWrapper.eq("is_deleted",IsDeleteEnum.N.getKey())
|
|
|
.in("id",questionIds);
|