Browse Source

增加问卷列表信息查询条件

wangzl 4 months ago
parent
commit
346ae5bf79

+ 3 - 0
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/web/dto/BizWebQuestionAnswerQueryDTO.java

@@ -32,6 +32,9 @@ public class BizWebQuestionAnswerQueryDTO implements Serializable {
     @ApiModelProperty(value = "问卷类型 不区分 不传,术前:BEFORE 术后AFTER", position = 3)
     private String questionType;
 
+    @ApiModelProperty(value = "科室ID", position = 3)
+    private String deptId;
+
     @ApiModelProperty(value = "当前登录人", position = 4)
     private String userId;
 

+ 3 - 0
tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizQuestionAnswerMapper.xml

@@ -39,6 +39,9 @@
             <if test="query.questionType != null">
                 AND bqa.question_type = #{query.questionType}
             </if>
+            <if test="query.deptId != null">
+                AND bcr.dept_id = #{query.deptId}
+            </if>
             <if test="query.userId != null">
                 AND bcrmu.user_id = #{query.userId}
             </if>