ParkingPointMapper.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.js.kbt.mapper.ParkingPointMapper">
  4. <resultMap id="BaseResultMap" type="com.js.kbt.model.ParkingPoint">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  9. -->
  10. <id column="id" jdbcType="INTEGER" property="id" />
  11. <result column="lat" jdbcType="DOUBLE" property="lat" />
  12. <result column="lng" jdbcType="DOUBLE" property="lng" />
  13. <result column="geo" jdbcType="VARCHAR" property="geo" />
  14. <result column="distance" jdbcType="DOUBLE" property="distance" />
  15. <result column="identity" jdbcType="VARCHAR" property="identity" />
  16. <result column="charge" jdbcType="INTEGER" property="charge" />
  17. <result column="charge_rule" jdbcType="INTEGER" property="chargeRule" />
  18. <result column="available" jdbcType="BIT" property="available" />
  19. <result column="last_occupier_id" jdbcType="INTEGER" property="lastOccupierId" />
  20. <result column="share_user_id" jdbcType="INTEGER" property="shareUserId" />
  21. <result column="share_mobile" jdbcType="VARCHAR" property="shareMobile" />
  22. <result column="book_time" jdbcType="TIMESTAMP" property="bookTime" />
  23. <result column="address" jdbcType="VARCHAR" property="address" />
  24. <result column="preferential" jdbcType="VARCHAR" property="preferential" />
  25. <result column="memo" jdbcType="VARCHAR" property="memo" />
  26. <result column="start_date" jdbcType="VARCHAR" property="startDate" />
  27. <result column="end_date" jdbcType="VARCHAR" property="endDate" />
  28. <result column="start_time" jdbcType="VARCHAR" property="startTime" />
  29. <result column="end_time" jdbcType="VARCHAR" property="endTime" />
  30. <result column="sms" jdbcType="VARCHAR" property="sms" />
  31. <result column="code" jdbcType="INTEGER" property="code" />
  32. <result column="charge_type" jdbcType="INTEGER" property="chargeType" />
  33. <result column="user_id" jdbcType="INTEGER" property="userId" />
  34. <result column="community_id" jdbcType="INTEGER" property="communityId" />
  35. <result column="share" jdbcType="INTEGER" property="share" />
  36. <result column="setup" jdbcType="INTEGER" property="setup" />
  37. <result column="status" jdbcType="INTEGER" property="status" />
  38. <result column="free_time" jdbcType="INTEGER" property="freeTime" />
  39. <result column="type" jdbcType="INTEGER" property="type" />
  40. <result column="user_income" jdbcType="INTEGER" property="userIncome" />
  41. <result column="com_income" jdbcType="INTEGER" property="comIncome" />
  42. <result column="platfrom_income" jdbcType="INTEGER" property="platfromIncome" />
  43. <result column="point_state" jdbcType="INTEGER" property="pointState" />
  44. <result column="battery" jdbcType="REAL" property="battery" />
  45. </resultMap>
  46. <sql id="Example_Where_Clause">
  47. <!--
  48. WARNING - @mbg.generated
  49. This element is automatically generated by MyBatis Generator, do not modify.
  50. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  51. -->
  52. <where>
  53. <foreach collection="oredCriteria" item="criteria" separator="or">
  54. <if test="criteria.valid">
  55. <trim prefix="(" prefixOverrides="and" suffix=")">
  56. <foreach collection="criteria.criteria" item="criterion">
  57. <choose>
  58. <when test="criterion.noValue">
  59. and ${criterion.condition}
  60. </when>
  61. <when test="criterion.singleValue">
  62. and ${criterion.condition} #{criterion.value}
  63. </when>
  64. <when test="criterion.betweenValue">
  65. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  66. </when>
  67. <when test="criterion.listValue">
  68. and ${criterion.condition}
  69. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  70. #{listItem}
  71. </foreach>
  72. </when>
  73. </choose>
  74. </foreach>
  75. </trim>
  76. </if>
  77. </foreach>
  78. </where>
  79. </sql>
  80. <sql id="Update_By_Example_Where_Clause">
  81. <!--
  82. WARNING - @mbg.generated
  83. This element is automatically generated by MyBatis Generator, do not modify.
  84. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  85. -->
  86. <where>
  87. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  88. <if test="criteria.valid">
  89. <trim prefix="(" prefixOverrides="and" suffix=")">
  90. <foreach collection="criteria.criteria" item="criterion">
  91. <choose>
  92. <when test="criterion.noValue">
  93. and ${criterion.condition}
  94. </when>
  95. <when test="criterion.singleValue">
  96. and ${criterion.condition} #{criterion.value}
  97. </when>
  98. <when test="criterion.betweenValue">
  99. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  100. </when>
  101. <when test="criterion.listValue">
  102. and ${criterion.condition}
  103. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  104. #{listItem}
  105. </foreach>
  106. </when>
  107. </choose>
  108. </foreach>
  109. </trim>
  110. </if>
  111. </foreach>
  112. </where>
  113. </sql>
  114. <sql id="Base_Column_List">
  115. <!--
  116. WARNING - @mbg.generated
  117. This element is automatically generated by MyBatis Generator, do not modify.
  118. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  119. -->
  120. id, lat, lng, geo, distance, identity, charge, charge_rule, available, last_occupier_id,
  121. share_user_id, share_mobile, book_time, address, preferential, memo, start_date,
  122. end_date, start_time, end_time, sms, code, charge_type, user_id, community_id, share,
  123. setup, status, free_time, type, user_income, com_income, platfrom_income, point_state,
  124. battery
  125. </sql>
  126. <select id="selectByExample" parameterType="com.js.kbt.model.ParkingPointExample" resultMap="BaseResultMap">
  127. <!--
  128. WARNING - @mbg.generated
  129. This element is automatically generated by MyBatis Generator, do not modify.
  130. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  131. -->
  132. select
  133. <if test="distinct">
  134. distinct
  135. </if>
  136. <include refid="Base_Column_List" />
  137. from parking_point
  138. <if test="_parameter != null">
  139. <include refid="Example_Where_Clause" />
  140. </if>
  141. <if test="orderByClause != null">
  142. order by ${orderByClause}
  143. </if>
  144. </select>
  145. <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  146. <!--
  147. WARNING - @mbg.generated
  148. This element is automatically generated by MyBatis Generator, do not modify.
  149. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  150. -->
  151. select
  152. <include refid="Base_Column_List" />
  153. from parking_point
  154. where id = #{id,jdbcType=INTEGER}
  155. </select>
  156. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  157. <!--
  158. WARNING - @mbg.generated
  159. This element is automatically generated by MyBatis Generator, do not modify.
  160. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  161. -->
  162. delete from parking_point
  163. where id = #{id,jdbcType=INTEGER}
  164. </delete>
  165. <delete id="deleteByExample" parameterType="com.js.kbt.model.ParkingPointExample">
  166. <!--
  167. WARNING - @mbg.generated
  168. This element is automatically generated by MyBatis Generator, do not modify.
  169. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  170. -->
  171. delete from parking_point
  172. <if test="_parameter != null">
  173. <include refid="Example_Where_Clause" />
  174. </if>
  175. </delete>
  176. <insert id="insert" parameterType="com.js.kbt.model.ParkingPoint">
  177. <!--
  178. WARNING - @mbg.generated
  179. This element is automatically generated by MyBatis Generator, do not modify.
  180. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  181. -->
  182. <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
  183. SELECT LAST_INSERT_ID()
  184. </selectKey>
  185. insert into parking_point (lat, lng, geo,
  186. distance, identity, charge,
  187. charge_rule, available, last_occupier_id,
  188. share_user_id, share_mobile, book_time,
  189. address, preferential, memo,
  190. start_date, end_date, start_time,
  191. end_time, sms, code,
  192. charge_type, user_id, community_id,
  193. share, setup, status,
  194. free_time, type, user_income,
  195. com_income, platfrom_income, point_state,
  196. battery)
  197. values (#{lat,jdbcType=DOUBLE}, #{lng,jdbcType=DOUBLE}, #{geo,jdbcType=VARCHAR},
  198. #{distance,jdbcType=DOUBLE}, #{identity,jdbcType=VARCHAR}, #{charge,jdbcType=INTEGER},
  199. #{chargeRule,jdbcType=INTEGER}, #{available,jdbcType=BIT}, #{lastOccupierId,jdbcType=INTEGER},
  200. #{shareUserId,jdbcType=INTEGER}, #{shareMobile,jdbcType=VARCHAR}, #{bookTime,jdbcType=TIMESTAMP},
  201. #{address,jdbcType=VARCHAR}, #{preferential,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
  202. #{startDate,jdbcType=VARCHAR}, #{endDate,jdbcType=VARCHAR}, #{startTime,jdbcType=VARCHAR},
  203. #{endTime,jdbcType=VARCHAR}, #{sms,jdbcType=VARCHAR}, #{code,jdbcType=INTEGER},
  204. #{chargeType,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER},
  205. #{share,jdbcType=INTEGER}, #{setup,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
  206. #{freeTime,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{userIncome,jdbcType=INTEGER},
  207. #{comIncome,jdbcType=INTEGER}, #{platfromIncome,jdbcType=INTEGER}, #{pointState,jdbcType=INTEGER},
  208. #{battery,jdbcType=REAL})
  209. </insert>
  210. <insert id="insertSelective" parameterType="com.js.kbt.model.ParkingPoint">
  211. <!--
  212. WARNING - @mbg.generated
  213. This element is automatically generated by MyBatis Generator, do not modify.
  214. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  215. -->
  216. <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
  217. SELECT LAST_INSERT_ID()
  218. </selectKey>
  219. insert into parking_point
  220. <trim prefix="(" suffix=")" suffixOverrides=",">
  221. <if test="lat != null">
  222. lat,
  223. </if>
  224. <if test="lng != null">
  225. lng,
  226. </if>
  227. <if test="geo != null">
  228. geo,
  229. </if>
  230. <if test="distance != null">
  231. distance,
  232. </if>
  233. <if test="identity != null">
  234. identity,
  235. </if>
  236. <if test="charge != null">
  237. charge,
  238. </if>
  239. <if test="chargeRule != null">
  240. charge_rule,
  241. </if>
  242. <if test="available != null">
  243. available,
  244. </if>
  245. <if test="lastOccupierId != null">
  246. last_occupier_id,
  247. </if>
  248. <if test="shareUserId != null">
  249. share_user_id,
  250. </if>
  251. <if test="shareMobile != null">
  252. share_mobile,
  253. </if>
  254. <if test="bookTime != null">
  255. book_time,
  256. </if>
  257. <if test="address != null">
  258. address,
  259. </if>
  260. <if test="preferential != null">
  261. preferential,
  262. </if>
  263. <if test="memo != null">
  264. memo,
  265. </if>
  266. <if test="startDate != null">
  267. start_date,
  268. </if>
  269. <if test="endDate != null">
  270. end_date,
  271. </if>
  272. <if test="startTime != null">
  273. start_time,
  274. </if>
  275. <if test="endTime != null">
  276. end_time,
  277. </if>
  278. <if test="sms != null">
  279. sms,
  280. </if>
  281. <if test="code != null">
  282. code,
  283. </if>
  284. <if test="chargeType != null">
  285. charge_type,
  286. </if>
  287. <if test="userId != null">
  288. user_id,
  289. </if>
  290. <if test="communityId != null">
  291. community_id,
  292. </if>
  293. <if test="share != null">
  294. share,
  295. </if>
  296. <if test="setup != null">
  297. setup,
  298. </if>
  299. <if test="status != null">
  300. status,
  301. </if>
  302. <if test="freeTime != null">
  303. free_time,
  304. </if>
  305. <if test="type != null">
  306. type,
  307. </if>
  308. <if test="userIncome != null">
  309. user_income,
  310. </if>
  311. <if test="comIncome != null">
  312. com_income,
  313. </if>
  314. <if test="platfromIncome != null">
  315. platfrom_income,
  316. </if>
  317. <if test="pointState != null">
  318. point_state,
  319. </if>
  320. <if test="battery != null">
  321. battery,
  322. </if>
  323. </trim>
  324. <trim prefix="values (" suffix=")" suffixOverrides=",">
  325. <if test="lat != null">
  326. #{lat,jdbcType=DOUBLE},
  327. </if>
  328. <if test="lng != null">
  329. #{lng,jdbcType=DOUBLE},
  330. </if>
  331. <if test="geo != null">
  332. #{geo,jdbcType=VARCHAR},
  333. </if>
  334. <if test="distance != null">
  335. #{distance,jdbcType=DOUBLE},
  336. </if>
  337. <if test="identity != null">
  338. #{identity,jdbcType=VARCHAR},
  339. </if>
  340. <if test="charge != null">
  341. #{charge,jdbcType=INTEGER},
  342. </if>
  343. <if test="chargeRule != null">
  344. #{chargeRule,jdbcType=INTEGER},
  345. </if>
  346. <if test="available != null">
  347. #{available,jdbcType=BIT},
  348. </if>
  349. <if test="lastOccupierId != null">
  350. #{lastOccupierId,jdbcType=INTEGER},
  351. </if>
  352. <if test="shareUserId != null">
  353. #{shareUserId,jdbcType=INTEGER},
  354. </if>
  355. <if test="shareMobile != null">
  356. #{shareMobile,jdbcType=VARCHAR},
  357. </if>
  358. <if test="bookTime != null">
  359. #{bookTime,jdbcType=TIMESTAMP},
  360. </if>
  361. <if test="address != null">
  362. #{address,jdbcType=VARCHAR},
  363. </if>
  364. <if test="preferential != null">
  365. #{preferential,jdbcType=VARCHAR},
  366. </if>
  367. <if test="memo != null">
  368. #{memo,jdbcType=VARCHAR},
  369. </if>
  370. <if test="startDate != null">
  371. #{startDate,jdbcType=VARCHAR},
  372. </if>
  373. <if test="endDate != null">
  374. #{endDate,jdbcType=VARCHAR},
  375. </if>
  376. <if test="startTime != null">
  377. #{startTime,jdbcType=VARCHAR},
  378. </if>
  379. <if test="endTime != null">
  380. #{endTime,jdbcType=VARCHAR},
  381. </if>
  382. <if test="sms != null">
  383. #{sms,jdbcType=VARCHAR},
  384. </if>
  385. <if test="code != null">
  386. #{code,jdbcType=INTEGER},
  387. </if>
  388. <if test="chargeType != null">
  389. #{chargeType,jdbcType=INTEGER},
  390. </if>
  391. <if test="userId != null">
  392. #{userId,jdbcType=INTEGER},
  393. </if>
  394. <if test="communityId != null">
  395. #{communityId,jdbcType=INTEGER},
  396. </if>
  397. <if test="share != null">
  398. #{share,jdbcType=INTEGER},
  399. </if>
  400. <if test="setup != null">
  401. #{setup,jdbcType=INTEGER},
  402. </if>
  403. <if test="status != null">
  404. #{status,jdbcType=INTEGER},
  405. </if>
  406. <if test="freeTime != null">
  407. #{freeTime,jdbcType=INTEGER},
  408. </if>
  409. <if test="type != null">
  410. #{type,jdbcType=INTEGER},
  411. </if>
  412. <if test="userIncome != null">
  413. #{userIncome,jdbcType=INTEGER},
  414. </if>
  415. <if test="comIncome != null">
  416. #{comIncome,jdbcType=INTEGER},
  417. </if>
  418. <if test="platfromIncome != null">
  419. #{platfromIncome,jdbcType=INTEGER},
  420. </if>
  421. <if test="pointState != null">
  422. #{pointState,jdbcType=INTEGER},
  423. </if>
  424. <if test="battery != null">
  425. #{battery,jdbcType=REAL},
  426. </if>
  427. </trim>
  428. </insert>
  429. <select id="countByExample" parameterType="com.js.kbt.model.ParkingPointExample" resultType="java.lang.Long">
  430. <!--
  431. WARNING - @mbg.generated
  432. This element is automatically generated by MyBatis Generator, do not modify.
  433. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  434. -->
  435. select count(*) from parking_point
  436. <if test="_parameter != null">
  437. <include refid="Example_Where_Clause" />
  438. </if>
  439. </select>
  440. <update id="updateByExampleSelective" parameterType="map">
  441. <!--
  442. WARNING - @mbg.generated
  443. This element is automatically generated by MyBatis Generator, do not modify.
  444. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  445. -->
  446. update parking_point
  447. <set>
  448. <if test="record.id != null">
  449. id = #{record.id,jdbcType=INTEGER},
  450. </if>
  451. <if test="record.lat != null">
  452. lat = #{record.lat,jdbcType=DOUBLE},
  453. </if>
  454. <if test="record.lng != null">
  455. lng = #{record.lng,jdbcType=DOUBLE},
  456. </if>
  457. <if test="record.geo != null">
  458. geo = #{record.geo,jdbcType=VARCHAR},
  459. </if>
  460. <if test="record.distance != null">
  461. distance = #{record.distance,jdbcType=DOUBLE},
  462. </if>
  463. <if test="record.identity != null">
  464. identity = #{record.identity,jdbcType=VARCHAR},
  465. </if>
  466. <if test="record.charge != null">
  467. charge = #{record.charge,jdbcType=INTEGER},
  468. </if>
  469. <if test="record.chargeRule != null">
  470. charge_rule = #{record.chargeRule,jdbcType=INTEGER},
  471. </if>
  472. <if test="record.available != null">
  473. available = #{record.available,jdbcType=BIT},
  474. </if>
  475. <if test="record.lastOccupierId != null">
  476. last_occupier_id = #{record.lastOccupierId,jdbcType=INTEGER},
  477. </if>
  478. <if test="record.shareUserId != null">
  479. share_user_id = #{record.shareUserId,jdbcType=INTEGER},
  480. </if>
  481. <if test="record.shareMobile != null">
  482. share_mobile = #{record.shareMobile,jdbcType=VARCHAR},
  483. </if>
  484. <if test="record.bookTime != null">
  485. book_time = #{record.bookTime,jdbcType=TIMESTAMP},
  486. </if>
  487. <if test="record.address != null">
  488. address = #{record.address,jdbcType=VARCHAR},
  489. </if>
  490. <if test="record.preferential != null">
  491. preferential = #{record.preferential,jdbcType=VARCHAR},
  492. </if>
  493. <if test="record.memo != null">
  494. memo = #{record.memo,jdbcType=VARCHAR},
  495. </if>
  496. <if test="record.startDate != null">
  497. start_date = #{record.startDate,jdbcType=VARCHAR},
  498. </if>
  499. <if test="record.endDate != null">
  500. end_date = #{record.endDate,jdbcType=VARCHAR},
  501. </if>
  502. <if test="record.startTime != null">
  503. start_time = #{record.startTime,jdbcType=VARCHAR},
  504. </if>
  505. <if test="record.endTime != null">
  506. end_time = #{record.endTime,jdbcType=VARCHAR},
  507. </if>
  508. <if test="record.sms != null">
  509. sms = #{record.sms,jdbcType=VARCHAR},
  510. </if>
  511. <if test="record.code != null">
  512. code = #{record.code,jdbcType=INTEGER},
  513. </if>
  514. <if test="record.chargeType != null">
  515. charge_type = #{record.chargeType,jdbcType=INTEGER},
  516. </if>
  517. <if test="record.userId != null">
  518. user_id = #{record.userId,jdbcType=INTEGER},
  519. </if>
  520. <if test="record.communityId != null">
  521. community_id = #{record.communityId,jdbcType=INTEGER},
  522. </if>
  523. <if test="record.share != null">
  524. share = #{record.share,jdbcType=INTEGER},
  525. </if>
  526. <if test="record.setup != null">
  527. setup = #{record.setup,jdbcType=INTEGER},
  528. </if>
  529. <if test="record.status != null">
  530. status = #{record.status,jdbcType=INTEGER},
  531. </if>
  532. <if test="record.freeTime != null">
  533. free_time = #{record.freeTime,jdbcType=INTEGER},
  534. </if>
  535. <if test="record.type != null">
  536. type = #{record.type,jdbcType=INTEGER},
  537. </if>
  538. <if test="record.userIncome != null">
  539. user_income = #{record.userIncome,jdbcType=INTEGER},
  540. </if>
  541. <if test="record.comIncome != null">
  542. com_income = #{record.comIncome,jdbcType=INTEGER},
  543. </if>
  544. <if test="record.platfromIncome != null">
  545. platfrom_income = #{record.platfromIncome,jdbcType=INTEGER},
  546. </if>
  547. <if test="record.pointState != null">
  548. point_state = #{record.pointState,jdbcType=INTEGER},
  549. </if>
  550. <if test="record.battery != null">
  551. battery = #{record.battery,jdbcType=REAL},
  552. </if>
  553. </set>
  554. <if test="_parameter != null">
  555. <include refid="Update_By_Example_Where_Clause" />
  556. </if>
  557. </update>
  558. <update id="updateByExample" parameterType="map">
  559. <!--
  560. WARNING - @mbg.generated
  561. This element is automatically generated by MyBatis Generator, do not modify.
  562. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  563. -->
  564. update parking_point
  565. set id = #{record.id,jdbcType=INTEGER},
  566. lat = #{record.lat,jdbcType=DOUBLE},
  567. lng = #{record.lng,jdbcType=DOUBLE},
  568. geo = #{record.geo,jdbcType=VARCHAR},
  569. distance = #{record.distance,jdbcType=DOUBLE},
  570. identity = #{record.identity,jdbcType=VARCHAR},
  571. charge = #{record.charge,jdbcType=INTEGER},
  572. charge_rule = #{record.chargeRule,jdbcType=INTEGER},
  573. available = #{record.available,jdbcType=BIT},
  574. last_occupier_id = #{record.lastOccupierId,jdbcType=INTEGER},
  575. share_user_id = #{record.shareUserId,jdbcType=INTEGER},
  576. share_mobile = #{record.shareMobile,jdbcType=VARCHAR},
  577. book_time = #{record.bookTime,jdbcType=TIMESTAMP},
  578. address = #{record.address,jdbcType=VARCHAR},
  579. preferential = #{record.preferential,jdbcType=VARCHAR},
  580. memo = #{record.memo,jdbcType=VARCHAR},
  581. start_date = #{record.startDate,jdbcType=VARCHAR},
  582. end_date = #{record.endDate,jdbcType=VARCHAR},
  583. start_time = #{record.startTime,jdbcType=VARCHAR},
  584. end_time = #{record.endTime,jdbcType=VARCHAR},
  585. sms = #{record.sms,jdbcType=VARCHAR},
  586. code = #{record.code,jdbcType=INTEGER},
  587. charge_type = #{record.chargeType,jdbcType=INTEGER},
  588. user_id = #{record.userId,jdbcType=INTEGER},
  589. community_id = #{record.communityId,jdbcType=INTEGER},
  590. share = #{record.share,jdbcType=INTEGER},
  591. setup = #{record.setup,jdbcType=INTEGER},
  592. status = #{record.status,jdbcType=INTEGER},
  593. free_time = #{record.freeTime,jdbcType=INTEGER},
  594. type = #{record.type,jdbcType=INTEGER},
  595. user_income = #{record.userIncome,jdbcType=INTEGER},
  596. com_income = #{record.comIncome,jdbcType=INTEGER},
  597. platfrom_income = #{record.platfromIncome,jdbcType=INTEGER},
  598. point_state = #{record.pointState,jdbcType=INTEGER},
  599. battery = #{record.battery,jdbcType=REAL}
  600. <if test="_parameter != null">
  601. <include refid="Update_By_Example_Where_Clause" />
  602. </if>
  603. </update>
  604. <update id="updateByPrimaryKeySelective" parameterType="com.js.kbt.model.ParkingPoint">
  605. <!--
  606. WARNING - @mbg.generated
  607. This element is automatically generated by MyBatis Generator, do not modify.
  608. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  609. -->
  610. update parking_point
  611. <set>
  612. <if test="lat != null">
  613. lat = #{lat,jdbcType=DOUBLE},
  614. </if>
  615. <if test="lng != null">
  616. lng = #{lng,jdbcType=DOUBLE},
  617. </if>
  618. <if test="geo != null">
  619. geo = #{geo,jdbcType=VARCHAR},
  620. </if>
  621. <if test="distance != null">
  622. distance = #{distance,jdbcType=DOUBLE},
  623. </if>
  624. <if test="identity != null">
  625. identity = #{identity,jdbcType=VARCHAR},
  626. </if>
  627. <if test="charge != null">
  628. charge = #{charge,jdbcType=INTEGER},
  629. </if>
  630. <if test="chargeRule != null">
  631. charge_rule = #{chargeRule,jdbcType=INTEGER},
  632. </if>
  633. <if test="available != null">
  634. available = #{available,jdbcType=BIT},
  635. </if>
  636. <if test="lastOccupierId != null">
  637. last_occupier_id = #{lastOccupierId,jdbcType=INTEGER},
  638. </if>
  639. <if test="shareUserId != null">
  640. share_user_id = #{shareUserId,jdbcType=INTEGER},
  641. </if>
  642. <if test="shareMobile != null">
  643. share_mobile = #{shareMobile,jdbcType=VARCHAR},
  644. </if>
  645. <if test="bookTime != null">
  646. book_time = #{bookTime,jdbcType=TIMESTAMP},
  647. </if>
  648. <if test="address != null">
  649. address = #{address,jdbcType=VARCHAR},
  650. </if>
  651. <if test="preferential != null">
  652. preferential = #{preferential,jdbcType=VARCHAR},
  653. </if>
  654. <if test="memo != null">
  655. memo = #{memo,jdbcType=VARCHAR},
  656. </if>
  657. <if test="startDate != null">
  658. start_date = #{startDate,jdbcType=VARCHAR},
  659. </if>
  660. <if test="endDate != null">
  661. end_date = #{endDate,jdbcType=VARCHAR},
  662. </if>
  663. <if test="startTime != null">
  664. start_time = #{startTime,jdbcType=VARCHAR},
  665. </if>
  666. <if test="endTime != null">
  667. end_time = #{endTime,jdbcType=VARCHAR},
  668. </if>
  669. <if test="sms != null">
  670. sms = #{sms,jdbcType=VARCHAR},
  671. </if>
  672. <if test="code != null">
  673. code = #{code,jdbcType=INTEGER},
  674. </if>
  675. <if test="chargeType != null">
  676. charge_type = #{chargeType,jdbcType=INTEGER},
  677. </if>
  678. <if test="userId != null">
  679. user_id = #{userId,jdbcType=INTEGER},
  680. </if>
  681. <if test="communityId != null">
  682. community_id = #{communityId,jdbcType=INTEGER},
  683. </if>
  684. <if test="share != null">
  685. share = #{share,jdbcType=INTEGER},
  686. </if>
  687. <if test="setup != null">
  688. setup = #{setup,jdbcType=INTEGER},
  689. </if>
  690. <if test="status != null">
  691. status = #{status,jdbcType=INTEGER},
  692. </if>
  693. <if test="freeTime != null">
  694. free_time = #{freeTime,jdbcType=INTEGER},
  695. </if>
  696. <if test="type != null">
  697. type = #{type,jdbcType=INTEGER},
  698. </if>
  699. <if test="userIncome != null">
  700. user_income = #{userIncome,jdbcType=INTEGER},
  701. </if>
  702. <if test="comIncome != null">
  703. com_income = #{comIncome,jdbcType=INTEGER},
  704. </if>
  705. <if test="platfromIncome != null">
  706. platfrom_income = #{platfromIncome,jdbcType=INTEGER},
  707. </if>
  708. <if test="pointState != null">
  709. point_state = #{pointState,jdbcType=INTEGER},
  710. </if>
  711. <if test="battery != null">
  712. battery = #{battery,jdbcType=REAL},
  713. </if>
  714. </set>
  715. where id = #{id,jdbcType=INTEGER}
  716. </update>
  717. <update id="updateByPrimaryKey" parameterType="com.js.kbt.model.ParkingPoint">
  718. <!--
  719. WARNING - @mbg.generated
  720. This element is automatically generated by MyBatis Generator, do not modify.
  721. This element was generated on Tue Nov 07 15:07:10 CST 2017.
  722. -->
  723. update parking_point
  724. set lat = #{lat,jdbcType=DOUBLE},
  725. lng = #{lng,jdbcType=DOUBLE},
  726. geo = #{geo,jdbcType=VARCHAR},
  727. distance = #{distance,jdbcType=DOUBLE},
  728. identity = #{identity,jdbcType=VARCHAR},
  729. charge = #{charge,jdbcType=INTEGER},
  730. charge_rule = #{chargeRule,jdbcType=INTEGER},
  731. available = #{available,jdbcType=BIT},
  732. last_occupier_id = #{lastOccupierId,jdbcType=INTEGER},
  733. share_user_id = #{shareUserId,jdbcType=INTEGER},
  734. share_mobile = #{shareMobile,jdbcType=VARCHAR},
  735. book_time = #{bookTime,jdbcType=TIMESTAMP},
  736. address = #{address,jdbcType=VARCHAR},
  737. preferential = #{preferential,jdbcType=VARCHAR},
  738. memo = #{memo,jdbcType=VARCHAR},
  739. start_date = #{startDate,jdbcType=VARCHAR},
  740. end_date = #{endDate,jdbcType=VARCHAR},
  741. start_time = #{startTime,jdbcType=VARCHAR},
  742. end_time = #{endTime,jdbcType=VARCHAR},
  743. sms = #{sms,jdbcType=VARCHAR},
  744. code = #{code,jdbcType=INTEGER},
  745. charge_type = #{chargeType,jdbcType=INTEGER},
  746. user_id = #{userId,jdbcType=INTEGER},
  747. community_id = #{communityId,jdbcType=INTEGER},
  748. share = #{share,jdbcType=INTEGER},
  749. setup = #{setup,jdbcType=INTEGER},
  750. status = #{status,jdbcType=INTEGER},
  751. free_time = #{freeTime,jdbcType=INTEGER},
  752. type = #{type,jdbcType=INTEGER},
  753. user_income = #{userIncome,jdbcType=INTEGER},
  754. com_income = #{comIncome,jdbcType=INTEGER},
  755. platfrom_income = #{platfromIncome,jdbcType=INTEGER},
  756. point_state = #{pointState,jdbcType=INTEGER},
  757. battery = #{battery,jdbcType=REAL}
  758. where id = #{id,jdbcType=INTEGER}
  759. </update>
  760. </mapper>