|
|
|
@ -355,283 +355,5 @@
|
|
|
|
|
version = #{version,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.financial_bigdata.entity.TrainingReport">
|
|
|
|
|
<result column="report_id" jdbcType="VARCHAR" property="reportId" />
|
|
|
|
|
<result column="chapter_id" jdbcType="VARCHAR" property="chapterId" />
|
|
|
|
|
<result column="chapter_name" jdbcType="VARCHAR" property="chapterName" />
|
|
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
|
|
<result column="report_name" jdbcType="VARCHAR" property="reportName" />
|
|
|
|
|
<result column="upload_time" jdbcType="TIMESTAMP" property="uploadTime" />
|
|
|
|
|
<result column="report_size" jdbcType="INTEGER" property="reportSize" />
|
|
|
|
|
<result column="teacher_score" jdbcType="DECIMAL" property="teacherScore" />
|
|
|
|
|
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
|
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.financial_bigdata.entity.TrainingReport">
|
|
|
|
|
<result column="teacher_comment" jdbcType="LONGVARCHAR" property="teacherComment" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
report_id, chapter_id, chapter_name, user_id, report_name, upload_time, report_size,
|
|
|
|
|
teacher_score, file_path, school_id
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
teacher_comment
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.financial_bigdata.entity.TrainingReportExample" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
,
|
|
|
|
|
<include refid="Blob_Column_List" />
|
|
|
|
|
from training_report
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.financial_bigdata.entity.TrainingReportExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from training_report
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.financial_bigdata.entity.TrainingReportExample">
|
|
|
|
|
delete from training_report
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.financial_bigdata.entity.TrainingReport">
|
|
|
|
|
insert into training_report (report_id, chapter_id, chapter_name,
|
|
|
|
|
user_id, report_name, upload_time,
|
|
|
|
|
report_size, teacher_score, file_path,
|
|
|
|
|
school_id, teacher_comment)
|
|
|
|
|
values (#{reportId,jdbcType=VARCHAR}, #{chapterId,jdbcType=VARCHAR}, #{chapterName,jdbcType=VARCHAR},
|
|
|
|
|
#{userId,jdbcType=VARCHAR}, #{reportName,jdbcType=VARCHAR}, #{uploadTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{reportSize,jdbcType=INTEGER}, #{teacherScore,jdbcType=DECIMAL}, #{filePath,jdbcType=VARCHAR},
|
|
|
|
|
#{schoolId,jdbcType=VARCHAR}, #{teacherComment,jdbcType=LONGVARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.financial_bigdata.entity.TrainingReport">
|
|
|
|
|
insert into training_report
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="reportId != null">
|
|
|
|
|
report_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chapterId != null">
|
|
|
|
|
chapter_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chapterName != null">
|
|
|
|
|
chapter_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
user_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="reportName != null">
|
|
|
|
|
report_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="uploadTime != null">
|
|
|
|
|
upload_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="reportSize != null">
|
|
|
|
|
report_size,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="teacherScore != null">
|
|
|
|
|
teacher_score,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="filePath != null">
|
|
|
|
|
file_path,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
school_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="teacherComment != null">
|
|
|
|
|
teacher_comment,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="reportId != null">
|
|
|
|
|
#{reportId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chapterId != null">
|
|
|
|
|
#{chapterId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chapterName != null">
|
|
|
|
|
#{chapterName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
#{userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="reportName != null">
|
|
|
|
|
#{reportName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="uploadTime != null">
|
|
|
|
|
#{uploadTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="reportSize != null">
|
|
|
|
|
#{reportSize,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="teacherScore != null">
|
|
|
|
|
#{teacherScore,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="filePath != null">
|
|
|
|
|
#{filePath,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
#{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="teacherComment != null">
|
|
|
|
|
#{teacherComment,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.financial_bigdata.entity.TrainingReportExample" resultType="java.lang.Long">
|
|
|
|
|
select count(*) from training_report
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
|
update training_report
|
|
|
|
|
<set>
|
|
|
|
|
<if test="record.reportId != null">
|
|
|
|
|
report_id = #{record.reportId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.chapterId != null">
|
|
|
|
|
chapter_id = #{record.chapterId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.chapterName != null">
|
|
|
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.userId != null">
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.reportName != null">
|
|
|
|
|
report_name = #{record.reportName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.uploadTime != null">
|
|
|
|
|
upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.reportSize != null">
|
|
|
|
|
report_size = #{record.reportSize,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.teacherScore != null">
|
|
|
|
|
teacher_score = #{record.teacherScore,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.filePath != null">
|
|
|
|
|
file_path = #{record.filePath,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.schoolId != null">
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.teacherComment != null">
|
|
|
|
|
teacher_comment = #{record.teacherComment,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
|
|
update training_report
|
|
|
|
|
set report_id = #{record.reportId,jdbcType=VARCHAR},
|
|
|
|
|
chapter_id = #{record.chapterId,jdbcType=VARCHAR},
|
|
|
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
report_name = #{record.reportName,jdbcType=VARCHAR},
|
|
|
|
|
upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
|
|
|
|
|
report_size = #{record.reportSize,jdbcType=INTEGER},
|
|
|
|
|
teacher_score = #{record.teacherScore,jdbcType=DECIMAL},
|
|
|
|
|
file_path = #{record.filePath,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
teacher_comment = #{record.teacherComment,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update training_report
|
|
|
|
|
set report_id = #{record.reportId,jdbcType=VARCHAR},
|
|
|
|
|
chapter_id = #{record.chapterId,jdbcType=VARCHAR},
|
|
|
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
report_name = #{record.reportName,jdbcType=VARCHAR},
|
|
|
|
|
upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
|
|
|
|
|
report_size = #{record.reportSize,jdbcType=INTEGER},
|
|
|
|
|
teacher_score = #{record.teacherScore,jdbcType=DECIMAL},
|
|
|
|
|
file_path = #{record.filePath,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
</mapper>
|