|
@@ -95,7 +95,7 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
|
|
|
StaticKnowledgeDTO staticKnowledgeDTO = new StaticKnowledgeDTO();
|
|
|
Integer type = convertType(staticKnowledgeVO.getType(), 1);
|
|
|
if (type == null) {
|
|
|
- throw new CommonException(CommonErrorCode.PARAM_IS_ERROR, "请输入正确类型(1-诊断、2-药品、3-检验套餐、4-检验细项、5-检查、6-检查子项、7-手术和操作、8-量表、9-护理)");
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_ERROR, "请输入正确类型(1-诊断、2-药品、3-检验套餐、4-检验细项、5-检查、6-检查子项、7-手术和操作、8-量表、9-护理、10-法律法规)");
|
|
|
}
|
|
|
staticKnowledgeVO.setType(type);
|
|
|
|
|
@@ -346,7 +346,7 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
|
|
|
public IPage<StaticKnowledgeIndexPageDTO> staticIndexPage(StaticKnowledgeIndexPageVO staticKnowledgeIndexPageVO) {
|
|
|
//默认查找全部
|
|
|
if (ListUtil.isEmpty(staticKnowledgeIndexPageVO.getTypes())) {
|
|
|
- staticKnowledgeIndexPageVO.setTypeIds(Arrays.asList(new Integer[] { 0 }));
|
|
|
+ staticKnowledgeIndexPageVO.setTypeIds(Arrays.asList(0));
|
|
|
}
|
|
|
staticKnowledgeIndexPageVO.setTypeIds(new ArrayList<>());
|
|
|
|
|
@@ -359,7 +359,7 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
|
|
|
//检索类型(多选):0-全部、1-诊断、2-药品、3-检验、4-检查、5-手术和操作
|
|
|
if (ListUtil.isEmpty(types)
|
|
|
|| (ListUtil.isNotEmpty(types) && types.contains(0))) {
|
|
|
- staticKnowledgeIndexPageVO.getTypeIds().addAll(Arrays.asList(new Integer[] { LexiconEnum.Disease.getKey(),
|
|
|
+ staticKnowledgeIndexPageVO.getTypeIds().addAll(Arrays.asList(LexiconEnum.Disease.getKey(),
|
|
|
LexiconEnum.Medicine.getKey(),
|
|
|
LexiconEnum.LisName.getKey(),
|
|
|
LexiconEnum.LisSubName.getKey(),
|
|
@@ -367,7 +367,8 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
|
|
|
LexiconEnum.PacsSubName.getKey(),
|
|
|
LexiconEnum.Operation.getKey(),
|
|
|
LexiconEnum.Scale.getKey(),
|
|
|
- LexiconEnum.Nurse.getKey() }));
|
|
|
+ LexiconEnum.Nurse.getKey(),
|
|
|
+ LexiconEnum.Law.getKey()));
|
|
|
} else {
|
|
|
if (types.contains(1)) {
|
|
|
staticKnowledgeIndexPageVO.getTypeIds().add(LexiconEnum.Disease.getKey());
|
|
@@ -392,9 +393,12 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
|
|
|
if (types.contains(9)) {
|
|
|
staticKnowledgeIndexPageVO.getTypeIds().add(LexiconEnum.Nurse.getKey());
|
|
|
}
|
|
|
+ if (types.contains(10)) {
|
|
|
+ staticKnowledgeIndexPageVO.getTypeIds().add(LexiconEnum.Law.getKey());
|
|
|
+ }
|
|
|
}
|
|
|
if (ListUtil.isEmpty(staticKnowledgeIndexPageVO.getTypeIds())) {
|
|
|
- throw new CommonException(CommonErrorCode.PARAM_IS_ERROR, "请输入正确的检索类型(多选):0-全部、1-诊断、2-药品、3-检验、4-检查、7-手术和操作、8-量表、9-护理");
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_ERROR, "请输入正确的检索类型(多选):0-全部、1-诊断、2-药品、3-检验、4-检查、7-手术和操作、8-量表、9-护理、10-法律法规");
|
|
|
}
|
|
|
IPage<StaticKnowledgeIndexPageDTO> page = super.staticIndexPage(staticKnowledgeIndexPageVO);
|
|
|
|
|
@@ -665,10 +669,7 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
|
|
|
List<KlConceptScale> scales = klConceptScaleFacade.list(new QueryWrapper<KlConceptScale>()
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq("concept_id", concept.getId()));
|
|
|
- if (ListUtil.isEmpty(scales)) {
|
|
|
- return false;
|
|
|
- }
|
|
|
- return true;
|
|
|
+ return !ListUtil.isEmpty(scales);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -713,6 +714,9 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
|
|
|
case 9:
|
|
|
retType = LexiconEnum.Nurse.getKey();
|
|
|
break;
|
|
|
+ case 10:
|
|
|
+ retType = LexiconEnum.Law.getKey();
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -735,6 +739,8 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
|
|
|
retType = 8;
|
|
|
} else if (type.equals(LexiconEnum.Nurse.getKey())) {
|
|
|
retType = 9;
|
|
|
+ } else if (type.equals(LexiconEnum.Law.getKey())) {
|
|
|
+ retType = 10;
|
|
|
}
|
|
|
}
|
|
|
return retType;
|