123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760 |
- <?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.ParkingPointMapper">
- <resultMap id="BaseResultMap" type="com.js.kbt.model.ParkingPoint">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- <id column="id" jdbcType="INTEGER" property="id" />
- <result column="lat" jdbcType="DOUBLE" property="lat" />
- <result column="lng" jdbcType="DOUBLE" property="lng" />
- <result column="geo" jdbcType="VARCHAR" property="geo" />
- <result column="distance" jdbcType="DOUBLE" property="distance" />
- <result column="identity" jdbcType="VARCHAR" property="identity" />
- <result column="charge" jdbcType="INTEGER" property="charge" />
- <result column="charge_rule" jdbcType="INTEGER" property="chargeRule" />
- <result column="available" jdbcType="BIT" property="available" />
- <result column="last_occupier_id" jdbcType="INTEGER" property="lastOccupierId" />
- <result column="share_user_id" jdbcType="INTEGER" property="shareUserId" />
- <result column="share_mobile" jdbcType="VARCHAR" property="shareMobile" />
- <result column="book_time" jdbcType="TIMESTAMP" property="bookTime" />
- <result column="address" jdbcType="VARCHAR" property="address" />
- <result column="preferential" jdbcType="VARCHAR" property="preferential" />
- <result column="memo" jdbcType="VARCHAR" property="memo" />
- <result column="start_date" jdbcType="VARCHAR" property="startDate" />
- <result column="end_date" jdbcType="VARCHAR" property="endDate" />
- <result column="start_time" jdbcType="VARCHAR" property="startTime" />
- <result column="end_time" jdbcType="VARCHAR" property="endTime" />
- <result column="sms" jdbcType="VARCHAR" property="sms" />
- <result column="code" jdbcType="INTEGER" property="code" />
- <result column="charge_type" jdbcType="INTEGER" property="chargeType" />
- <result column="user_id" jdbcType="INTEGER" property="userId" />
- <result column="community_id" jdbcType="INTEGER" property="communityId" />
- <result column="share" jdbcType="INTEGER" property="share" />
- <result column="setup" jdbcType="INTEGER" property="setup" />
- <result column="status" jdbcType="INTEGER" property="status" />
- <result column="free_time" jdbcType="INTEGER" property="freeTime" />
- <result column="type" jdbcType="INTEGER" property="type" />
- <result column="user_income" jdbcType="INTEGER" property="userIncome" />
- <result column="com_income" jdbcType="INTEGER" property="comIncome" />
- <result column="platfrom_income" jdbcType="INTEGER" property="platfromIncome" />
- <result column="point_state" jdbcType="INTEGER" property="pointState" />
- <result column="battery" jdbcType="REAL" property="battery" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 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 - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 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 - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- id, lat, lng, geo, distance, identity, charge, charge_rule, available, last_occupier_id,
- share_user_id, share_mobile, book_time, address, preferential, memo, start_date,
- end_date, start_time, end_time, sms, code, charge_type, user_id, community_id, share,
- setup, status, free_time, type, user_income, com_income, platfrom_income, point_state,
- battery
- </sql>
- <select id="selectByExample" parameterType="com.js.kbt.model.ParkingPointExample" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from parking_point
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- select
- <include refid="Base_Column_List" />
- from parking_point
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- delete from parking_point
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByExample" parameterType="com.js.kbt.model.ParkingPointExample">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- delete from parking_point
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.js.kbt.model.ParkingPoint">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
- SELECT LAST_INSERT_ID()
- </selectKey>
- insert into parking_point (lat, lng, geo,
- distance, identity, charge,
- charge_rule, available, last_occupier_id,
- share_user_id, share_mobile, book_time,
- address, preferential, memo,
- start_date, end_date, start_time,
- end_time, sms, code,
- charge_type, user_id, community_id,
- share, setup, status,
- free_time, type, user_income,
- com_income, platfrom_income, point_state,
- battery)
- values (#{lat,jdbcType=DOUBLE}, #{lng,jdbcType=DOUBLE}, #{geo,jdbcType=VARCHAR},
- #{distance,jdbcType=DOUBLE}, #{identity,jdbcType=VARCHAR}, #{charge,jdbcType=INTEGER},
- #{chargeRule,jdbcType=INTEGER}, #{available,jdbcType=BIT}, #{lastOccupierId,jdbcType=INTEGER},
- #{shareUserId,jdbcType=INTEGER}, #{shareMobile,jdbcType=VARCHAR}, #{bookTime,jdbcType=TIMESTAMP},
- #{address,jdbcType=VARCHAR}, #{preferential,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
- #{startDate,jdbcType=VARCHAR}, #{endDate,jdbcType=VARCHAR}, #{startTime,jdbcType=VARCHAR},
- #{endTime,jdbcType=VARCHAR}, #{sms,jdbcType=VARCHAR}, #{code,jdbcType=INTEGER},
- #{chargeType,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER},
- #{share,jdbcType=INTEGER}, #{setup,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
- #{freeTime,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{userIncome,jdbcType=INTEGER},
- #{comIncome,jdbcType=INTEGER}, #{platfromIncome,jdbcType=INTEGER}, #{pointState,jdbcType=INTEGER},
- #{battery,jdbcType=REAL})
- </insert>
- <insert id="insertSelective" parameterType="com.js.kbt.model.ParkingPoint">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
- SELECT LAST_INSERT_ID()
- </selectKey>
- insert into parking_point
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="lat != null">
- lat,
- </if>
- <if test="lng != null">
- lng,
- </if>
- <if test="geo != null">
- geo,
- </if>
- <if test="distance != null">
- distance,
- </if>
- <if test="identity != null">
- identity,
- </if>
- <if test="charge != null">
- charge,
- </if>
- <if test="chargeRule != null">
- charge_rule,
- </if>
- <if test="available != null">
- available,
- </if>
- <if test="lastOccupierId != null">
- last_occupier_id,
- </if>
- <if test="shareUserId != null">
- share_user_id,
- </if>
- <if test="shareMobile != null">
- share_mobile,
- </if>
- <if test="bookTime != null">
- book_time,
- </if>
- <if test="address != null">
- address,
- </if>
- <if test="preferential != null">
- preferential,
- </if>
- <if test="memo != null">
- memo,
- </if>
- <if test="startDate != null">
- start_date,
- </if>
- <if test="endDate != null">
- end_date,
- </if>
- <if test="startTime != null">
- start_time,
- </if>
- <if test="endTime != null">
- end_time,
- </if>
- <if test="sms != null">
- sms,
- </if>
- <if test="code != null">
- code,
- </if>
- <if test="chargeType != null">
- charge_type,
- </if>
- <if test="userId != null">
- user_id,
- </if>
- <if test="communityId != null">
- community_id,
- </if>
- <if test="share != null">
- share,
- </if>
- <if test="setup != null">
- setup,
- </if>
- <if test="status != null">
- status,
- </if>
- <if test="freeTime != null">
- free_time,
- </if>
- <if test="type != null">
- type,
- </if>
- <if test="userIncome != null">
- user_income,
- </if>
- <if test="comIncome != null">
- com_income,
- </if>
- <if test="platfromIncome != null">
- platfrom_income,
- </if>
- <if test="pointState != null">
- point_state,
- </if>
- <if test="battery != null">
- battery,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="lat != null">
- #{lat,jdbcType=DOUBLE},
- </if>
- <if test="lng != null">
- #{lng,jdbcType=DOUBLE},
- </if>
- <if test="geo != null">
- #{geo,jdbcType=VARCHAR},
- </if>
- <if test="distance != null">
- #{distance,jdbcType=DOUBLE},
- </if>
- <if test="identity != null">
- #{identity,jdbcType=VARCHAR},
- </if>
- <if test="charge != null">
- #{charge,jdbcType=INTEGER},
- </if>
- <if test="chargeRule != null">
- #{chargeRule,jdbcType=INTEGER},
- </if>
- <if test="available != null">
- #{available,jdbcType=BIT},
- </if>
- <if test="lastOccupierId != null">
- #{lastOccupierId,jdbcType=INTEGER},
- </if>
- <if test="shareUserId != null">
- #{shareUserId,jdbcType=INTEGER},
- </if>
- <if test="shareMobile != null">
- #{shareMobile,jdbcType=VARCHAR},
- </if>
- <if test="bookTime != null">
- #{bookTime,jdbcType=TIMESTAMP},
- </if>
- <if test="address != null">
- #{address,jdbcType=VARCHAR},
- </if>
- <if test="preferential != null">
- #{preferential,jdbcType=VARCHAR},
- </if>
- <if test="memo != null">
- #{memo,jdbcType=VARCHAR},
- </if>
- <if test="startDate != null">
- #{startDate,jdbcType=VARCHAR},
- </if>
- <if test="endDate != null">
- #{endDate,jdbcType=VARCHAR},
- </if>
- <if test="startTime != null">
- #{startTime,jdbcType=VARCHAR},
- </if>
- <if test="endTime != null">
- #{endTime,jdbcType=VARCHAR},
- </if>
- <if test="sms != null">
- #{sms,jdbcType=VARCHAR},
- </if>
- <if test="code != null">
- #{code,jdbcType=INTEGER},
- </if>
- <if test="chargeType != null">
- #{chargeType,jdbcType=INTEGER},
- </if>
- <if test="userId != null">
- #{userId,jdbcType=INTEGER},
- </if>
- <if test="communityId != null">
- #{communityId,jdbcType=INTEGER},
- </if>
- <if test="share != null">
- #{share,jdbcType=INTEGER},
- </if>
- <if test="setup != null">
- #{setup,jdbcType=INTEGER},
- </if>
- <if test="status != null">
- #{status,jdbcType=INTEGER},
- </if>
- <if test="freeTime != null">
- #{freeTime,jdbcType=INTEGER},
- </if>
- <if test="type != null">
- #{type,jdbcType=INTEGER},
- </if>
- <if test="userIncome != null">
- #{userIncome,jdbcType=INTEGER},
- </if>
- <if test="comIncome != null">
- #{comIncome,jdbcType=INTEGER},
- </if>
- <if test="platfromIncome != null">
- #{platfromIncome,jdbcType=INTEGER},
- </if>
- <if test="pointState != null">
- #{pointState,jdbcType=INTEGER},
- </if>
- <if test="battery != null">
- #{battery,jdbcType=REAL},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.js.kbt.model.ParkingPointExample" resultType="java.lang.Long">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- select count(*) from parking_point
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- update parking_point
- <set>
- <if test="record.id != null">
- id = #{record.id,jdbcType=INTEGER},
- </if>
- <if test="record.lat != null">
- lat = #{record.lat,jdbcType=DOUBLE},
- </if>
- <if test="record.lng != null">
- lng = #{record.lng,jdbcType=DOUBLE},
- </if>
- <if test="record.geo != null">
- geo = #{record.geo,jdbcType=VARCHAR},
- </if>
- <if test="record.distance != null">
- distance = #{record.distance,jdbcType=DOUBLE},
- </if>
- <if test="record.identity != null">
- identity = #{record.identity,jdbcType=VARCHAR},
- </if>
- <if test="record.charge != null">
- charge = #{record.charge,jdbcType=INTEGER},
- </if>
- <if test="record.chargeRule != null">
- charge_rule = #{record.chargeRule,jdbcType=INTEGER},
- </if>
- <if test="record.available != null">
- available = #{record.available,jdbcType=BIT},
- </if>
- <if test="record.lastOccupierId != null">
- last_occupier_id = #{record.lastOccupierId,jdbcType=INTEGER},
- </if>
- <if test="record.shareUserId != null">
- share_user_id = #{record.shareUserId,jdbcType=INTEGER},
- </if>
- <if test="record.shareMobile != null">
- share_mobile = #{record.shareMobile,jdbcType=VARCHAR},
- </if>
- <if test="record.bookTime != null">
- book_time = #{record.bookTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.address != null">
- address = #{record.address,jdbcType=VARCHAR},
- </if>
- <if test="record.preferential != null">
- preferential = #{record.preferential,jdbcType=VARCHAR},
- </if>
- <if test="record.memo != null">
- memo = #{record.memo,jdbcType=VARCHAR},
- </if>
- <if test="record.startDate != null">
- start_date = #{record.startDate,jdbcType=VARCHAR},
- </if>
- <if test="record.endDate != null">
- end_date = #{record.endDate,jdbcType=VARCHAR},
- </if>
- <if test="record.startTime != null">
- start_time = #{record.startTime,jdbcType=VARCHAR},
- </if>
- <if test="record.endTime != null">
- end_time = #{record.endTime,jdbcType=VARCHAR},
- </if>
- <if test="record.sms != null">
- sms = #{record.sms,jdbcType=VARCHAR},
- </if>
- <if test="record.code != null">
- code = #{record.code,jdbcType=INTEGER},
- </if>
- <if test="record.chargeType != null">
- charge_type = #{record.chargeType,jdbcType=INTEGER},
- </if>
- <if test="record.userId != null">
- user_id = #{record.userId,jdbcType=INTEGER},
- </if>
- <if test="record.communityId != null">
- community_id = #{record.communityId,jdbcType=INTEGER},
- </if>
- <if test="record.share != null">
- share = #{record.share,jdbcType=INTEGER},
- </if>
- <if test="record.setup != null">
- setup = #{record.setup,jdbcType=INTEGER},
- </if>
- <if test="record.status != null">
- status = #{record.status,jdbcType=INTEGER},
- </if>
- <if test="record.freeTime != null">
- free_time = #{record.freeTime,jdbcType=INTEGER},
- </if>
- <if test="record.type != null">
- type = #{record.type,jdbcType=INTEGER},
- </if>
- <if test="record.userIncome != null">
- user_income = #{record.userIncome,jdbcType=INTEGER},
- </if>
- <if test="record.comIncome != null">
- com_income = #{record.comIncome,jdbcType=INTEGER},
- </if>
- <if test="record.platfromIncome != null">
- platfrom_income = #{record.platfromIncome,jdbcType=INTEGER},
- </if>
- <if test="record.pointState != null">
- point_state = #{record.pointState,jdbcType=INTEGER},
- </if>
- <if test="record.battery != null">
- battery = #{record.battery,jdbcType=REAL},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- update parking_point
- set id = #{record.id,jdbcType=INTEGER},
- lat = #{record.lat,jdbcType=DOUBLE},
- lng = #{record.lng,jdbcType=DOUBLE},
- geo = #{record.geo,jdbcType=VARCHAR},
- distance = #{record.distance,jdbcType=DOUBLE},
- identity = #{record.identity,jdbcType=VARCHAR},
- charge = #{record.charge,jdbcType=INTEGER},
- charge_rule = #{record.chargeRule,jdbcType=INTEGER},
- available = #{record.available,jdbcType=BIT},
- last_occupier_id = #{record.lastOccupierId,jdbcType=INTEGER},
- share_user_id = #{record.shareUserId,jdbcType=INTEGER},
- share_mobile = #{record.shareMobile,jdbcType=VARCHAR},
- book_time = #{record.bookTime,jdbcType=TIMESTAMP},
- address = #{record.address,jdbcType=VARCHAR},
- preferential = #{record.preferential,jdbcType=VARCHAR},
- memo = #{record.memo,jdbcType=VARCHAR},
- start_date = #{record.startDate,jdbcType=VARCHAR},
- end_date = #{record.endDate,jdbcType=VARCHAR},
- start_time = #{record.startTime,jdbcType=VARCHAR},
- end_time = #{record.endTime,jdbcType=VARCHAR},
- sms = #{record.sms,jdbcType=VARCHAR},
- code = #{record.code,jdbcType=INTEGER},
- charge_type = #{record.chargeType,jdbcType=INTEGER},
- user_id = #{record.userId,jdbcType=INTEGER},
- community_id = #{record.communityId,jdbcType=INTEGER},
- share = #{record.share,jdbcType=INTEGER},
- setup = #{record.setup,jdbcType=INTEGER},
- status = #{record.status,jdbcType=INTEGER},
- free_time = #{record.freeTime,jdbcType=INTEGER},
- type = #{record.type,jdbcType=INTEGER},
- user_income = #{record.userIncome,jdbcType=INTEGER},
- com_income = #{record.comIncome,jdbcType=INTEGER},
- platfrom_income = #{record.platfromIncome,jdbcType=INTEGER},
- point_state = #{record.pointState,jdbcType=INTEGER},
- battery = #{record.battery,jdbcType=REAL}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.js.kbt.model.ParkingPoint">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- update parking_point
- <set>
- <if test="lat != null">
- lat = #{lat,jdbcType=DOUBLE},
- </if>
- <if test="lng != null">
- lng = #{lng,jdbcType=DOUBLE},
- </if>
- <if test="geo != null">
- geo = #{geo,jdbcType=VARCHAR},
- </if>
- <if test="distance != null">
- distance = #{distance,jdbcType=DOUBLE},
- </if>
- <if test="identity != null">
- identity = #{identity,jdbcType=VARCHAR},
- </if>
- <if test="charge != null">
- charge = #{charge,jdbcType=INTEGER},
- </if>
- <if test="chargeRule != null">
- charge_rule = #{chargeRule,jdbcType=INTEGER},
- </if>
- <if test="available != null">
- available = #{available,jdbcType=BIT},
- </if>
- <if test="lastOccupierId != null">
- last_occupier_id = #{lastOccupierId,jdbcType=INTEGER},
- </if>
- <if test="shareUserId != null">
- share_user_id = #{shareUserId,jdbcType=INTEGER},
- </if>
- <if test="shareMobile != null">
- share_mobile = #{shareMobile,jdbcType=VARCHAR},
- </if>
- <if test="bookTime != null">
- book_time = #{bookTime,jdbcType=TIMESTAMP},
- </if>
- <if test="address != null">
- address = #{address,jdbcType=VARCHAR},
- </if>
- <if test="preferential != null">
- preferential = #{preferential,jdbcType=VARCHAR},
- </if>
- <if test="memo != null">
- memo = #{memo,jdbcType=VARCHAR},
- </if>
- <if test="startDate != null">
- start_date = #{startDate,jdbcType=VARCHAR},
- </if>
- <if test="endDate != null">
- end_date = #{endDate,jdbcType=VARCHAR},
- </if>
- <if test="startTime != null">
- start_time = #{startTime,jdbcType=VARCHAR},
- </if>
- <if test="endTime != null">
- end_time = #{endTime,jdbcType=VARCHAR},
- </if>
- <if test="sms != null">
- sms = #{sms,jdbcType=VARCHAR},
- </if>
- <if test="code != null">
- code = #{code,jdbcType=INTEGER},
- </if>
- <if test="chargeType != null">
- charge_type = #{chargeType,jdbcType=INTEGER},
- </if>
- <if test="userId != null">
- user_id = #{userId,jdbcType=INTEGER},
- </if>
- <if test="communityId != null">
- community_id = #{communityId,jdbcType=INTEGER},
- </if>
- <if test="share != null">
- share = #{share,jdbcType=INTEGER},
- </if>
- <if test="setup != null">
- setup = #{setup,jdbcType=INTEGER},
- </if>
- <if test="status != null">
- status = #{status,jdbcType=INTEGER},
- </if>
- <if test="freeTime != null">
- free_time = #{freeTime,jdbcType=INTEGER},
- </if>
- <if test="type != null">
- type = #{type,jdbcType=INTEGER},
- </if>
- <if test="userIncome != null">
- user_income = #{userIncome,jdbcType=INTEGER},
- </if>
- <if test="comIncome != null">
- com_income = #{comIncome,jdbcType=INTEGER},
- </if>
- <if test="platfromIncome != null">
- platfrom_income = #{platfromIncome,jdbcType=INTEGER},
- </if>
- <if test="pointState != null">
- point_state = #{pointState,jdbcType=INTEGER},
- </if>
- <if test="battery != null">
- battery = #{battery,jdbcType=REAL},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.js.kbt.model.ParkingPoint">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Nov 07 15:07:10 CST 2017.
- -->
- update parking_point
- set lat = #{lat,jdbcType=DOUBLE},
- lng = #{lng,jdbcType=DOUBLE},
- geo = #{geo,jdbcType=VARCHAR},
- distance = #{distance,jdbcType=DOUBLE},
- identity = #{identity,jdbcType=VARCHAR},
- charge = #{charge,jdbcType=INTEGER},
- charge_rule = #{chargeRule,jdbcType=INTEGER},
- available = #{available,jdbcType=BIT},
- last_occupier_id = #{lastOccupierId,jdbcType=INTEGER},
- share_user_id = #{shareUserId,jdbcType=INTEGER},
- share_mobile = #{shareMobile,jdbcType=VARCHAR},
- book_time = #{bookTime,jdbcType=TIMESTAMP},
- address = #{address,jdbcType=VARCHAR},
- preferential = #{preferential,jdbcType=VARCHAR},
- memo = #{memo,jdbcType=VARCHAR},
- start_date = #{startDate,jdbcType=VARCHAR},
- end_date = #{endDate,jdbcType=VARCHAR},
- start_time = #{startTime,jdbcType=VARCHAR},
- end_time = #{endTime,jdbcType=VARCHAR},
- sms = #{sms,jdbcType=VARCHAR},
- code = #{code,jdbcType=INTEGER},
- charge_type = #{chargeType,jdbcType=INTEGER},
- user_id = #{userId,jdbcType=INTEGER},
- community_id = #{communityId,jdbcType=INTEGER},
- share = #{share,jdbcType=INTEGER},
- setup = #{setup,jdbcType=INTEGER},
- status = #{status,jdbcType=INTEGER},
- free_time = #{freeTime,jdbcType=INTEGER},
- type = #{type,jdbcType=INTEGER},
- user_income = #{userIncome,jdbcType=INTEGER},
- com_income = #{comIncome,jdbcType=INTEGER},
- platfrom_income = #{platfromIncome,jdbcType=INTEGER},
- point_state = #{pointState,jdbcType=INTEGER},
- battery = #{battery,jdbcType=REAL}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|