| | |
| | | </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> |
| | | |
| | | |
| | |
| | | <if test="subjectChoices.modifyDate != null ">and modify_date = #{subjectChoices.modifyDate}</if> |
| | | <if test="subjectChoices.delFlag != null ">and del_flag = #{subjectChoices.delFlag}</if> |
| | | <if test="subjectChoices.level != null ">and level = #{subjectChoices.level}</if> |
| | | |
| | | </where> |
| | | order by level desc |
| | | |
| | | </select> |
| | | |
| | | |