TdPParkingShareOrderTempMapper.xml 13.2 KB
<?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.zteits.pay.mapper.TdPParkingShareOrderTempMapper" >
  <resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdPParkingShareOrderTemp" >
    <id column="id" property="id" jdbcType="BIGINT" />
    <result column="order_id" property="orderId" jdbcType="VARCHAR" />
    <result column="ps_pre_in_time" property="psPreInTime" jdbcType="TIMESTAMP" />
    <result column="ps_pre_out_time" property="psPreOutTime" jdbcType="TIMESTAMP" />
    <result column="ps_in_time" property="psInTime" jdbcType="TIMESTAMP" />
    <result column="ps_out_time" property="psOutTime" jdbcType="TIMESTAMP" />
    <result column="ps_service_cust_id" property="psServiceCustId" jdbcType="VARCHAR" />
    <result column="ps_service_tel" property="psServiceTel" jdbcType="VARCHAR" />
    <result column="ps_service_name" property="psServiceName" jdbcType="VARCHAR" />
    <result column="pay_status" property="payStatus" jdbcType="CHAR" />
    <result column="account_type" property="accountType" jdbcType="INTEGER" />
    <result column="pl_name" property="plName" jdbcType="VARCHAR" />
    <result column="pl_no" property="plNo" jdbcType="VARCHAR" />
    <result column="ps_berth_no" property="psBerthNo" jdbcType="VARCHAR" />
    <result column="act_payed_fee" property="actPayedFee" jdbcType="DECIMAL" />
    <result column="payed_fee" property="payedFee" jdbcType="DECIMAL" />
    <result column="not_pay_fee" property="notPayFee" jdbcType="DECIMAL" />
    <result column="total_fee" property="totalFee" jdbcType="DECIMAL" />
    <result column="refunded_fee" property="refundedFee" jdbcType="DECIMAL" />
    <result column="create_emp_id" property="createEmpId" jdbcType="VARCHAR" />
    <result column="create_emp_name" property="createEmpName" jdbcType="VARCHAR" />
    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
    <result column="modfiy_empid" property="modfiyEmpid" jdbcType="VARCHAR" />
    <result column="modfiy_empid_name" property="modfiyEmpidName" jdbcType="VARCHAR" />
    <result column="modfiy_date" property="modfiyDate" jdbcType="TIMESTAMP" />
    <result column="remark" property="remark" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, order_id, ps_pre_in_time, ps_pre_out_time, ps_in_time, ps_out_time, ps_service_cust_id, 
    ps_service_tel, ps_service_name, pay_status, account_type, pl_name, pl_no, ps_berth_no, 
    act_payed_fee, payed_fee, not_pay_fee, total_fee, refunded_fee, create_emp_id, create_emp_name, 
    create_date, modfiy_empid, modfiy_empid_name, modfiy_date, remark
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    select 
    <include refid="Base_Column_List" />
    from td_p_parking_share_order_temp
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    delete from td_p_parking_share_order_temp
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="com.zteits.pay.domain.TdPParkingShareOrderTemp" >
    <selectKey resultType="java.lang.Long" keyProperty="id" order="AFTER" >
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into td_p_parking_share_order_temp (order_id, ps_pre_in_time, ps_pre_out_time, 
      ps_in_time, ps_out_time, ps_service_cust_id, 
      ps_service_tel, ps_service_name, pay_status, 
      account_type, pl_name, pl_no, 
      ps_berth_no, act_payed_fee, payed_fee, 
      not_pay_fee, total_fee, refunded_fee, 
      create_emp_id, create_emp_name, create_date, 
      modfiy_empid, modfiy_empid_name, modfiy_date, 
      remark)
    values (#{orderId,jdbcType=VARCHAR}, #{psPreInTime,jdbcType=TIMESTAMP}, #{psPreOutTime,jdbcType=TIMESTAMP}, 
      #{psInTime,jdbcType=TIMESTAMP}, #{psOutTime,jdbcType=TIMESTAMP}, #{psServiceCustId,jdbcType=VARCHAR}, 
      #{psServiceTel,jdbcType=VARCHAR}, #{psServiceName,jdbcType=VARCHAR}, #{payStatus,jdbcType=CHAR}, 
      #{accountType,jdbcType=INTEGER}, #{plName,jdbcType=VARCHAR}, #{plNo,jdbcType=VARCHAR}, 
      #{psBerthNo,jdbcType=VARCHAR}, #{actPayedFee,jdbcType=DECIMAL}, #{payedFee,jdbcType=DECIMAL}, 
      #{notPayFee,jdbcType=DECIMAL}, #{totalFee,jdbcType=DECIMAL}, #{refundedFee,jdbcType=DECIMAL}, 
      #{createEmpId,jdbcType=VARCHAR}, #{createEmpName,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, 
      #{modfiyEmpid,jdbcType=VARCHAR}, #{modfiyEmpidName,jdbcType=VARCHAR}, #{modfiyDate,jdbcType=TIMESTAMP}, 
      #{remark,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.zteits.pay.domain.TdPParkingShareOrderTemp" >
    <selectKey resultType="java.lang.Long" keyProperty="id" order="AFTER" >
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into td_p_parking_share_order_temp
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="orderId != null" >
        order_id,
      </if>
      <if test="psPreInTime != null" >
        ps_pre_in_time,
      </if>
      <if test="psPreOutTime != null" >
        ps_pre_out_time,
      </if>
      <if test="psInTime != null" >
        ps_in_time,
      </if>
      <if test="psOutTime != null" >
        ps_out_time,
      </if>
      <if test="psServiceCustId != null" >
        ps_service_cust_id,
      </if>
      <if test="psServiceTel != null" >
        ps_service_tel,
      </if>
      <if test="psServiceName != null" >
        ps_service_name,
      </if>
      <if test="payStatus != null" >
        pay_status,
      </if>
      <if test="accountType != null" >
        account_type,
      </if>
      <if test="plName != null" >
        pl_name,
      </if>
      <if test="plNo != null" >
        pl_no,
      </if>
      <if test="psBerthNo != null" >
        ps_berth_no,
      </if>
      <if test="actPayedFee != null" >
        act_payed_fee,
      </if>
      <if test="payedFee != null" >
        payed_fee,
      </if>
      <if test="notPayFee != null" >
        not_pay_fee,
      </if>
      <if test="totalFee != null" >
        total_fee,
      </if>
      <if test="refundedFee != null" >
        refunded_fee,
      </if>
      <if test="createEmpId != null" >
        create_emp_id,
      </if>
      <if test="createEmpName != null" >
        create_emp_name,
      </if>
      <if test="createDate != null" >
        create_date,
      </if>
      <if test="modfiyEmpid != null" >
        modfiy_empid,
      </if>
      <if test="modfiyEmpidName != null" >
        modfiy_empid_name,
      </if>
      <if test="modfiyDate != null" >
        modfiy_date,
      </if>
      <if test="remark != null" >
        remark,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="orderId != null" >
        #{orderId,jdbcType=VARCHAR},
      </if>
      <if test="psPreInTime != null" >
        #{psPreInTime,jdbcType=TIMESTAMP},
      </if>
      <if test="psPreOutTime != null" >
        #{psPreOutTime,jdbcType=TIMESTAMP},
      </if>
      <if test="psInTime != null" >
        #{psInTime,jdbcType=TIMESTAMP},
      </if>
      <if test="psOutTime != null" >
        #{psOutTime,jdbcType=TIMESTAMP},
      </if>
      <if test="psServiceCustId != null" >
        #{psServiceCustId,jdbcType=VARCHAR},
      </if>
      <if test="psServiceTel != null" >
        #{psServiceTel,jdbcType=VARCHAR},
      </if>
      <if test="psServiceName != null" >
        #{psServiceName,jdbcType=VARCHAR},
      </if>
      <if test="payStatus != null" >
        #{payStatus,jdbcType=CHAR},
      </if>
      <if test="accountType != null" >
        #{accountType,jdbcType=INTEGER},
      </if>
      <if test="plName != null" >
        #{plName,jdbcType=VARCHAR},
      </if>
      <if test="plNo != null" >
        #{plNo,jdbcType=VARCHAR},
      </if>
      <if test="psBerthNo != null" >
        #{psBerthNo,jdbcType=VARCHAR},
      </if>
      <if test="actPayedFee != null" >
        #{actPayedFee,jdbcType=DECIMAL},
      </if>
      <if test="payedFee != null" >
        #{payedFee,jdbcType=DECIMAL},
      </if>
      <if test="notPayFee != null" >
        #{notPayFee,jdbcType=DECIMAL},
      </if>
      <if test="totalFee != null" >
        #{totalFee,jdbcType=DECIMAL},
      </if>
      <if test="refundedFee != null" >
        #{refundedFee,jdbcType=DECIMAL},
      </if>
      <if test="createEmpId != null" >
        #{createEmpId,jdbcType=VARCHAR},
      </if>
      <if test="createEmpName != null" >
        #{createEmpName,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null" >
        #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="modfiyEmpid != null" >
        #{modfiyEmpid,jdbcType=VARCHAR},
      </if>
      <if test="modfiyEmpidName != null" >
        #{modfiyEmpidName,jdbcType=VARCHAR},
      </if>
      <if test="modfiyDate != null" >
        #{modfiyDate,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null" >
        #{remark,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.zteits.pay.domain.TdPParkingShareOrderTemp" >
    update td_p_parking_share_order_temp
    <set >
      <if test="orderId != null" >
        order_id = #{orderId,jdbcType=VARCHAR},
      </if>
      <if test="psPreInTime != null" >
        ps_pre_in_time = #{psPreInTime,jdbcType=TIMESTAMP},
      </if>
      <if test="psPreOutTime != null" >
        ps_pre_out_time = #{psPreOutTime,jdbcType=TIMESTAMP},
      </if>
      <if test="psInTime != null" >
        ps_in_time = #{psInTime,jdbcType=TIMESTAMP},
      </if>
      <if test="psOutTime != null" >
        ps_out_time = #{psOutTime,jdbcType=TIMESTAMP},
      </if>
      <if test="psServiceCustId != null" >
        ps_service_cust_id = #{psServiceCustId,jdbcType=VARCHAR},
      </if>
      <if test="psServiceTel != null" >
        ps_service_tel = #{psServiceTel,jdbcType=VARCHAR},
      </if>
      <if test="psServiceName != null" >
        ps_service_name = #{psServiceName,jdbcType=VARCHAR},
      </if>
      <if test="payStatus != null" >
        pay_status = #{payStatus,jdbcType=CHAR},
      </if>
      <if test="accountType != null" >
        account_type = #{accountType,jdbcType=INTEGER},
      </if>
      <if test="plName != null" >
        pl_name = #{plName,jdbcType=VARCHAR},
      </if>
      <if test="plNo != null" >
        pl_no = #{plNo,jdbcType=VARCHAR},
      </if>
      <if test="psBerthNo != null" >
        ps_berth_no = #{psBerthNo,jdbcType=VARCHAR},
      </if>
      <if test="actPayedFee != null" >
        act_payed_fee = #{actPayedFee,jdbcType=DECIMAL},
      </if>
      <if test="payedFee != null" >
        payed_fee = #{payedFee,jdbcType=DECIMAL},
      </if>
      <if test="notPayFee != null" >
        not_pay_fee = #{notPayFee,jdbcType=DECIMAL},
      </if>
      <if test="totalFee != null" >
        total_fee = #{totalFee,jdbcType=DECIMAL},
      </if>
      <if test="refundedFee != null" >
        refunded_fee = #{refundedFee,jdbcType=DECIMAL},
      </if>
      <if test="createEmpId != null" >
        create_emp_id = #{createEmpId,jdbcType=VARCHAR},
      </if>
      <if test="createEmpName != null" >
        create_emp_name = #{createEmpName,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null" >
        create_date = #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="modfiyEmpid != null" >
        modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR},
      </if>
      <if test="modfiyEmpidName != null" >
        modfiy_empid_name = #{modfiyEmpidName,jdbcType=VARCHAR},
      </if>
      <if test="modfiyDate != null" >
        modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null" >
        remark = #{remark,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.zteits.pay.domain.TdPParkingShareOrderTemp" >
    update td_p_parking_share_order_temp
    set order_id = #{orderId,jdbcType=VARCHAR},
      ps_pre_in_time = #{psPreInTime,jdbcType=TIMESTAMP},
      ps_pre_out_time = #{psPreOutTime,jdbcType=TIMESTAMP},
      ps_in_time = #{psInTime,jdbcType=TIMESTAMP},
      ps_out_time = #{psOutTime,jdbcType=TIMESTAMP},
      ps_service_cust_id = #{psServiceCustId,jdbcType=VARCHAR},
      ps_service_tel = #{psServiceTel,jdbcType=VARCHAR},
      ps_service_name = #{psServiceName,jdbcType=VARCHAR},
      pay_status = #{payStatus,jdbcType=CHAR},
      account_type = #{accountType,jdbcType=INTEGER},
      pl_name = #{plName,jdbcType=VARCHAR},
      pl_no = #{plNo,jdbcType=VARCHAR},
      ps_berth_no = #{psBerthNo,jdbcType=VARCHAR},
      act_payed_fee = #{actPayedFee,jdbcType=DECIMAL},
      payed_fee = #{payedFee,jdbcType=DECIMAL},
      not_pay_fee = #{notPayFee,jdbcType=DECIMAL},
      total_fee = #{totalFee,jdbcType=DECIMAL},
      refunded_fee = #{refundedFee,jdbcType=DECIMAL},
      create_emp_id = #{createEmpId,jdbcType=VARCHAR},
      create_emp_name = #{createEmpName,jdbcType=VARCHAR},
      create_date = #{createDate,jdbcType=TIMESTAMP},
      modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR},
      modfiy_empid_name = #{modfiyEmpidName,jdbcType=VARCHAR},
      modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP},
      remark = #{remark,jdbcType=VARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>