<?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.fjs.scenic.mapper.good.StopTimeMapper" >
  <resultMap id="BaseResultMap" type="com.fjs.scenic.entity.good.StopTime" >
    <result column="id" property="id" jdbcType="INTEGER" />
    <result column="start_time" property="startTime" jdbcType="VARCHAR" />
    <result column="end_time" property="endTime" jdbcType="VARCHAR" />
  </resultMap>
    <!-- <constructor >
      <idArg column="id" propti jdbcType="INTEGER" javaType="java.lang.Integer" />
      <arg column="start_time" jdbcType="VARCHAR" javaType="java.lang.String" />
      <arg column="end_time" jdbcType="VARCHAR" javaType="java.lang.String" />
    </constructor>
  </resultMap> -->
  <sql id="Base_Column_List" >
    id, start_time, end_time
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    from stop_time
    where id = #{id,jdbcType=INTEGER}
  </select>
  
  <select id="selectAll" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from stop_time
  </select>
  
  <delete id="delete">
    delete from stop_time
  </delete>
  
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from stop_time
    where id = #{id,jdbcType=INTEGER}
  </delete>
  
  <insert id="insertSelective" parameterType="com.fjs.scenic.entity.good.StopTime">
    insert into stop_time
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="startTime != null" >
        start_time,
      </if>
      <if test="endTime != null" >
        end_time,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="startTime != null" >
        #{startTime,jdbcType=VARCHAR},
      </if>
      <if test="endTime != null" >
        #{endTime,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.fjs.scenic.entity.good.StopTime" >
    update stop_time
    <set >
      <if test="startTime != null" >
        start_time = #{startTime,jdbcType=VARCHAR},
      </if>
      <if test="endTime != null" >
        end_time = #{endTime,jdbcType=VARCHAR},
      </if>
    </set>
  </update>
</mapper>