<?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.weiqi.mis.mapper.WxXrPemsOrderPushLogMapper" >
  <resultMap id="BaseResultMap" type="com.weiqi.mis.domain.WxXrPemsOrderPushLog" >
    <id column="ID" property="id" jdbcType="INTEGER" />
    <result column="OrderNo" property="orderno" jdbcType="VARCHAR" />
    <result column="WeiXiuOrderNo" property="weixiuorderno" jdbcType="VARCHAR" />
    <result column="RequestParam" property="requestparam" jdbcType="VARCHAR" />
    <result column="Response" property="response" jdbcType="VARCHAR" />
    <result column="Step" property="step" jdbcType="INTEGER" />
    <result column="Status" property="status" jdbcType="INTEGER" />
    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
    <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
    <result column="user_id" property="userId" jdbcType="INTEGER" />
    <result column="user_name" property="userName" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Example_Where_Clause" >
    <where >
      <foreach collection="oredCriteria" item="criteria" separator="or" >
        <if test="criteria.valid" >
          <trim prefix="(" suffix=")" prefixOverrides="and" >
            <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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List" >
    ID, OrderNo, WeiXiuOrderNo, RequestParam, Response, Step, Status, create_time, update_time, 
    user_id, user_name
  </sql>
  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.weiqi.mis.domain.WxXrPemsOrderPushLogExample" >
    select
    <if test="distinct" >
      distinct
    </if>
    'true' as QUERYID,
    <include refid="Base_Column_List" />
    from wx_xr_pems_order_push_log
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null" >
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    from wx_xr_pems_order_push_log
    where ID = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from wx_xr_pems_order_push_log
    where ID = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.weiqi.mis.domain.WxXrPemsOrderPushLog" >
    insert into wx_xr_pems_order_push_log (ID, OrderNo, WeiXiuOrderNo, 
      RequestParam, Response, Step, 
      Status, create_time, update_time, 
      user_id, user_name)
    values (#{id,jdbcType=INTEGER}, #{orderno,jdbcType=VARCHAR}, #{weixiuorderno,jdbcType=VARCHAR}, 
      #{requestparam,jdbcType=VARCHAR}, #{response,jdbcType=VARCHAR}, #{step,jdbcType=INTEGER}, 
      #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{userId,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.weiqi.mis.domain.WxXrPemsOrderPushLog" >
    insert into wx_xr_pems_order_push_log
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        ID,
      </if>
      <if test="orderno != null" >
        OrderNo,
      </if>
      <if test="weixiuorderno != null" >
        WeiXiuOrderNo,
      </if>
      <if test="requestparam != null" >
        RequestParam,
      </if>
      <if test="response != null" >
        Response,
      </if>
      <if test="step != null" >
        Step,
      </if>
      <if test="status != null" >
        Status,
      </if>
      <if test="createTime != null" >
        create_time,
      </if>
      <if test="updateTime != null" >
        update_time,
      </if>
      <if test="userId != null" >
        user_id,
      </if>
      <if test="userName != null" >
        user_name,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=INTEGER},
      </if>
      <if test="orderno != null" >
        #{orderno,jdbcType=VARCHAR},
      </if>
      <if test="weixiuorderno != null" >
        #{weixiuorderno,jdbcType=VARCHAR},
      </if>
      <if test="requestparam != null" >
        #{requestparam,jdbcType=VARCHAR},
      </if>
      <if test="response != null" >
        #{response,jdbcType=VARCHAR},
      </if>
      <if test="step != null" >
        #{step,jdbcType=INTEGER},
      </if>
      <if test="status != null" >
        #{status,jdbcType=INTEGER},
      </if>
      <if test="createTime != null" >
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null" >
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="userId != null" >
        #{userId,jdbcType=INTEGER},
      </if>
      <if test="userName != null" >
        #{userName,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.weiqi.mis.domain.WxXrPemsOrderPushLogExample" resultType="java.lang.Integer" >
    select count(*) from wx_xr_pems_order_push_log
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByPrimaryKeySelective" parameterType="com.weiqi.mis.domain.WxXrPemsOrderPushLog" >
    update wx_xr_pems_order_push_log
    <set >
      <if test="orderno != null" >
        OrderNo = #{orderno,jdbcType=VARCHAR},
      </if>
      <if test="weixiuorderno != null" >
        WeiXiuOrderNo = #{weixiuorderno,jdbcType=VARCHAR},
      </if>
      <if test="requestparam != null" >
        RequestParam = #{requestparam,jdbcType=VARCHAR},
      </if>
      <if test="response != null" >
        Response = #{response,jdbcType=VARCHAR},
      </if>
      <if test="step != null" >
        Step = #{step,jdbcType=INTEGER},
      </if>
      <if test="status != null" >
        Status = #{status,jdbcType=INTEGER},
      </if>
      <if test="createTime != null" >
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null" >
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="userId != null" >
        user_id = #{userId,jdbcType=INTEGER},
      </if>
      <if test="userName != null" >
        user_name = #{userName,jdbcType=VARCHAR},
      </if>
    </set>
    where ID = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.weiqi.mis.domain.WxXrPemsOrderPushLog" >
    update wx_xr_pems_order_push_log
    set OrderNo = #{orderno,jdbcType=VARCHAR},
      WeiXiuOrderNo = #{weixiuorderno,jdbcType=VARCHAR},
      RequestParam = #{requestparam,jdbcType=VARCHAR},
      Response = #{response,jdbcType=VARCHAR},
      Step = #{step,jdbcType=INTEGER},
      Status = #{status,jdbcType=INTEGER},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      user_id = #{userId,jdbcType=INTEGER},
      user_name = #{userName,jdbcType=VARCHAR}
    where ID = #{id,jdbcType=INTEGER}
  </update>
</mapper>