|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
<result column="creator_name" jdbcType="VARCHAR" property="creatorName" />
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
<result column="create_school_id" jdbcType="INTEGER" property="createSchoolId" />
|
|
|
|
|
<result column="school_id" jdbcType="INTEGER" property="schoolId" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<!--
|
|
|
|
@ -95,7 +95,7 @@
|
|
|
|
|
This element was generated on Thu Jun 29 18:43:01 CST 2023.
|
|
|
|
|
-->
|
|
|
|
|
training_id, people_count, start_time, end_time, status, creator_id, create_school,
|
|
|
|
|
training_name, creator_name, create_time, update_time, create_school_id
|
|
|
|
|
training_name, creator_name, create_time, update_time, school_id
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingExample" resultMap="BaseResultMap">
|
|
|
|
|
<!--
|
|
|
|
@ -156,12 +156,12 @@
|
|
|
|
|
insert into sys_training (training_id, people_count, start_time,
|
|
|
|
|
end_time, status, creator_id,
|
|
|
|
|
create_school, training_name, creator_name,
|
|
|
|
|
create_time, update_time, create_school_id
|
|
|
|
|
create_time, update_time, school_id
|
|
|
|
|
)
|
|
|
|
|
values (#{trainingId,jdbcType=INTEGER}, #{peopleCount,jdbcType=INTEGER}, #{startTime,jdbcType=VARCHAR},
|
|
|
|
|
#{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR}, #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
#{createSchool,jdbcType=VARCHAR}, #{trainingName,jdbcType=VARCHAR}, #{creatorName,jdbcType=VARCHAR},
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{createSchoolId,jdbcType=INTEGER}
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{schoolId,jdbcType=INTEGER}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.Training">
|
|
|
|
@ -205,8 +205,8 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
update_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createSchoolId != null">
|
|
|
|
|
create_school_id,
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
school_id,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
@ -243,8 +243,8 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createSchoolId != null">
|
|
|
|
|
#{createSchoolId,jdbcType=INTEGER},
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
#{schoolId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
@ -300,8 +300,8 @@
|
|
|
|
|
<if test="record.updateTime != null">
|
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.createSchoolId != null">
|
|
|
|
|
create_school_id = #{record.createSchoolId,jdbcType=INTEGER},
|
|
|
|
|
<if test="record.schoolId != null">
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
@ -326,7 +326,7 @@
|
|
|
|
|
creator_name = #{record.creatorName,jdbcType=VARCHAR},
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
create_school_id = #{record.createSchoolId,jdbcType=INTEGER}
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=INTEGER}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -369,8 +369,8 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createSchoolId != null">
|
|
|
|
|
create_school_id = #{createSchoolId,jdbcType=INTEGER},
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
school_id = #{schoolId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where training_id = #{trainingId,jdbcType=INTEGER}
|
|
|
|
@ -392,7 +392,7 @@
|
|
|
|
|
creator_name = #{creatorName,jdbcType=VARCHAR},
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
create_school_id = #{createSchoolId,jdbcType=INTEGER}
|
|
|
|
|
school_id = #{schoolId,jdbcType=INTEGER}
|
|
|
|
|
where training_id = #{trainingId,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
<select id="selectByPage" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingExample" resultMap="BaseResultMap">
|
|
|
|
|