@@ -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)
</where>
</select>
@@ -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 test="query.condition != null and query.condition != '' ">
AND bqg.name LIKE CONCAT('%',#{query.condition},'%')