123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?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.mofangchuxing.aska.dao.mapper.RefundOrderMapper">
- <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.RefundOrder">
- <id property="id" column="id" jdbcType="INTEGER"/>
- <result property="orderSn" column="order_sn" jdbcType="VARCHAR"/>
- <result property="refundOrderSn" column="refund_order_sn" jdbcType="VARCHAR"/>
- <result property="refundAmount" column="refund_amount" jdbcType="INTEGER"/>
- <result property="message" column="message" jdbcType="VARCHAR"/>
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
- <result property="modifiedTime" column="modified_time" jdbcType="TIMESTAMP"/>
- </resultMap>
- <sql id="Base_Column_List">
- id,order_sn,refund_order_sn,
- refund_amount,message,create_time,
- modified_time
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from refund_order
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from refund_order
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder" useGeneratedKeys="true">
- insert into refund_order
- ( id,order_sn,refund_order_sn
- ,refund_amount,message,create_time
- ,modified_time)
- values (#{id,jdbcType=INTEGER},#{orderSn,jdbcType=VARCHAR},#{refundOrderSn,jdbcType=VARCHAR}
- ,#{refundAmount,jdbcType=INTEGER},#{message,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP}
- ,#{modifiedTime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder" useGeneratedKeys="true">
- insert into refund_order
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">id,</if>
- <if test="orderSn != null">order_sn,</if>
- <if test="refundOrderSn != null">refund_order_sn,</if>
- <if test="refundAmount != null">refund_amount,</if>
- <if test="message != null">message,</if>
- <if test="createTime != null">create_time,</if>
- <if test="modifiedTime != null">modified_time,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">#{id,jdbcType=INTEGER},</if>
- <if test="orderSn != null">#{orderSn,jdbcType=VARCHAR},</if>
- <if test="refundOrderSn != null">#{refundOrderSn,jdbcType=VARCHAR},</if>
- <if test="refundAmount != null">#{refundAmount,jdbcType=INTEGER},</if>
- <if test="message != null">#{message,jdbcType=VARCHAR},</if>
- <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
- <if test="modifiedTime != null">#{modifiedTime,jdbcType=TIMESTAMP},</if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder">
- update refund_order
- <set>
- <if test="orderSn != null">
- order_sn = #{orderSn,jdbcType=VARCHAR},
- </if>
- <if test="refundOrderSn != null">
- refund_order_sn = #{refundOrderSn,jdbcType=VARCHAR},
- </if>
- <if test="refundAmount != null">
- refund_amount = #{refundAmount,jdbcType=INTEGER},
- </if>
- <if test="message != null">
- message = #{message,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="modifiedTime != null">
- modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder">
- update refund_order
- set
- order_sn = #{orderSn,jdbcType=VARCHAR},
- refund_order_sn = #{refundOrderSn,jdbcType=VARCHAR},
- refund_amount = #{refundAmount,jdbcType=INTEGER},
- message = #{message,jdbcType=VARCHAR},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- modified_time = #{modifiedTime,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|