@@ -6,7 +6,7 @@
FROM bjdx_course c
LEFT JOIN bjdx_course_type ct ON c.course_type = ct.id
<where>
- c.deleted = 0
+ c.deleted = 0 AND ct.deleted = 0
<if test="courseName != null and courseName != ''">
AND c.course_name LIKE CONCAT('%', #{courseName}, '%')
</if>
@@ -8,7 +8,7 @@
resultType="cn.iocoder.byzs.module.bjdx.dal.dataobject.coursequestoption.CourseQuestOptionDO">
select id,cqo_quest_id cqoQuestId, cqo_value cqoValue, cqo_option cqoOption, cqo_socre cqoSocre, cqo_is_answer cqoIsAnswer
from bjdx_course_quest_option
- where cqo_quest_id in
+ where deleted = 0 AND cqo_quest_id in
<foreach item="questId" collection="questIdSet"
open="(" separator="," close=")">
#{questId}
@@ -18,6 +18,7 @@
LEFT JOIN bjdx_questionnaire q ON q.id = qc.bqc_questionnaire_id
LEFT JOIN bjdx_course_question cq ON qc.bqc_question_id = cq.id
WHERE
+ qc.deleted = 0 AND q.deleted = 0 AND cq.deleted = 0
<if test="questionnaireId != null">
q.id = #{questionnaireId}
@@ -16,6 +16,7 @@
blockly_course_type bct
LEFT JOIN blockly_course bc ON bct.id = bc.bc_type
+ bct.deleted = 0 AND bc.deleted = 0 AND bc.status = 0 AND
bct.ct_parent_id = #{ctParentId}
GROUP BY
id, ctType, ctParentId, ctTypeImage, ctTypeSort;