<?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="org.linlinjava.jz.db.dao.JzTicketMapper">
  <resultMap id="BaseResultMap" type="org.linlinjava.jz.db.domain.JzTicket">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="ticket_sn" jdbcType="VARCHAR" property="ticketSn" />
    <result column="customer_id" jdbcType="INTEGER" property="customerId" />
    <result column="ticket_title" jdbcType="VARCHAR" property="ticketTitle" />
    <result column="ticket_des" jdbcType="VARCHAR" property="ticketDes" />
    <result column="ticket_special" jdbcType="VARCHAR" property="ticketSpecial" />
    <result column="ticket_level" jdbcType="SMALLINT" property="ticketLevel" />
    <result column="ticket_type" jdbcType="INTEGER" property="ticketType" />
    <result column="order_id" jdbcType="INTEGER" property="orderId" />
    <result column="goods_id" jdbcType="INTEGER" property="goodsId" />
    <result column="task_source" jdbcType="INTEGER" property="taskSource" />
    <result column="source" jdbcType="VARCHAR" property="source" />
    <result column="status" jdbcType="SMALLINT" property="status" />
    <result column="substatus" jdbcType="SMALLINT" property="substatus" />
    <result column="remark" jdbcType="VARCHAR" property="remark" />
    <result column="servicer" jdbcType="VARCHAR" property="servicer" />
    <result column="service_time" jdbcType="VARCHAR" property="serviceTime" />
    <result column="result" jdbcType="SMALLINT" property="result" />
    <result column="result_memo" jdbcType="VARCHAR" property="resultMemo" />
    <result column="skill_group_id" jdbcType="INTEGER" property="skillGroupId" />
    <result column="handle_time" jdbcType="INTEGER" property="handleTime" />
    <result column="handler" jdbcType="INTEGER" property="handler" />
    <result column="expiration_time" jdbcType="TIMESTAMP" property="expirationTime" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_user" jdbcType="INTEGER" property="createUser" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="update_user" jdbcType="INTEGER" property="updateUser" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    id, ticket_sn, customer_id, ticket_title, ticket_des, ticket_special, ticket_level, 
    ticket_type, order_id, goods_id, task_source, `source`, `status`, substatus, remark, 
    servicer, service_time, `result`, result_memo, skill_group_id, handle_time, `handler`, 
    expiration_time, create_time, create_user, update_time, update_user
  </sql>
  <select id="selectByExample" parameterType="org.linlinjava.jz.db.domain.JzTicketExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from jz_ticket
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="example != null and example.distinct">
      distinct
    </if>
    <choose>
      <when test="selective != null and selective.length &gt; 0">
        <foreach collection="selective" item="column" separator=",">
          ${column.aliasedEscapedColumnName}
        </foreach>
      </when>
      <otherwise>
        <include refid="Base_Column_List" />
      </otherwise>
    </choose>
    from jz_ticket
    <if test="example != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
    <if test="example != null and example.orderByClause != null">
      order by ${example.orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from jz_ticket
    where id = #{id,jdbcType=INTEGER}
  </select>
  <select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <choose>
      <when test="selective != null and selective.length &gt; 0">
        <foreach collection="selective" item="column" separator=",">
          ${column.aliasedEscapedColumnName}
        </foreach>
      </when>
      <otherwise>
        <include refid="Base_Column_List" />
      </otherwise>
    </choose>
    from jz_ticket
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from jz_ticket
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="org.linlinjava.jz.db.domain.JzTicketExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from jz_ticket
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="org.linlinjava.jz.db.domain.JzTicket">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into jz_ticket (ticket_sn, customer_id, ticket_title, 
      ticket_des, ticket_special, ticket_level, 
      ticket_type, order_id, goods_id, 
      task_source, `source`, `status`, 
      substatus, remark, servicer, 
      service_time, `result`, result_memo, 
      skill_group_id, handle_time, `handler`, 
      expiration_time, create_time, create_user, 
      update_time, update_user)
    values (#{ticketSn,jdbcType=VARCHAR}, #{customerId,jdbcType=INTEGER}, #{ticketTitle,jdbcType=VARCHAR}, 
      #{ticketDes,jdbcType=VARCHAR}, #{ticketSpecial,jdbcType=VARCHAR}, #{ticketLevel,jdbcType=SMALLINT}, 
      #{ticketType,jdbcType=INTEGER}, #{orderId,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER}, 
      #{taskSource,jdbcType=INTEGER}, #{source,jdbcType=VARCHAR}, #{status,jdbcType=SMALLINT}, 
      #{substatus,jdbcType=SMALLINT}, #{remark,jdbcType=VARCHAR}, #{servicer,jdbcType=VARCHAR}, 
      #{serviceTime,jdbcType=VARCHAR}, #{result,jdbcType=SMALLINT}, #{resultMemo,jdbcType=VARCHAR}, 
      #{skillGroupId,jdbcType=INTEGER}, #{handleTime,jdbcType=INTEGER}, #{handler,jdbcType=INTEGER}, 
      #{expirationTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=INTEGER}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" parameterType="org.linlinjava.jz.db.domain.JzTicket">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into jz_ticket
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="ticketSn != null">
        ticket_sn,
      </if>
      <if test="customerId != null">
        customer_id,
      </if>
      <if test="ticketTitle != null">
        ticket_title,
      </if>
      <if test="ticketDes != null">
        ticket_des,
      </if>
      <if test="ticketSpecial != null">
        ticket_special,
      </if>
      <if test="ticketLevel != null">
        ticket_level,
      </if>
      <if test="ticketType != null">
        ticket_type,
      </if>
      <if test="orderId != null">
        order_id,
      </if>
      <if test="goodsId != null">
        goods_id,
      </if>
      <if test="taskSource != null">
        task_source,
      </if>
      <if test="source != null">
        `source`,
      </if>
      <if test="status != null">
        `status`,
      </if>
      <if test="substatus != null">
        substatus,
      </if>
      <if test="remark != null">
        remark,
      </if>
      <if test="servicer != null">
        servicer,
      </if>
      <if test="serviceTime != null">
        service_time,
      </if>
      <if test="result != null">
        `result`,
      </if>
      <if test="resultMemo != null">
        result_memo,
      </if>
      <if test="skillGroupId != null">
        skill_group_id,
      </if>
      <if test="handleTime != null">
        handle_time,
      </if>
      <if test="handler != null">
        `handler`,
      </if>
      <if test="expirationTime != null">
        expiration_time,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createUser != null">
        create_user,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="updateUser != null">
        update_user,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="ticketSn != null">
        #{ticketSn,jdbcType=VARCHAR},
      </if>
      <if test="customerId != null">
        #{customerId,jdbcType=INTEGER},
      </if>
      <if test="ticketTitle != null">
        #{ticketTitle,jdbcType=VARCHAR},
      </if>
      <if test="ticketDes != null">
        #{ticketDes,jdbcType=VARCHAR},
      </if>
      <if test="ticketSpecial != null">
        #{ticketSpecial,jdbcType=VARCHAR},
      </if>
      <if test="ticketLevel != null">
        #{ticketLevel,jdbcType=SMALLINT},
      </if>
      <if test="ticketType != null">
        #{ticketType,jdbcType=INTEGER},
      </if>
      <if test="orderId != null">
        #{orderId,jdbcType=INTEGER},
      </if>
      <if test="goodsId != null">
        #{goodsId,jdbcType=INTEGER},
      </if>
      <if test="taskSource != null">
        #{taskSource,jdbcType=INTEGER},
      </if>
      <if test="source != null">
        #{source,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=SMALLINT},
      </if>
      <if test="substatus != null">
        #{substatus,jdbcType=SMALLINT},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="servicer != null">
        #{servicer,jdbcType=VARCHAR},
      </if>
      <if test="serviceTime != null">
        #{serviceTime,jdbcType=VARCHAR},
      </if>
      <if test="result != null">
        #{result,jdbcType=SMALLINT},
      </if>
      <if test="resultMemo != null">
        #{resultMemo,jdbcType=VARCHAR},
      </if>
      <if test="skillGroupId != null">
        #{skillGroupId,jdbcType=INTEGER},
      </if>
      <if test="handleTime != null">
        #{handleTime,jdbcType=INTEGER},
      </if>
      <if test="handler != null">
        #{handler,jdbcType=INTEGER},
      </if>
      <if test="expirationTime != null">
        #{expirationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUser != null">
        #{createUser,jdbcType=INTEGER},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUser != null">
        #{updateUser,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="org.linlinjava.jz.db.domain.JzTicketExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from jz_ticket
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update jz_ticket
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.ticketSn != null">
        ticket_sn = #{record.ticketSn,jdbcType=VARCHAR},
      </if>
      <if test="record.customerId != null">
        customer_id = #{record.customerId,jdbcType=INTEGER},
      </if>
      <if test="record.ticketTitle != null">
        ticket_title = #{record.ticketTitle,jdbcType=VARCHAR},
      </if>
      <if test="record.ticketDes != null">
        ticket_des = #{record.ticketDes,jdbcType=VARCHAR},
      </if>
      <if test="record.ticketSpecial != null">
        ticket_special = #{record.ticketSpecial,jdbcType=VARCHAR},
      </if>
      <if test="record.ticketLevel != null">
        ticket_level = #{record.ticketLevel,jdbcType=SMALLINT},
      </if>
      <if test="record.ticketType != null">
        ticket_type = #{record.ticketType,jdbcType=INTEGER},
      </if>
      <if test="record.orderId != null">
        order_id = #{record.orderId,jdbcType=INTEGER},
      </if>
      <if test="record.goodsId != null">
        goods_id = #{record.goodsId,jdbcType=INTEGER},
      </if>
      <if test="record.taskSource != null">
        task_source = #{record.taskSource,jdbcType=INTEGER},
      </if>
      <if test="record.source != null">
        `source` = #{record.source,jdbcType=VARCHAR},
      </if>
      <if test="record.status != null">
        `status` = #{record.status,jdbcType=SMALLINT},
      </if>
      <if test="record.substatus != null">
        substatus = #{record.substatus,jdbcType=SMALLINT},
      </if>
      <if test="record.remark != null">
        remark = #{record.remark,jdbcType=VARCHAR},
      </if>
      <if test="record.servicer != null">
        servicer = #{record.servicer,jdbcType=VARCHAR},
      </if>
      <if test="record.serviceTime != null">
        service_time = #{record.serviceTime,jdbcType=VARCHAR},
      </if>
      <if test="record.result != null">
        `result` = #{record.result,jdbcType=SMALLINT},
      </if>
      <if test="record.resultMemo != null">
        result_memo = #{record.resultMemo,jdbcType=VARCHAR},
      </if>
      <if test="record.skillGroupId != null">
        skill_group_id = #{record.skillGroupId,jdbcType=INTEGER},
      </if>
      <if test="record.handleTime != null">
        handle_time = #{record.handleTime,jdbcType=INTEGER},
      </if>
      <if test="record.handler != null">
        `handler` = #{record.handler,jdbcType=INTEGER},
      </if>
      <if test="record.expirationTime != null">
        expiration_time = #{record.expirationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createUser != null">
        create_user = #{record.createUser,jdbcType=INTEGER},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateUser != null">
        update_user = #{record.updateUser,jdbcType=INTEGER},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update jz_ticket
    set id = #{record.id,jdbcType=INTEGER},
      ticket_sn = #{record.ticketSn,jdbcType=VARCHAR},
      customer_id = #{record.customerId,jdbcType=INTEGER},
      ticket_title = #{record.ticketTitle,jdbcType=VARCHAR},
      ticket_des = #{record.ticketDes,jdbcType=VARCHAR},
      ticket_special = #{record.ticketSpecial,jdbcType=VARCHAR},
      ticket_level = #{record.ticketLevel,jdbcType=SMALLINT},
      ticket_type = #{record.ticketType,jdbcType=INTEGER},
      order_id = #{record.orderId,jdbcType=INTEGER},
      goods_id = #{record.goodsId,jdbcType=INTEGER},
      task_source = #{record.taskSource,jdbcType=INTEGER},
      `source` = #{record.source,jdbcType=VARCHAR},
      `status` = #{record.status,jdbcType=SMALLINT},
      substatus = #{record.substatus,jdbcType=SMALLINT},
      remark = #{record.remark,jdbcType=VARCHAR},
      servicer = #{record.servicer,jdbcType=VARCHAR},
      service_time = #{record.serviceTime,jdbcType=VARCHAR},
      `result` = #{record.result,jdbcType=SMALLINT},
      result_memo = #{record.resultMemo,jdbcType=VARCHAR},
      skill_group_id = #{record.skillGroupId,jdbcType=INTEGER},
      handle_time = #{record.handleTime,jdbcType=INTEGER},
      `handler` = #{record.handler,jdbcType=INTEGER},
      expiration_time = #{record.expirationTime,jdbcType=TIMESTAMP},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      create_user = #{record.createUser,jdbcType=INTEGER},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_user = #{record.updateUser,jdbcType=INTEGER}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="org.linlinjava.jz.db.domain.JzTicket">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update jz_ticket
    <set>
      <if test="ticketSn != null">
        ticket_sn = #{ticketSn,jdbcType=VARCHAR},
      </if>
      <if test="customerId != null">
        customer_id = #{customerId,jdbcType=INTEGER},
      </if>
      <if test="ticketTitle != null">
        ticket_title = #{ticketTitle,jdbcType=VARCHAR},
      </if>
      <if test="ticketDes != null">
        ticket_des = #{ticketDes,jdbcType=VARCHAR},
      </if>
      <if test="ticketSpecial != null">
        ticket_special = #{ticketSpecial,jdbcType=VARCHAR},
      </if>
      <if test="ticketLevel != null">
        ticket_level = #{ticketLevel,jdbcType=SMALLINT},
      </if>
      <if test="ticketType != null">
        ticket_type = #{ticketType,jdbcType=INTEGER},
      </if>
      <if test="orderId != null">
        order_id = #{orderId,jdbcType=INTEGER},
      </if>
      <if test="goodsId != null">
        goods_id = #{goodsId,jdbcType=INTEGER},
      </if>
      <if test="taskSource != null">
        task_source = #{taskSource,jdbcType=INTEGER},
      </if>
      <if test="source != null">
        `source` = #{source,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        `status` = #{status,jdbcType=SMALLINT},
      </if>
      <if test="substatus != null">
        substatus = #{substatus,jdbcType=SMALLINT},
      </if>
      <if test="remark != null">
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="servicer != null">
        servicer = #{servicer,jdbcType=VARCHAR},
      </if>
      <if test="serviceTime != null">
        service_time = #{serviceTime,jdbcType=VARCHAR},
      </if>
      <if test="result != null">
        `result` = #{result,jdbcType=SMALLINT},
      </if>
      <if test="resultMemo != null">
        result_memo = #{resultMemo,jdbcType=VARCHAR},
      </if>
      <if test="skillGroupId != null">
        skill_group_id = #{skillGroupId,jdbcType=INTEGER},
      </if>
      <if test="handleTime != null">
        handle_time = #{handleTime,jdbcType=INTEGER},
      </if>
      <if test="handler != null">
        `handler` = #{handler,jdbcType=INTEGER},
      </if>
      <if test="expirationTime != null">
        expiration_time = #{expirationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUser != null">
        create_user = #{createUser,jdbcType=INTEGER},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUser != null">
        update_user = #{updateUser,jdbcType=INTEGER},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="org.linlinjava.jz.db.domain.JzTicket">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update jz_ticket
    set ticket_sn = #{ticketSn,jdbcType=VARCHAR},
      customer_id = #{customerId,jdbcType=INTEGER},
      ticket_title = #{ticketTitle,jdbcType=VARCHAR},
      ticket_des = #{ticketDes,jdbcType=VARCHAR},
      ticket_special = #{ticketSpecial,jdbcType=VARCHAR},
      ticket_level = #{ticketLevel,jdbcType=SMALLINT},
      ticket_type = #{ticketType,jdbcType=INTEGER},
      order_id = #{orderId,jdbcType=INTEGER},
      goods_id = #{goodsId,jdbcType=INTEGER},
      task_source = #{taskSource,jdbcType=INTEGER},
      `source` = #{source,jdbcType=VARCHAR},
      `status` = #{status,jdbcType=SMALLINT},
      substatus = #{substatus,jdbcType=SMALLINT},
      remark = #{remark,jdbcType=VARCHAR},
      servicer = #{servicer,jdbcType=VARCHAR},
      service_time = #{serviceTime,jdbcType=VARCHAR},
      `result` = #{result,jdbcType=SMALLINT},
      result_memo = #{resultMemo,jdbcType=VARCHAR},
      skill_group_id = #{skillGroupId,jdbcType=INTEGER},
      handle_time = #{handleTime,jdbcType=INTEGER},
      `handler` = #{handler,jdbcType=INTEGER},
      expiration_time = #{expirationTime,jdbcType=TIMESTAMP},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_user = #{createUser,jdbcType=INTEGER},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_user = #{updateUser,jdbcType=INTEGER}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <select id="selectOneByExample" parameterType="org.linlinjava.jz.db.domain.JzTicketExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <include refid="Base_Column_List" />
    from jz_ticket
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
  <select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <choose>
      <when test="selective != null and selective.length &gt; 0">
        <foreach collection="selective" item="column" separator=",">
          ${column.aliasedEscapedColumnName}
        </foreach>
      </when>
      <otherwise>
        <include refid="Base_Column_List" />
      </otherwise>
    </choose>
    from jz_ticket
    <if test="example != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
    <if test="example != null and example.orderByClause != null">
      order by ${example.orderByClause}
    </if>
    limit 1
  </select>
</mapper>