|
|
@ -14,6 +14,7 @@
|
|
|
|
<result column="teacher_comments" jdbcType="VARCHAR" property="teacherComments" />
|
|
|
|
<result column="teacher_comments" jdbcType="VARCHAR" property="teacherComments" />
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
|
|
|
|
|
<result column="ascription" jdbcType="VARCHAR" property="ascription" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
@ -75,7 +76,7 @@
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
id, report_name, upload_time, size, rating, module, userId, url, socre_id, teacher_comments,
|
|
|
|
id, report_name, upload_time, size, rating, module, userId, url, socre_id, teacher_comments,
|
|
|
|
school_id, status
|
|
|
|
school_id, status, ascription
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReportExample" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReportExample" resultMap="BaseResultMap">
|
|
|
|
select
|
|
|
|
select
|
|
|
@ -111,13 +112,13 @@
|
|
|
|
insert into stu_practical_training_report (id, report_name, upload_time,
|
|
|
|
insert into stu_practical_training_report (id, report_name, upload_time,
|
|
|
|
size, rating, module,
|
|
|
|
size, rating, module,
|
|
|
|
userId, url, socre_id,
|
|
|
|
userId, url, socre_id,
|
|
|
|
teacher_comments, school_id, status
|
|
|
|
teacher_comments, school_id, status,
|
|
|
|
)
|
|
|
|
ascription)
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{reportName,jdbcType=VARCHAR}, #{uploadTime,jdbcType=TIMESTAMP},
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{reportName,jdbcType=VARCHAR}, #{uploadTime,jdbcType=TIMESTAMP},
|
|
|
|
#{size,jdbcType=INTEGER}, #{rating,jdbcType=DOUBLE}, #{module,jdbcType=VARCHAR},
|
|
|
|
#{size,jdbcType=INTEGER}, #{rating,jdbcType=DOUBLE}, #{module,jdbcType=VARCHAR},
|
|
|
|
#{userid,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{socreId,jdbcType=INTEGER},
|
|
|
|
#{userid,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{socreId,jdbcType=INTEGER},
|
|
|
|
#{teacherComments,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}
|
|
|
|
#{teacherComments,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
|
)
|
|
|
|
#{ascription,jdbcType=VARCHAR})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReport">
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReport">
|
|
|
|
insert into stu_practical_training_report
|
|
|
|
insert into stu_practical_training_report
|
|
|
@ -158,6 +159,9 @@
|
|
|
|
<if test="status != null">
|
|
|
|
<if test="status != null">
|
|
|
|
status,
|
|
|
|
status,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="ascription != null">
|
|
|
|
|
|
|
|
ascription,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">
|
|
|
|
<if test="id != null">
|
|
|
@ -196,6 +200,9 @@
|
|
|
|
<if test="status != null">
|
|
|
|
<if test="status != null">
|
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="ascription != null">
|
|
|
|
|
|
|
|
#{ascription,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReportExample" resultType="java.lang.Long">
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReportExample" resultType="java.lang.Long">
|
|
|
@ -243,6 +250,9 @@
|
|
|
|
<if test="record.status != null">
|
|
|
|
<if test="record.status != null">
|
|
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.ascription != null">
|
|
|
|
|
|
|
|
ascription = #{record.ascription,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" />
|
|
|
@ -261,7 +271,8 @@
|
|
|
|
socre_id = #{record.socreId,jdbcType=INTEGER},
|
|
|
|
socre_id = #{record.socreId,jdbcType=INTEGER},
|
|
|
|
teacher_comments = #{record.teacherComments,jdbcType=VARCHAR},
|
|
|
|
teacher_comments = #{record.teacherComments,jdbcType=VARCHAR},
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
status = #{record.status,jdbcType=INTEGER}
|
|
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
ascription = #{record.ascription,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>
|
|
|
@ -302,6 +313,9 @@
|
|
|
|
<if test="status != null">
|
|
|
|
<if test="status != null">
|
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="ascription != null">
|
|
|
|
|
|
|
|
ascription = #{ascription,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
@ -317,8 +331,8 @@
|
|
|
|
socre_id = #{socreId,jdbcType=INTEGER},
|
|
|
|
socre_id = #{socreId,jdbcType=INTEGER},
|
|
|
|
teacher_comments = #{teacherComments,jdbcType=VARCHAR},
|
|
|
|
teacher_comments = #{teacherComments,jdbcType=VARCHAR},
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
status = #{status,jdbcType=INTEGER}
|
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
ascription = #{ascription,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|