Browse Source

Revert "预问诊常用标签年龄和性别过滤" 回退,只过滤术语库,不需要过滤预问诊本身,用于埋点统计

zhoutg 5 years ago
parent
commit
3aad8e1430

+ 0 - 6
prec-service/src/main/java/com/diagbot/facade/QuestionUsualFacade.java

@@ -63,17 +63,11 @@ public class QuestionUsualFacade {
                     .map(ConceptBaseDTO::getName)
                     .collect(Collectors.toList());
             //与question标签匹配
-            List<Integer> sexList = new ArrayList<>();
-            sexList.add(3);
-            sexList.add(questionUsualVO.getSexType());
             QueryWrapper<QuestionInfo> questionInfoQueryWrapper = new QueryWrapper<>();
             questionInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
                     .in("tag_name", conceptName)
                     .ne("tag_type", 8)
                     .eq("item_type", 0)
-                    .in("sex_type", sexList)
-                    .le("age_begin", questionUsualVO.getAge())
-                    .ge("age_end", questionUsualVO.getAge())
                     .eq("type", type);
             List<QuestionInfo> questionInfoList = questionFacade.list(questionInfoQueryWrapper);
             Map<String, QuestionInfo> questionInfoMap