1.新增首页接口

2.修改数据库时间格式为string,上传重新生成的相关xml和类
pull/1/head
xiaoCJ 2 years ago
parent cf99ceefa9
commit 28245154d1

@ -7,7 +7,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Jun 29 18:43:01 CST 2023.
-->
<id column="training_id" jdbcType="INTEGER" property="trainingId" />
<id column="training_id" jdbcType="VARCHAR" property="trainingId" />
<result column="people_count" jdbcType="INTEGER" property="peopleCount" />
<result column="start_time" jdbcType="VARCHAR" property="startTime" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
@ -116,7 +116,7 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@ -125,7 +125,7 @@
select
<include refid="Base_Column_List" />
from sys_training
where training_id = #{trainingId,jdbcType=INTEGER}
where training_id = #{trainingId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
@ -154,15 +154,15 @@
This element was generated on Thu Jun 29 18:43:01 CST 2023.
-->
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, 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}, #{schoolId,jdbcType=INTEGER}
)
end_time, status, creator_id,
create_school, training_name, creator_name,
create_time, update_time, school_id
)
values (#{trainingId,jdbcType=VARCHAR}, #{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}
)
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.Training">
<!--
@ -268,7 +268,7 @@
update sys_training
<set>
<if test="record.trainingId != null">
training_id = #{record.trainingId,jdbcType=INTEGER},
training_id = #{record.trainingId,jdbcType=VARCHAR},
</if>
<if test="record.peopleCount != null">
people_count = #{record.peopleCount,jdbcType=INTEGER},

Loading…
Cancel
Save