|
|
@ -24,6 +24,8 @@
|
|
|
|
<result column="number_of_answer" jdbcType="INTEGER" property="numberOfAnswer" />
|
|
|
|
<result column="number_of_answer" jdbcType="INTEGER" property="numberOfAnswer" />
|
|
|
|
<result column="total_questions" jdbcType="INTEGER" property="totalQuestions" />
|
|
|
|
<result column="total_questions" jdbcType="INTEGER" property="totalQuestions" />
|
|
|
|
<result column="stu_homework_annex" jdbcType="VARCHAR" property="stuHomeworkAnnex" />
|
|
|
|
<result column="stu_homework_annex" jdbcType="VARCHAR" property="stuHomeworkAnnex" />
|
|
|
|
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
|
|
|
|
<result column="homework_type" jdbcType="VARCHAR" property="homeworkType" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
@ -86,7 +88,8 @@
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
id, name, student_id, class_name, score, completion_time, answer_number, answer_incorrectly_number,
|
|
|
|
id, name, student_id, class_name, score, completion_time, answer_number, answer_incorrectly_number,
|
|
|
|
accuracy, score_grades, user_id, task_id, average_score, state, pass_rate, homework_annex,
|
|
|
|
accuracy, score_grades, user_id, task_id, average_score, state, pass_rate, homework_annex,
|
|
|
|
starting_time, end_time, teacher_comments, number_of_answer, total_questions, stu_homework_annex
|
|
|
|
starting_time, end_time, teacher_comments, number_of_answer, total_questions, stu_homework_annex,
|
|
|
|
|
|
|
|
school_id, homework_type
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.trade.entity.StuAchievementInfoExample" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.trade.entity.StuAchievementInfoExample" resultMap="BaseResultMap">
|
|
|
|
select
|
|
|
|
select
|
|
|
@ -126,7 +129,8 @@
|
|
|
|
task_id, average_score, state,
|
|
|
|
task_id, average_score, state,
|
|
|
|
pass_rate, homework_annex, starting_time,
|
|
|
|
pass_rate, homework_annex, starting_time,
|
|
|
|
end_time, teacher_comments, number_of_answer,
|
|
|
|
end_time, teacher_comments, number_of_answer,
|
|
|
|
total_questions, stu_homework_annex)
|
|
|
|
total_questions, stu_homework_annex, school_id,
|
|
|
|
|
|
|
|
homework_type)
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{studentId,jdbcType=VARCHAR},
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{studentId,jdbcType=VARCHAR},
|
|
|
|
#{className,jdbcType=VARCHAR}, #{score,jdbcType=DECIMAL}, #{completionTime,jdbcType=VARCHAR},
|
|
|
|
#{className,jdbcType=VARCHAR}, #{score,jdbcType=DECIMAL}, #{completionTime,jdbcType=VARCHAR},
|
|
|
|
#{answerNumber,jdbcType=INTEGER}, #{answerIncorrectlyNumber,jdbcType=INTEGER},
|
|
|
|
#{answerNumber,jdbcType=INTEGER}, #{answerIncorrectlyNumber,jdbcType=INTEGER},
|
|
|
@ -134,7 +138,8 @@
|
|
|
|
#{taskId,jdbcType=VARCHAR}, #{averageScore,jdbcType=DECIMAL}, #{state,jdbcType=VARCHAR},
|
|
|
|
#{taskId,jdbcType=VARCHAR}, #{averageScore,jdbcType=DECIMAL}, #{state,jdbcType=VARCHAR},
|
|
|
|
#{passRate,jdbcType=DECIMAL}, #{homeworkAnnex,jdbcType=VARCHAR}, #{startingTime,jdbcType=TIMESTAMP},
|
|
|
|
#{passRate,jdbcType=DECIMAL}, #{homeworkAnnex,jdbcType=VARCHAR}, #{startingTime,jdbcType=TIMESTAMP},
|
|
|
|
#{endTime,jdbcType=TIMESTAMP}, #{teacherComments,jdbcType=VARCHAR}, #{numberOfAnswer,jdbcType=INTEGER},
|
|
|
|
#{endTime,jdbcType=TIMESTAMP}, #{teacherComments,jdbcType=VARCHAR}, #{numberOfAnswer,jdbcType=INTEGER},
|
|
|
|
#{totalQuestions,jdbcType=INTEGER}, #{stuHomeworkAnnex,jdbcType=VARCHAR})
|
|
|
|
#{totalQuestions,jdbcType=INTEGER}, #{stuHomeworkAnnex,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{homeworkType,jdbcType=VARCHAR})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.trade.entity.StuAchievementInfo">
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.trade.entity.StuAchievementInfo">
|
|
|
|
insert into stu_achievement_info
|
|
|
|
insert into stu_achievement_info
|
|
|
@ -205,6 +210,12 @@
|
|
|
|
<if test="stuHomeworkAnnex != null">
|
|
|
|
<if test="stuHomeworkAnnex != null">
|
|
|
|
stu_homework_annex,
|
|
|
|
stu_homework_annex,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
|
|
|
school_id,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="homeworkType != null">
|
|
|
|
|
|
|
|
homework_type,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">
|
|
|
|
<if test="id != null">
|
|
|
@ -273,6 +284,12 @@
|
|
|
|
<if test="stuHomeworkAnnex != null">
|
|
|
|
<if test="stuHomeworkAnnex != null">
|
|
|
|
#{stuHomeworkAnnex,jdbcType=VARCHAR},
|
|
|
|
#{stuHomeworkAnnex,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
|
|
|
#{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="homeworkType != null">
|
|
|
|
|
|
|
|
#{homeworkType,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.trade.entity.StuAchievementInfoExample" resultType="java.lang.Long">
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.trade.entity.StuAchievementInfoExample" resultType="java.lang.Long">
|
|
|
@ -350,6 +367,12 @@
|
|
|
|
<if test="record.stuHomeworkAnnex != null">
|
|
|
|
<if test="record.stuHomeworkAnnex != null">
|
|
|
|
stu_homework_annex = #{record.stuHomeworkAnnex,jdbcType=VARCHAR},
|
|
|
|
stu_homework_annex = #{record.stuHomeworkAnnex,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.schoolId != null">
|
|
|
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.homeworkType != null">
|
|
|
|
|
|
|
|
homework_type = #{record.homeworkType,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@ -378,7 +401,9 @@
|
|
|
|
teacher_comments = #{record.teacherComments,jdbcType=VARCHAR},
|
|
|
|
teacher_comments = #{record.teacherComments,jdbcType=VARCHAR},
|
|
|
|
number_of_answer = #{record.numberOfAnswer,jdbcType=INTEGER},
|
|
|
|
number_of_answer = #{record.numberOfAnswer,jdbcType=INTEGER},
|
|
|
|
total_questions = #{record.totalQuestions,jdbcType=INTEGER},
|
|
|
|
total_questions = #{record.totalQuestions,jdbcType=INTEGER},
|
|
|
|
stu_homework_annex = #{record.stuHomeworkAnnex,jdbcType=VARCHAR}
|
|
|
|
stu_homework_annex = #{record.stuHomeworkAnnex,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
homework_type = #{record.homeworkType,jdbcType=VARCHAR}
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -449,6 +474,12 @@
|
|
|
|
<if test="stuHomeworkAnnex != null">
|
|
|
|
<if test="stuHomeworkAnnex != null">
|
|
|
|
stu_homework_annex = #{stuHomeworkAnnex,jdbcType=VARCHAR},
|
|
|
|
stu_homework_annex = #{stuHomeworkAnnex,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="homeworkType != null">
|
|
|
|
|
|
|
|
homework_type = #{homeworkType,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
@ -474,7 +505,9 @@
|
|
|
|
teacher_comments = #{teacherComments,jdbcType=VARCHAR},
|
|
|
|
teacher_comments = #{teacherComments,jdbcType=VARCHAR},
|
|
|
|
number_of_answer = #{numberOfAnswer,jdbcType=INTEGER},
|
|
|
|
number_of_answer = #{numberOfAnswer,jdbcType=INTEGER},
|
|
|
|
total_questions = #{totalQuestions,jdbcType=INTEGER},
|
|
|
|
total_questions = #{totalQuestions,jdbcType=INTEGER},
|
|
|
|
stu_homework_annex = #{stuHomeworkAnnex,jdbcType=VARCHAR}
|
|
|
|
stu_homework_annex = #{stuHomeworkAnnex,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
homework_type = #{homeworkType,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|