瀏覽代碼

修改科室绑定宣教文档绑定问卷 本科室未绑定的数据

wangzl 4 月之前
父節點
當前提交
a7511f7ddc

+ 1 - 1
tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizMissionDocMapper.xml

@@ -170,7 +170,7 @@
                 and bmd.title like concat('%',#{query.condition,jdbcType=VARCHAR},'%')
             </if>
             <if test="query.deptId != null and query.deptId != ''">
-                and bdd.dept_id = #{query.deptId }
+                and (bdd.dept_id = #{query.deptId } or bdd.dept_id is null)
             </if>
         </where>
     </select>

+ 1 - 1
tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizQuestionGroupMapper.xml

@@ -32,7 +32,7 @@
                 LEFT JOIN biz_question_dept bqd ON bqg.ID = bqd.question_group_id
         <where>
             <if test="query.deptId != null and query.deptId != '' ">
-                AND bqd.dept_id = #{query.deptId}
+                AND (bqd.dept_id = #{query.deptId} or bqd.dept_id is null)
             </if>
             <if test="query.condition != null and query.condition != '' ">
                 AND bqg.name LIKE CONCAT('%',#{query.condition},'%')