ソースを参照

标签检索添加参数noSubQuestion,用于过滤明细中有值的的标签

zhoutg 5 年 前
コミット
54ed2598f5

+ 1 - 0
precman-service/src/main/java/com/diagbot/facade/QuestionFacade.java

@@ -358,6 +358,7 @@ public class QuestionFacade extends QuestionInfoServiceImpl {
         paramMap.put("existName", questionIndexVO.getExistName());
         paramMap.put("notTagType", questionIndexVO.getNotTagType());
         paramMap.put("notControlType", questionIndexVO.getNotControlType());
+        paramMap.put("noSubQuestion", questionIndexVO.getNoSubQuestion());
         List<QuestionInfo> res = this.index(paramMap);
         return res;
     }

+ 1 - 0
precman-service/src/main/java/com/diagbot/vo/QuestionIndexVO.java

@@ -24,4 +24,5 @@ public class QuestionIndexVO {
     private List<Integer> notTagType;
     private List<Integer> notControlType;
     private List<String> filterList;
+    private Integer noSubQuestion;
 }

+ 9 - 1
precman-service/src/main/java/com/diagbot/web/QuestionInfoController.java

@@ -66,7 +66,15 @@ public class QuestionInfoController {
 
 
     @ApiOperation(value = "标签检索[by:zhoutg]",
-            notes = "")
+            notes = "tagName:系统名称<br>" +
+                    "sexType:性别:1:男,2:女,3:通用<br>" +
+                    "age:年龄<br>" +
+                    "type:归属<br>" +
+                    "notIds:过滤的id值<br>" +
+                    "notControlType:不能为的控件类型<br>" +
+                    "controlType:指定的控件类型<br>" +
+                    "tagType:指定的标签类型<br>" +
+                    "noSubQuestion:明细字段subQuestion有值,1:过滤;其他值:不过滤<br>")
     @PostMapping("/index")
     @SysLogger("index")
     public RespDTO<List<QuestionInfo>> index(@RequestBody QuestionIndexVO questionIndexVO) {

+ 3 - 0
precman-service/src/main/resources/mapper/QuestionInfoMapper.xml

@@ -99,6 +99,9 @@
                 #{id}
             </foreach>
         </if>
+        <if test="noSubQuestion !=null and noSubQuestion == 1">
+            and id not in (select distinct question_id from prec_question_detail t where t.is_deleted = 'N' and t.sub_question != '')
+        </if>
         order by gmt_modified desc
     </select>