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

Loading…
Cancel
Save