123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595 |
- <?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.VparkingPointMapper" >
- <resultMap id="BaseResultMap" type="com.js.kbt.model.VparkingPoint" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Nov 15 15:45:41 CST 2017.
- -->
- <result column="id" property="id" jdbcType="INTEGER" />
- <result column="lat" property="lat" jdbcType="DOUBLE" />
- <result column="lng" property="lng" jdbcType="DOUBLE" />
- <result column="geo" property="geo" jdbcType="VARCHAR" />
- <result column="distance" property="distance" jdbcType="DOUBLE" />
- <result column="identity" property="identity" jdbcType="VARCHAR" />
- <result column="charge" property="charge" jdbcType="INTEGER" />
- <result column="charge_rule" property="chargeRule" jdbcType="INTEGER" />
- <result column="available" property="available" jdbcType="BIT" />
- <result column="last_occupier_id" property="lastOccupierId" jdbcType="INTEGER" />
- <result column="share_user_id" property="shareUserId" jdbcType="INTEGER" />
- <result column="share_mobile" property="shareMobile" jdbcType="VARCHAR" />
- <result column="book_time" property="bookTime" jdbcType="TIMESTAMP" />
- <result column="address" property="address" jdbcType="VARCHAR" />
- <result column="preferential" property="preferential" jdbcType="VARCHAR" />
- <result column="memo" property="memo" jdbcType="VARCHAR" />
- <result column="start_date" property="startDate" jdbcType="VARCHAR" />
- <result column="end_date" property="endDate" jdbcType="VARCHAR" />
- <result column="start_time" property="startTime" jdbcType="VARCHAR" />
- <result column="end_time" property="endTime" jdbcType="VARCHAR" />
- <result column="sms" property="sms" jdbcType="VARCHAR" />
- <result column="code" property="code" jdbcType="INTEGER" />
- <result column="charge_type" property="chargeType" jdbcType="INTEGER" />
- <result column="user_id" property="userId" jdbcType="INTEGER" />
- <result column="community_id" property="communityId" jdbcType="INTEGER" />
- <result column="share" property="share" jdbcType="INTEGER" />
- <result column="setup" property="setup" jdbcType="INTEGER" />
- <result column="status" property="status" jdbcType="INTEGER" />
- <result column="free_time" property="freeTime" jdbcType="INTEGER" />
- <result column="type" property="type" jdbcType="INTEGER" />
- <result column="user_income" property="userIncome" jdbcType="INTEGER" />
- <result column="com_income" property="comIncome" jdbcType="INTEGER" />
- <result column="platfrom_income" property="platfromIncome" jdbcType="INTEGER" />
- <result column="point_state" property="pointState" jdbcType="INTEGER" />
- <result column="battery" property="battery" jdbcType="REAL" />
- <result column="com_name" property="comName" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Example_Where_Clause" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Nov 15 15:45:41 CST 2017.
- -->
- <where >
- <foreach collection="oredCriteria" item="criteria" separator="or" >
- <if test="criteria.valid" >
- <trim prefix="(" suffix=")" prefixOverrides="and" >
- <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 collection="criterion.value" item="listItem" open="(" close=")" 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 Wed Nov 15 15:45:41 CST 2017.
- -->
- <where >
- <foreach collection="example.oredCriteria" item="criteria" separator="or" >
- <if test="criteria.valid" >
- <trim prefix="(" suffix=")" prefixOverrides="and" >
- <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 collection="criterion.value" item="listItem" open="(" close=")" 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 Wed Nov 15 15:45:41 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, com_name
- </sql>
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.js.kbt.model.VparkingPointExample" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Nov 15 15:45:41 CST 2017.
- -->
- select
- <if test="distinct" >
- distinct
- </if>
- <include refid="Base_Column_List" />
- from vparking_point
- <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.VparkingPointExample" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Nov 15 15:45:41 CST 2017.
- -->
- delete from vparking_point
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.js.kbt.model.VparkingPoint" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Nov 15 15:45:41 CST 2017.
- -->
- insert into vparking_point (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, com_name)
- values (#{id,jdbcType=INTEGER}, #{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}, #{comName,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.js.kbt.model.VparkingPoint" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Nov 15 15:45:41 CST 2017.
- -->
- insert into vparking_point
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <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>
- <if test="comName != null" >
- com_name,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=INTEGER},
- </if>
- <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>
- <if test="comName != null" >
- #{comName,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.js.kbt.model.VparkingPointExample" resultType="java.lang.Integer" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Nov 15 15:45:41 CST 2017.
- -->
- select count(*) from vparking_point
- <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 Wed Nov 15 15:45:41 CST 2017.
- -->
- update vparking_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>
- <if test="record.comName != null" >
- com_name = #{record.comName,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 Wed Nov 15 15:45:41 CST 2017.
- -->
- update vparking_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},
- com_name = #{record.comName,jdbcType=VARCHAR}
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- </mapper>
|