12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?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.FreezeMapper">
- <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.Freeze">
- <id property="id" column="id" jdbcType="INTEGER"/>
- <result property="orderNo" column="order_no" jdbcType="VARCHAR"/>
- <result property="tranId" column="tran_id" jdbcType="VARCHAR"/>
- </resultMap>
- <sql id="Base_Column_List">
- id,order_no,tran_id
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from freeze
- where id = #{id,jdbcType=INTEGER}
- </select>
- <select id="getAllList" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from freeze
- order by id
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from freeze
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.Freeze" useGeneratedKeys="true">
- insert into freeze
- ( id,order_no,tran_id
- )
- values (#{id,jdbcType=INTEGER},#{orderNo,jdbcType=VARCHAR},#{tranId,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.Freeze" useGeneratedKeys="true">
- insert into freeze
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">id,</if>
- <if test="orderNo != null">order_no,</if>
- <if test="tranId != null">tran_id,</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="tranId != null">#{tranId,jdbcType=VARCHAR},</if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.Freeze">
- update freeze
- <set>
- <if test="orderNo != null">
- order_no = #{orderNo,jdbcType=VARCHAR},
- </if>
- <if test="tranId != null">
- tran_id = #{tranId,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.Freeze">
- update freeze
- set
- order_no = #{orderNo,jdbcType=VARCHAR},
- tran_id = #{tranId,jdbcType=VARCHAR}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|