|
|
@@ -34,7 +34,7 @@
|
|
|
</select>
|
|
|
<select id="queryAllUnlink" resultType="cn.tr.module.smart.web.vo.BizDeptUnlinkQuestionVO">
|
|
|
SELECT
|
|
|
- bqg.id as questionGroupId,
|
|
|
+ distinct(bqg.id)as questionGroupId,
|
|
|
bqg.name,
|
|
|
bqg.type,
|
|
|
bqg.interval,
|
|
|
@@ -47,6 +47,7 @@
|
|
|
biz_question_group bqg
|
|
|
LEFT JOIN biz_question_dept bqd ON bqg.ID = bqd.question_group_id
|
|
|
<where>
|
|
|
+ and bqg.name is not null
|
|
|
<if test="query.deptId != null and query.deptId != '' ">
|
|
|
AND (bqd.dept_id != #{query.deptId} or bqd.dept_id is null)
|
|
|
</if>
|