| | |
| | | <id property="subjectName" column="subject_name"/> |
| | | <id property="choicesType" column="choices_type"/> |
| | | <id property="score" column="score"/> |
| | | <id property="analysis" column="analysis"/> |
| | | <id property="level" column="level"/> |
| | | <id property="creator" column="creator"/> |
| | | <id property="createDate" column="create_date"/> |
| | | <id property="modifier" column="modifier"/> |
| | | <id property="modifyDate" column="modify_date"/> |
| | | <id property="delFlag" column="del_flag"/> |
| | | <id property="applicationCode" column="application_code"/> |
| | | <id property="tenantCode" column="tenant_code"/> |
| | | <result column="id" property="id"/> |
| | | <collection property="examSubjectOptions" javaType="java.util.List" ofType="org.springblade.modules.exam.entity.ExamSubjectOption" autoMapping="true"> |
| | | <id property="id" column="eso_id"/> |
| | |
| | | </resultMap> |
| | | |
| | | |
| | | <!--选择题详情信息--> |
| | | <!--题目详情信息--> |
| | | <select id="selectExamSubjectChoicesInfo" resultMap="ExamSubjectChoicesInfoMap"> |
| | | SELECT |
| | | esc.*, |
| | | esc.id,esc.category_id,esc.subject_name,esc.choices_type,esc.score,esc.level, |
| | | eso.id eso_id,eso.subject_choices_id,eso.option_name,eso.option_content,eso.creator, |
| | | eso.create_date,eso.modifier,eso.modify_date,eso.del_flag,eso.application_code,eso.tenant_code |
| | | FROM |
| | |
| | | <update id="updateChoicesValue"> |
| | | update exam_subject_choices set score = #{value} where id = #{id} |
| | | </update> |
| | | |
| | | <!--根据 题目id 删除选项--> |
| | | <delete id="removeBySubjectId"> |
| | | delete from exam_subject_option where subject_choices_id = #{id} |
| | | </delete> |
| | | </mapper> |