|
@@ -187,7 +187,7 @@
|
|
|
<select id="getQuestionUsualsByDept" resultType="com.diagbot.dto.GetQuestionInfoDTO">
|
|
|
SELECT a.* FROM `icss_question_info` a
|
|
|
LEFT JOIN icss_question_usual b ON a.id = b.question_id
|
|
|
- WHERE b.dept_id = #{deptId} AND a.type = #{type}
|
|
|
+ WHERE a.is_deleted = 'N' and b.is_deleted = 'N' and b.dept_id = #{deptId} AND a.type = #{type}
|
|
|
GROUP BY a.id
|
|
|
</select>
|
|
|
|