修改实务认知得分和智能评分规则
parent
cf5c7adaf3
commit
d50a87a0ea
@ -1,358 +1,376 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.fund_investment.mapper.TrainingReportMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||
<result column="flow_id" jdbcType="VARCHAR" property="flowId" />
|
||||
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
||||
<result column="url" jdbcType="VARCHAR" property="url" />
|
||||
<result column="report_name" jdbcType="VARCHAR" property="reportName" />
|
||||
<result column="step" jdbcType="VARCHAR" property="step" />
|
||||
<result column="report_score" jdbcType="DECIMAL" property="reportScore" />
|
||||
<result column="experience_score" jdbcType="DECIMAL" property="experienceScore" />
|
||||
<result column="uploadTime" jdbcType="DATE" property="uploadtime" />
|
||||
<result column="version" jdbcType="VARCHAR" property="version" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
<result column="experience" jdbcType="LONGVARCHAR" property="experience" />
|
||||
</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>
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
<id column="id" jdbcType="VARCHAR" property="id"/>
|
||||
<result column="flow_id" jdbcType="VARCHAR" property="flowId"/>
|
||||
<result column="school_id" jdbcType="VARCHAR" property="schoolId"/>
|
||||
<result column="url" jdbcType="VARCHAR" property="url"/>
|
||||
<result column="report_name" jdbcType="VARCHAR" property="reportName"/>
|
||||
<result column="step" jdbcType="VARCHAR" property="step"/>
|
||||
<result column="report_score" jdbcType="DECIMAL" property="reportScore"/>
|
||||
<result column="experience_score" jdbcType="DECIMAL" property="experienceScore"/>
|
||||
<result column="uploadTime" jdbcType="DATE" property="uploadtime"/>
|
||||
<result column="version" jdbcType="VARCHAR" property="version"/>
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
<result column="experience" jdbcType="LONGVARCHAR" property="experience"/>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, flow_id, school_id, url, report_name, step, report_score, experience_score, uploadTime,
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id
|
||||
, flow_id, school_id, url, report_name, step, report_score, experience_score, uploadTime,
|
||||
version
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
experience
|
||||
</sql>
|
||||
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.fund_investment.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.fund_investment.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>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from training_report
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from training_report
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.TrainingReportExample">
|
||||
delete from training_report
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
insert into training_report (id, flow_id, school_id,
|
||||
url, report_name, step,
|
||||
report_score, experience_score, uploadTime,
|
||||
version, experience)
|
||||
values (#{id,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR},
|
||||
#{url,jdbcType=VARCHAR}, #{reportName,jdbcType=VARCHAR}, #{step,jdbcType=VARCHAR},
|
||||
#{reportScore,jdbcType=DECIMAL}, #{experienceScore,jdbcType=DECIMAL}, #{uploadtime,jdbcType=DATE},
|
||||
#{version,jdbcType=VARCHAR}, #{experience,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
insert into training_report
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="flowId != null">
|
||||
flow_id,
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id,
|
||||
</if>
|
||||
<if test="url != null">
|
||||
url,
|
||||
</if>
|
||||
<if test="reportName != null">
|
||||
report_name,
|
||||
</if>
|
||||
<if test="step != null">
|
||||
step,
|
||||
</if>
|
||||
<if test="reportScore != null">
|
||||
report_score,
|
||||
</if>
|
||||
<if test="experienceScore != null">
|
||||
experience_score,
|
||||
</if>
|
||||
<if test="uploadtime != null">
|
||||
uploadTime,
|
||||
</if>
|
||||
<if test="version != null">
|
||||
version,
|
||||
</if>
|
||||
<if test="experience != null">
|
||||
experience,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="flowId != null">
|
||||
#{flowId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
#{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="url != null">
|
||||
#{url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reportName != null">
|
||||
#{reportName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="step != null">
|
||||
#{step,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reportScore != null">
|
||||
#{reportScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="experienceScore != null">
|
||||
#{experienceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="uploadtime != null">
|
||||
#{uploadtime,jdbcType=DATE},
|
||||
</if>
|
||||
<if test="version != null">
|
||||
#{version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="experience != null">
|
||||
#{experience,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.fund_investment.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.id != null">
|
||||
id = #{record.id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.flowId != null">
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
experience
|
||||
</sql>
|
||||
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.fund_investment.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.fund_investment.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>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
,
|
||||
<include refid="Blob_Column_List"/>
|
||||
from training_report
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete
|
||||
from training_report
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.TrainingReportExample">
|
||||
delete from training_report
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
insert into training_report (id, flow_id, school_id,
|
||||
url, report_name, step,
|
||||
report_score, experience_score, uploadTime,
|
||||
version, experience)
|
||||
values (#{id,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR},
|
||||
#{url,jdbcType=VARCHAR}, #{reportName,jdbcType=VARCHAR}, #{step,jdbcType=VARCHAR},
|
||||
#{reportScore,jdbcType=DECIMAL}, #{experienceScore,jdbcType=DECIMAL}, #{uploadtime,jdbcType=DATE},
|
||||
#{version,jdbcType=VARCHAR}, #{experience,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
insert into training_report
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="flowId != null">
|
||||
flow_id,
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id,
|
||||
</if>
|
||||
<if test="url != null">
|
||||
url,
|
||||
</if>
|
||||
<if test="reportName != null">
|
||||
report_name,
|
||||
</if>
|
||||
<if test="step != null">
|
||||
step,
|
||||
</if>
|
||||
<if test="reportScore != null">
|
||||
report_score,
|
||||
</if>
|
||||
<if test="experienceScore != null">
|
||||
experience_score,
|
||||
</if>
|
||||
<if test="uploadtime != null">
|
||||
uploadTime,
|
||||
</if>
|
||||
<if test="version != null">
|
||||
version,
|
||||
</if>
|
||||
<if test="experience != null">
|
||||
experience,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="flowId != null">
|
||||
#{flowId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
#{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="url != null">
|
||||
#{url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reportName != null">
|
||||
#{reportName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="step != null">
|
||||
#{step,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reportScore != null">
|
||||
#{reportScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="experienceScore != null">
|
||||
#{experienceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="uploadtime != null">
|
||||
#{uploadtime,jdbcType=DATE},
|
||||
</if>
|
||||
<if test="version != null">
|
||||
#{version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="experience != null">
|
||||
#{experience,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.fund_investment.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.id != null">
|
||||
id = #{record.id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.flowId != null">
|
||||
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.schoolId != null">
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.url != null">
|
||||
url = #{record.url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.reportName != null">
|
||||
report_name = #{record.reportName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.step != null">
|
||||
step = #{record.step,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.reportScore != null">
|
||||
report_score = #{record.reportScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.experienceScore != null">
|
||||
experience_score = #{record.experienceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.uploadtime != null">
|
||||
uploadTime = #{record.uploadtime,jdbcType=DATE},
|
||||
</if>
|
||||
<if test="record.version != null">
|
||||
version = #{record.version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.experience != null">
|
||||
experience = #{record.experience,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 id = #{record.id,jdbcType=VARCHAR},
|
||||
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.schoolId != null">
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.url != null">
|
||||
url = #{record.url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.reportName != null">
|
||||
report_name = #{record.reportName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.step != null">
|
||||
step = #{record.step,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.reportScore != null">
|
||||
report_score = #{record.reportScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.experienceScore != null">
|
||||
experience_score = #{record.experienceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.uploadtime != null">
|
||||
uploadTime = #{record.uploadtime,jdbcType=DATE},
|
||||
</if>
|
||||
<if test="record.version != null">
|
||||
version = #{record.version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.experience != null">
|
||||
experience = #{record.experience,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 id = #{record.id,jdbcType=VARCHAR},
|
||||
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
url = #{record.url,jdbcType=VARCHAR},
|
||||
report_name = #{record.reportName,jdbcType=VARCHAR},
|
||||
step = #{record.step,jdbcType=VARCHAR},
|
||||
report_score = #{record.reportScore,jdbcType=DECIMAL},
|
||||
experience_score = #{record.experienceScore,jdbcType=DECIMAL},
|
||||
uploadTime = #{record.uploadtime,jdbcType=DATE},
|
||||
version = #{record.version,jdbcType=VARCHAR},
|
||||
experience = #{record.experience,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update training_report
|
||||
set id = #{record.id,jdbcType=VARCHAR},
|
||||
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
url = #{record.url,jdbcType=VARCHAR},
|
||||
report_name = #{record.reportName,jdbcType=VARCHAR},
|
||||
step = #{record.step,jdbcType=VARCHAR},
|
||||
report_score = #{record.reportScore,jdbcType=DECIMAL},
|
||||
experience_score = #{record.experienceScore,jdbcType=DECIMAL},
|
||||
uploadTime = #{record.uploadtime,jdbcType=DATE},
|
||||
version = #{record.version,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
update training_report
|
||||
<set>
|
||||
<if test="flowId != null">
|
||||
flow_id = #{flowId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="url != null">
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reportName != null">
|
||||
report_name = #{reportName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="step != null">
|
||||
step = #{step,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reportScore != null">
|
||||
report_score = #{reportScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="experienceScore != null">
|
||||
experience_score = #{experienceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="uploadtime != null">
|
||||
uploadTime = #{uploadtime,jdbcType=DATE},
|
||||
</if>
|
||||
<if test="version != null">
|
||||
version = #{version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="experience != null">
|
||||
experience = #{experience,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
update training_report
|
||||
set flow_id = #{flowId,jdbcType=VARCHAR},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
report_name = #{reportName,jdbcType=VARCHAR},
|
||||
step = #{step,jdbcType=VARCHAR},
|
||||
report_score = #{reportScore,jdbcType=DECIMAL},
|
||||
experience_score = #{experienceScore,jdbcType=DECIMAL},
|
||||
uploadTime = #{uploadtime,jdbcType=DATE},
|
||||
version = #{version,jdbcType=VARCHAR},
|
||||
experience = #{experience,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
update training_report
|
||||
set flow_id = #{flowId,jdbcType=VARCHAR},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
report_name = #{reportName,jdbcType=VARCHAR},
|
||||
step = #{step,jdbcType=VARCHAR},
|
||||
report_score = #{reportScore,jdbcType=DECIMAL},
|
||||
experience_score = #{experienceScore,jdbcType=DECIMAL},
|
||||
uploadTime = #{uploadtime,jdbcType=DATE},
|
||||
version = #{version,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
experience = #{record.experience,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update training_report
|
||||
set id = #{record.id,jdbcType=VARCHAR},
|
||||
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
url = #{record.url,jdbcType=VARCHAR},
|
||||
report_name = #{record.reportName,jdbcType=VARCHAR},
|
||||
step = #{record.step,jdbcType=VARCHAR},
|
||||
report_score = #{record.reportScore,jdbcType=DECIMAL},
|
||||
experience_score = #{record.experienceScore,jdbcType=DECIMAL},
|
||||
uploadTime = #{record.uploadtime,jdbcType=DATE},
|
||||
version = #{record.version,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
update training_report
|
||||
<set>
|
||||
<if test="flowId != null">
|
||||
flow_id = #{flowId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="url != null">
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reportName != null">
|
||||
report_name = #{reportName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="step != null">
|
||||
step = #{step,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reportScore != null">
|
||||
report_score = #{reportScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="experienceScore != null">
|
||||
experience_score = #{experienceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="uploadtime != null">
|
||||
uploadTime = #{uploadtime,jdbcType=DATE},
|
||||
</if>
|
||||
<if test="version != null">
|
||||
version = #{version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="experience != null">
|
||||
experience = #{experience,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
update training_report
|
||||
set flow_id = #{flowId,jdbcType=VARCHAR},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
report_name = #{reportName,jdbcType=VARCHAR},
|
||||
step = #{step,jdbcType=VARCHAR},
|
||||
report_score = #{reportScore,jdbcType=DECIMAL},
|
||||
experience_score = #{experienceScore,jdbcType=DECIMAL},
|
||||
uploadTime = #{uploadtime,jdbcType=DATE},
|
||||
version = #{version,jdbcType=VARCHAR},
|
||||
experience = #{experience,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.TrainingReport">
|
||||
update training_report
|
||||
set flow_id = #{flowId,jdbcType=VARCHAR},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
report_name = #{reportName,jdbcType=VARCHAR},
|
||||
step = #{step,jdbcType=VARCHAR},
|
||||
report_score = #{reportScore,jdbcType=DECIMAL},
|
||||
experience_score = #{experienceScore,jdbcType=DECIMAL},
|
||||
uploadTime = #{uploadtime,jdbcType=DATE},
|
||||
version = #{version,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<update id="updateByList" parameterType="java.util.List">
|
||||
<foreach collection="finalReportList" item="item" separator=";">
|
||||
UPDATE training_report
|
||||
set
|
||||
report_score = #{item.reportScore,jdbcType=DECIMAL},
|
||||
experience_score = #{item.experienceScore,jdbcType=DECIMAL}
|
||||
WHERE id = #{item.id,jdbcType=VARCHAR}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue