linwei
2024-01-31 b3b566ebdfed4005aaa513da3d5d2fd3924903cc
src/main/java/org/springblade/modules/subjectChoices/mapper/SubjectChoicesMapper.xml
@@ -30,9 +30,15 @@
    </resultMap>
    <select id="selectCircleCommentByParentId" parameterType="long"
            resultType="org.springblade.modules.subjectOption.entity.SubjectOptionEntity">
       select * from jczz_subject_option where
        subject_choices_id = #{id}
            resultType="org.springblade.modules.subjectOption.vo.SubjectOptionVO">
        SELECT
        jso.*,
        jar.subject_option_id ids,
        jar.answer numbers
        FROM
        jczz_subject_option jso LEFT JOIN jczz_answer_record jar on jso.id = jar.subject_option_id
        WHERE
        jso.subject_choices_id = #{id}
    </select>