From 626d711cb15896055c13fe344eb7fcc824589715 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期四, 19 十二月 2019 15:38:42 +0800
Subject: [PATCH] 帮助中心

---
 fanli/src/main/java/com/yeshi/fanli/mapping/help/HelpClassMapper.xml |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/help/HelpClassMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/help/HelpClassMapper.xml
index c70d7ff..e97f7bd 100644
--- a/fanli/src/main/java/com/yeshi/fanli/mapping/help/HelpClassMapper.xml
+++ b/fanli/src/main/java/com/yeshi/fanli/mapping/help/HelpClassMapper.xml
@@ -8,15 +8,17 @@
     <result column="hc_picture" property="picture" jdbcType="VARCHAR"/>
     <result column="hc_sort" property="sort" jdbcType="INTEGER"/>
     <result column="hc_show_state" property="showState" jdbcType="INTEGER"/>
+    <result column="hc_start_time" property="startTime" jdbcType="TIMESTAMP"/>
+    <result column="hc_end_time" property="endTime" jdbcType="TIMESTAMP"/>
     <result column="hc_create_time" property="createTime" jdbcType="TIMESTAMP"/>
     <result column="hc_update_time" property="updateTime" jdbcType="TIMESTAMP"/>
   </resultMap>
-  <sql id="Base_Column_List">hc_id,hc_name,hc_picture,hc_sort,hc_show_state,hc_create_time,hc_update_time</sql>
+  <sql id="Base_Column_List">hc_id,hc_name,hc_picture,hc_sort,hc_show_state,hc_start_time,hc_end_time,hc_create_time,hc_update_time</sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
     <include refid="Base_Column_List"/>from yeshi_ec_help_class where hc_id = #{id,jdbcType=BIGINT}
   </select>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_help_class where hc_id = #{id,jdbcType=BIGINT}</delete>
-  <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.help.HelpClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_help_class (hc_id,hc_name,hc_picture,hc_sort,hc_show_state,hc_create_time,hc_update_time) values (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{picture,jdbcType=VARCHAR},#{sort,jdbcType=INTEGER},#{showState,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})</insert>
+  <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.help.HelpClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_help_class (hc_id,hc_name,hc_picture,hc_sort,hc_show_state,hc_start_time,hc_end_time,hc_create_time,hc_update_time) values (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{picture,jdbcType=VARCHAR},#{sort,jdbcType=INTEGER},#{showState,jdbcType=INTEGER},#{startTime,jdbcType=TIMESTAMP},#{endTime,jdbcType=TIMESTAMP},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})</insert>
   <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.help.HelpClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_help_class
     <trim prefix="(" suffix=")" suffixOverrides=",">
       <if test="id != null">hc_id,</if>
@@ -24,6 +26,8 @@
       <if test="picture != null">hc_picture,</if>
       <if test="sort != null">hc_sort,</if>
       <if test="showState != null">hc_show_state,</if>
+      <if test="startTime != null">hc_start_time,</if>
+      <if test="endTime != null">hc_end_time,</if>
       <if test="createTime != null">hc_create_time,</if>
       <if test="updateTime != null">hc_update_time,</if>
     </trim>values
@@ -33,17 +37,21 @@
       <if test="picture != null">#{picture,jdbcType=VARCHAR},</if>
       <if test="sort != null">#{sort,jdbcType=INTEGER},</if>
       <if test="showState != null">#{showState,jdbcType=INTEGER},</if>
+      <if test="startTime != null">#{startTime,jdbcType=TIMESTAMP},</if>
+      <if test="endTime != null">#{endTime,jdbcType=TIMESTAMP},</if>
       <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
       <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
     </trim>
   </insert>
-  <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.help.HelpClass">update yeshi_ec_help_class set hc_name = #{name,jdbcType=VARCHAR},hc_picture = #{picture,jdbcType=VARCHAR},hc_sort = #{sort,jdbcType=INTEGER},hc_show_state = #{showState,jdbcType=INTEGER},hc_create_time = #{createTime,jdbcType=TIMESTAMP},hc_update_time = #{updateTime,jdbcType=TIMESTAMP} where hc_id = #{id,jdbcType=BIGINT}</update>
+  <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.help.HelpClass">update yeshi_ec_help_class set hc_name = #{name,jdbcType=VARCHAR},hc_picture = #{picture,jdbcType=VARCHAR},hc_sort = #{sort,jdbcType=INTEGER},hc_show_state = #{showState,jdbcType=INTEGER},hc_start_time = #{startTime,jdbcType=TIMESTAMP},hc_end_time = #{endTime,jdbcType=TIMESTAMP},hc_create_time = #{createTime,jdbcType=TIMESTAMP},hc_update_time = #{updateTime,jdbcType=TIMESTAMP} where hc_id = #{id,jdbcType=BIGINT}</update>
   <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.help.HelpClass">update yeshi_ec_help_class
     <set>
       <if test="name != null">hc_name=#{name,jdbcType=VARCHAR},</if>
       <if test="picture != null">hc_picture=#{picture,jdbcType=VARCHAR},</if>
       <if test="sort != null">hc_sort=#{sort,jdbcType=INTEGER},</if>
       <if test="showState != null">hc_show_state=#{showState,jdbcType=INTEGER},</if>
+      <if test="startTime != null">hc_start_time=#{startTime,jdbcType=TIMESTAMP},</if>
+      <if test="endTime != null">hc_end_time=#{endTime,jdbcType=TIMESTAMP},</if>
       <if test="createTime != null">hc_create_time=#{createTime,jdbcType=TIMESTAMP},</if>
       <if test="updateTime != null">hc_update_time=#{updateTime,jdbcType=TIMESTAMP},</if>
     </set> where hc_id = #{id,jdbcType=BIGINT}

--
Gitblit v1.8.0