123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- <?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.js.kbt.mapper.VparkOrderMapper">
- <resultMap id="BaseResultMap" type="com.js.kbt.model.VparkOrder">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Fri Nov 10 15:17:28 CST 2017.
- -->
- <result column="id" jdbcType="INTEGER" property="id" />
- <result column="order_identity" jdbcType="VARCHAR" property="orderIdentity" />
- <result column="identity" jdbcType="VARCHAR" property="identity" />
- <result column="order_type" jdbcType="INTEGER" property="orderType" />
- <result column="startTime" jdbcType="TIMESTAMP" property="starttime" />
- <result column="endTime" jdbcType="TIMESTAMP" property="endtime" />
- <result column="user_id" jdbcType="INTEGER" property="userId" />
- <result column="cost" jdbcType="INTEGER" property="cost" />
- <result column="rule" jdbcType="VARCHAR" property="rule" />
- <result column="discount" jdbcType="DOUBLE" property="discount" />
- <result column="useCoupon" jdbcType="BIT" property="usecoupon" />
- <result column="coupon_no" jdbcType="VARCHAR" property="couponNo" />
- <result column="memo" jdbcType="VARCHAR" property="memo" />
- <result column="address" jdbcType="VARCHAR" property="address" />
- <result column="lng" jdbcType="DOUBLE" property="lng" />
- <result column="lat" jdbcType="DOUBLE" property="lat" />
- <result column="user_name" jdbcType="VARCHAR" property="userName" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Fri Nov 10 15:17:28 CST 2017.
- -->
- <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 - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Fri Nov 10 15:17:28 CST 2017.
- -->
- <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 - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Fri Nov 10 15:17:28 CST 2017.
- -->
- id, order_identity, identity, order_type, startTime, endTime, user_id, cost, rule,
- discount, useCoupon, coupon_no, memo, address, lng, lat, user_name
- </sql>
- <select id="selectByExample" parameterType="com.js.kbt.model.VparkOrderExample" resultMap="BaseResultMap">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Fri Nov 10 15:17:28 CST 2017.
- -->
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from vpark_order
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <delete id="deleteByExample" parameterType="com.js.kbt.model.VparkOrderExample">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Fri Nov 10 15:17:28 CST 2017.
- -->
- delete from vpark_order
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.js.kbt.model.VparkOrder">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Fri Nov 10 15:17:28 CST 2017.
- -->
- insert into vpark_order (id, order_identity, identity,
- order_type, startTime, endTime,
- user_id, cost, rule,
- discount, useCoupon, coupon_no,
- memo, address, lng,
- lat, user_name)
- values (#{id,jdbcType=INTEGER}, #{orderIdentity,jdbcType=VARCHAR}, #{identity,jdbcType=VARCHAR},
- #{orderType,jdbcType=INTEGER}, #{starttime,jdbcType=TIMESTAMP}, #{endtime,jdbcType=TIMESTAMP},
- #{userId,jdbcType=INTEGER}, #{cost,jdbcType=INTEGER}, #{rule,jdbcType=VARCHAR},
- #{discount,jdbcType=DOUBLE}, #{usecoupon,jdbcType=BIT}, #{couponNo,jdbcType=VARCHAR},
- #{memo,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{lng,jdbcType=DOUBLE},
- #{lat,jdbcType=DOUBLE}, #{userName,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.js.kbt.model.VparkOrder">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Fri Nov 10 15:17:28 CST 2017.
- -->
- insert into vpark_order
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="orderIdentity != null">
- order_identity,
- </if>
- <if test="identity != null">
- identity,
- </if>
- <if test="orderType != null">
- order_type,
- </if>
- <if test="starttime != null">
- startTime,
- </if>
- <if test="endtime != null">
- endTime,
- </if>
- <if test="userId != null">
- user_id,
- </if>
- <if test="cost != null">
- cost,
- </if>
- <if test="rule != null">
- rule,
- </if>
- <if test="discount != null">
- discount,
- </if>
- <if test="usecoupon != null">
- useCoupon,
- </if>
- <if test="couponNo != null">
- coupon_no,
- </if>
- <if test="memo != null">
- memo,
- </if>
- <if test="address != null">
- address,
- </if>
- <if test="lng != null">
- lng,
- </if>
- <if test="lat != null">
- lat,
- </if>
- <if test="userName != null">
- user_name,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=INTEGER},
- </if>
- <if test="orderIdentity != null">
- #{orderIdentity,jdbcType=VARCHAR},
- </if>
- <if test="identity != null">
- #{identity,jdbcType=VARCHAR},
- </if>
- <if test="orderType != null">
- #{orderType,jdbcType=INTEGER},
- </if>
- <if test="starttime != null">
- #{starttime,jdbcType=TIMESTAMP},
- </if>
- <if test="endtime != null">
- #{endtime,jdbcType=TIMESTAMP},
- </if>
- <if test="userId != null">
- #{userId,jdbcType=INTEGER},
- </if>
- <if test="cost != null">
- #{cost,jdbcType=INTEGER},
- </if>
- <if test="rule != null">
- #{rule,jdbcType=VARCHAR},
- </if>
- <if test="discount != null">
- #{discount,jdbcType=DOUBLE},
- </if>
- <if test="usecoupon != null">
- #{usecoupon,jdbcType=BIT},
- </if>
- <if test="couponNo != null">
- #{couponNo,jdbcType=VARCHAR},
- </if>
- <if test="memo != null">
- #{memo,jdbcType=VARCHAR},
- </if>
- <if test="address != null">
- #{address,jdbcType=VARCHAR},
- </if>
- <if test="lng != null">
- #{lng,jdbcType=DOUBLE},
- </if>
- <if test="lat != null">
- #{lat,jdbcType=DOUBLE},
- </if>
- <if test="userName != null">
- #{userName,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.js.kbt.model.VparkOrderExample" resultType="java.lang.Integer">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Fri Nov 10 15:17:28 CST 2017.
- -->
- select count(*) from vpark_order
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Fri Nov 10 15:17:28 CST 2017.
- -->
- update vpark_order
- <set>
- <if test="record.id != null">
- id = #{record.id,jdbcType=INTEGER},
- </if>
- <if test="record.orderIdentity != null">
- order_identity = #{record.orderIdentity,jdbcType=VARCHAR},
- </if>
- <if test="record.identity != null">
- identity = #{record.identity,jdbcType=VARCHAR},
- </if>
- <if test="record.orderType != null">
- order_type = #{record.orderType,jdbcType=INTEGER},
- </if>
- <if test="record.starttime != null">
- startTime = #{record.starttime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.endtime != null">
- endTime = #{record.endtime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.userId != null">
- user_id = #{record.userId,jdbcType=INTEGER},
- </if>
- <if test="record.cost != null">
- cost = #{record.cost,jdbcType=INTEGER},
- </if>
- <if test="record.rule != null">
- rule = #{record.rule,jdbcType=VARCHAR},
- </if>
- <if test="record.discount != null">
- discount = #{record.discount,jdbcType=DOUBLE},
- </if>
- <if test="record.usecoupon != null">
- useCoupon = #{record.usecoupon,jdbcType=BIT},
- </if>
- <if test="record.couponNo != null">
- coupon_no = #{record.couponNo,jdbcType=VARCHAR},
- </if>
- <if test="record.memo != null">
- memo = #{record.memo,jdbcType=VARCHAR},
- </if>
- <if test="record.address != null">
- address = #{record.address,jdbcType=VARCHAR},
- </if>
- <if test="record.lng != null">
- lng = #{record.lng,jdbcType=DOUBLE},
- </if>
- <if test="record.lat != null">
- lat = #{record.lat,jdbcType=DOUBLE},
- </if>
- <if test="record.userName != null">
- user_name = #{record.userName,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Fri Nov 10 15:17:28 CST 2017.
- -->
- update vpark_order
- set id = #{record.id,jdbcType=INTEGER},
- order_identity = #{record.orderIdentity,jdbcType=VARCHAR},
- identity = #{record.identity,jdbcType=VARCHAR},
- order_type = #{record.orderType,jdbcType=INTEGER},
- startTime = #{record.starttime,jdbcType=TIMESTAMP},
- endTime = #{record.endtime,jdbcType=TIMESTAMP},
- user_id = #{record.userId,jdbcType=INTEGER},
- cost = #{record.cost,jdbcType=INTEGER},
- rule = #{record.rule,jdbcType=VARCHAR},
- discount = #{record.discount,jdbcType=DOUBLE},
- useCoupon = #{record.usecoupon,jdbcType=BIT},
- coupon_no = #{record.couponNo,jdbcType=VARCHAR},
- memo = #{record.memo,jdbcType=VARCHAR},
- address = #{record.address,jdbcType=VARCHAR},
- lng = #{record.lng,jdbcType=DOUBLE},
- lat = #{record.lat,jdbcType=DOUBLE},
- user_name = #{record.userName,jdbcType=VARCHAR}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- </mapper>
|