ParkRoomMapper.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  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.idea.buildManage.mapper.ParkRoomMapper">
  4. <resultMap id="BaseResultMap" type="com.idea.buildManage.model.ParkRoom">
  5. <id column="id" jdbcType="VARCHAR" property="id" />
  6. <result column="build_id" jdbcType="VARCHAR" property="buildId" />
  7. <result column="disc_id" jdbcType="VARCHAR" property="discId" />
  8. <result column="group_id" jdbcType="VARCHAR" property="groupId" />
  9. <result column="room_no" jdbcType="VARCHAR" property="roomNo" />
  10. <result column="floor" jdbcType="VARCHAR" property="floor" />
  11. <result column="prediction_internal_area" jdbcType="DOUBLE" property="predictionInternalArea" />
  12. <result column="prediction_share_area" jdbcType="DOUBLE" property="predictionShareArea" />
  13. <result column="prediction_build_area" jdbcType="DOUBLE" property="predictionBuildArea" />
  14. <result column="prediction_land_area" jdbcType="DOUBLE" property="predictionLandArea" />
  15. <result column="actual_internal_area" jdbcType="DOUBLE" property="actualInternalArea" />
  16. <result column="actual_share_area" jdbcType="DOUBLE" property="actualShareArea" />
  17. <result column="actual_build_area" jdbcType="DOUBLE" property="actualBuildArea" />
  18. <result column="actual_land_area" jdbcType="DOUBLE" property="actualLandArea" />
  19. <result column="room_use" jdbcType="INTEGER" property="roomUse" />
  20. <result column="room_number" jdbcType="VARCHAR" property="roomNumber" />
  21. <result column="decoration_situation" jdbcType="INTEGER" property="decorationSituation" />
  22. <result column="house_type_id" jdbcType="VARCHAR" property="houseTypeId" />
  23. <result column="house_type_picture" jdbcType="VARCHAR" property="houseTypePicture" />
  24. <result column="created_id" jdbcType="VARCHAR" property="createdId" />
  25. <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
  26. <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
  27. <result column="updated_id" jdbcType="VARCHAR" property="updatedId" />
  28. <result column="sale_status" jdbcType="INTEGER" property="saleStatus" />
  29. <result column="sold_status" jdbcType="INTEGER" property="soldStatus" />
  30. <result column="two_point_two" jdbcType="VARCHAR" property="twoPointTwo" />
  31. <result column="order_num" jdbcType="VARCHAR" property="orderNum" />
  32. </resultMap>
  33. <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.idea.buildManage.model.ParkRoom">
  34. <result column="remark" jdbcType="LONGVARCHAR" property="remark" />
  35. </resultMap>
  36. <sql id="Example_Where_Clause">
  37. <where>
  38. <foreach collection="oredCriteria" item="criteria" separator="or">
  39. <if test="criteria.valid">
  40. <trim prefix="(" prefixOverrides="and" suffix=")">
  41. <foreach collection="criteria.criteria" item="criterion">
  42. <choose>
  43. <when test="criterion.noValue">
  44. and ${criterion.condition}
  45. </when>
  46. <when test="criterion.singleValue">
  47. and ${criterion.condition} #{criterion.value}
  48. </when>
  49. <when test="criterion.betweenValue">
  50. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  51. </when>
  52. <when test="criterion.listValue">
  53. and ${criterion.condition}
  54. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  55. #{listItem}
  56. </foreach>
  57. </when>
  58. </choose>
  59. </foreach>
  60. </trim>
  61. </if>
  62. </foreach>
  63. </where>
  64. </sql>
  65. <sql id="Update_By_Example_Where_Clause">
  66. <where>
  67. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  68. <if test="criteria.valid">
  69. <trim prefix="(" prefixOverrides="and" suffix=")">
  70. <foreach collection="criteria.criteria" item="criterion">
  71. <choose>
  72. <when test="criterion.noValue">
  73. and ${criterion.condition}
  74. </when>
  75. <when test="criterion.singleValue">
  76. and ${criterion.condition} #{criterion.value}
  77. </when>
  78. <when test="criterion.betweenValue">
  79. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  80. </when>
  81. <when test="criterion.listValue">
  82. and ${criterion.condition}
  83. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  84. #{listItem}
  85. </foreach>
  86. </when>
  87. </choose>
  88. </foreach>
  89. </trim>
  90. </if>
  91. </foreach>
  92. </where>
  93. </sql>
  94. <sql id="Base_Column_List">
  95. id, build_id, disc_id, group_id, room_no, floor, prediction_internal_area, prediction_share_area,
  96. prediction_build_area, prediction_land_area, actual_internal_area, actual_share_area,
  97. actual_build_area, actual_land_area, room_use, room_number, decoration_situation,
  98. house_type_id, house_type_picture, created_id, created_at, updated_at, updated_id,
  99. sale_status, sold_status, two_point_two, order_num
  100. </sql>
  101. <sql id="Blob_Column_List">
  102. remark
  103. </sql>
  104. <select id="selectByExampleWithBLOBs" parameterType="com.idea.buildManage.model.ParkRoomExample" resultMap="ResultMapWithBLOBs">
  105. select
  106. <if test="distinct">
  107. distinct
  108. </if>
  109. <include refid="Base_Column_List" />
  110. ,
  111. <include refid="Blob_Column_List" />
  112. from park_room
  113. <if test="_parameter != null">
  114. <include refid="Example_Where_Clause" />
  115. </if>
  116. <if test="orderByClause != null">
  117. order by ${orderByClause}
  118. </if>
  119. </select>
  120. <select id="selectByExample" parameterType="com.idea.buildManage.model.ParkRoomExample" resultMap="BaseResultMap">
  121. select
  122. <if test="distinct">
  123. distinct
  124. </if>
  125. <include refid="Base_Column_List" />
  126. from park_room
  127. <if test="_parameter != null">
  128. <include refid="Example_Where_Clause" />
  129. </if>
  130. <if test="orderByClause != null">
  131. order by ${orderByClause}
  132. </if>
  133. </select>
  134. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
  135. select
  136. <include refid="Base_Column_List" />
  137. ,
  138. <include refid="Blob_Column_List" />
  139. from park_room
  140. where id = #{id,jdbcType=VARCHAR}
  141. </select>
  142. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  143. delete from park_room
  144. where id = #{id,jdbcType=VARCHAR}
  145. </delete>
  146. <delete id="deleteByExample" parameterType="com.idea.buildManage.model.ParkRoomExample">
  147. delete from park_room
  148. <if test="_parameter != null">
  149. <include refid="Example_Where_Clause" />
  150. </if>
  151. </delete>
  152. <insert id="insert" parameterType="com.idea.buildManage.model.ParkRoom">
  153. insert into park_room (id, build_id, disc_id,
  154. group_id, room_no, floor,
  155. prediction_internal_area, prediction_share_area,
  156. prediction_build_area, prediction_land_area,
  157. actual_internal_area, actual_share_area, actual_build_area,
  158. actual_land_area, room_use, room_number,
  159. decoration_situation, house_type_id, house_type_picture,
  160. created_id, created_at, updated_at,
  161. updated_id, sale_status, sold_status,
  162. two_point_two, order_num, remark
  163. )
  164. values (#{id,jdbcType=VARCHAR}, #{buildId,jdbcType=VARCHAR}, #{discId,jdbcType=VARCHAR},
  165. #{groupId,jdbcType=VARCHAR}, #{roomNo,jdbcType=VARCHAR}, #{floor,jdbcType=VARCHAR},
  166. #{predictionInternalArea,jdbcType=DOUBLE}, #{predictionShareArea,jdbcType=DOUBLE},
  167. #{predictionBuildArea,jdbcType=DOUBLE}, #{predictionLandArea,jdbcType=DOUBLE},
  168. #{actualInternalArea,jdbcType=DOUBLE}, #{actualShareArea,jdbcType=DOUBLE}, #{actualBuildArea,jdbcType=DOUBLE},
  169. #{actualLandArea,jdbcType=DOUBLE}, #{roomUse,jdbcType=INTEGER}, #{roomNumber,jdbcType=VARCHAR},
  170. #{decorationSituation,jdbcType=INTEGER}, #{houseTypeId,jdbcType=VARCHAR}, #{houseTypePicture,jdbcType=VARCHAR},
  171. #{createdId,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
  172. #{updatedId,jdbcType=VARCHAR}, #{saleStatus,jdbcType=INTEGER}, #{soldStatus,jdbcType=INTEGER},
  173. #{twoPointTwo,jdbcType=VARCHAR}, #{orderNum,jdbcType=VARCHAR}, #{remark,jdbcType=LONGVARCHAR}
  174. )
  175. </insert>
  176. <insert id="insertSelective" parameterType="com.idea.buildManage.model.ParkRoom">
  177. insert into park_room
  178. <trim prefix="(" suffix=")" suffixOverrides=",">
  179. <if test="id != null">
  180. id,
  181. </if>
  182. <if test="buildId != null">
  183. build_id,
  184. </if>
  185. <if test="discId != null">
  186. disc_id,
  187. </if>
  188. <if test="groupId != null">
  189. group_id,
  190. </if>
  191. <if test="roomNo != null">
  192. room_no,
  193. </if>
  194. <if test="floor != null">
  195. floor,
  196. </if>
  197. <if test="predictionInternalArea != null">
  198. prediction_internal_area,
  199. </if>
  200. <if test="predictionShareArea != null">
  201. prediction_share_area,
  202. </if>
  203. <if test="predictionBuildArea != null">
  204. prediction_build_area,
  205. </if>
  206. <if test="predictionLandArea != null">
  207. prediction_land_area,
  208. </if>
  209. <if test="actualInternalArea != null">
  210. actual_internal_area,
  211. </if>
  212. <if test="actualShareArea != null">
  213. actual_share_area,
  214. </if>
  215. <if test="actualBuildArea != null">
  216. actual_build_area,
  217. </if>
  218. <if test="actualLandArea != null">
  219. actual_land_area,
  220. </if>
  221. <if test="roomUse != null">
  222. room_use,
  223. </if>
  224. <if test="roomNumber != null">
  225. room_number,
  226. </if>
  227. <if test="decorationSituation != null">
  228. decoration_situation,
  229. </if>
  230. <if test="houseTypeId != null">
  231. house_type_id,
  232. </if>
  233. <if test="houseTypePicture != null">
  234. house_type_picture,
  235. </if>
  236. <if test="createdId != null">
  237. created_id,
  238. </if>
  239. <if test="createdAt != null">
  240. created_at,
  241. </if>
  242. <if test="updatedAt != null">
  243. updated_at,
  244. </if>
  245. <if test="updatedId != null">
  246. updated_id,
  247. </if>
  248. <if test="saleStatus != null">
  249. sale_status,
  250. </if>
  251. <if test="soldStatus != null">
  252. sold_status,
  253. </if>
  254. <if test="twoPointTwo != null">
  255. two_point_two,
  256. </if>
  257. <if test="orderNum != null">
  258. order_num,
  259. </if>
  260. <if test="remark != null">
  261. remark,
  262. </if>
  263. </trim>
  264. <trim prefix="values (" suffix=")" suffixOverrides=",">
  265. <if test="id != null">
  266. #{id,jdbcType=VARCHAR},
  267. </if>
  268. <if test="buildId != null">
  269. #{buildId,jdbcType=VARCHAR},
  270. </if>
  271. <if test="discId != null">
  272. #{discId,jdbcType=VARCHAR},
  273. </if>
  274. <if test="groupId != null">
  275. #{groupId,jdbcType=VARCHAR},
  276. </if>
  277. <if test="roomNo != null">
  278. #{roomNo,jdbcType=VARCHAR},
  279. </if>
  280. <if test="floor != null">
  281. #{floor,jdbcType=VARCHAR},
  282. </if>
  283. <if test="predictionInternalArea != null">
  284. #{predictionInternalArea,jdbcType=DOUBLE},
  285. </if>
  286. <if test="predictionShareArea != null">
  287. #{predictionShareArea,jdbcType=DOUBLE},
  288. </if>
  289. <if test="predictionBuildArea != null">
  290. #{predictionBuildArea,jdbcType=DOUBLE},
  291. </if>
  292. <if test="predictionLandArea != null">
  293. #{predictionLandArea,jdbcType=DOUBLE},
  294. </if>
  295. <if test="actualInternalArea != null">
  296. #{actualInternalArea,jdbcType=DOUBLE},
  297. </if>
  298. <if test="actualShareArea != null">
  299. #{actualShareArea,jdbcType=DOUBLE},
  300. </if>
  301. <if test="actualBuildArea != null">
  302. #{actualBuildArea,jdbcType=DOUBLE},
  303. </if>
  304. <if test="actualLandArea != null">
  305. #{actualLandArea,jdbcType=DOUBLE},
  306. </if>
  307. <if test="roomUse != null">
  308. #{roomUse,jdbcType=INTEGER},
  309. </if>
  310. <if test="roomNumber != null">
  311. #{roomNumber,jdbcType=VARCHAR},
  312. </if>
  313. <if test="decorationSituation != null">
  314. #{decorationSituation,jdbcType=INTEGER},
  315. </if>
  316. <if test="houseTypeId != null">
  317. #{houseTypeId,jdbcType=VARCHAR},
  318. </if>
  319. <if test="houseTypePicture != null">
  320. #{houseTypePicture,jdbcType=VARCHAR},
  321. </if>
  322. <if test="createdId != null">
  323. #{createdId,jdbcType=VARCHAR},
  324. </if>
  325. <if test="createdAt != null">
  326. #{createdAt,jdbcType=TIMESTAMP},
  327. </if>
  328. <if test="updatedAt != null">
  329. #{updatedAt,jdbcType=TIMESTAMP},
  330. </if>
  331. <if test="updatedId != null">
  332. #{updatedId,jdbcType=VARCHAR},
  333. </if>
  334. <if test="saleStatus != null">
  335. #{saleStatus,jdbcType=INTEGER},
  336. </if>
  337. <if test="soldStatus != null">
  338. #{soldStatus,jdbcType=INTEGER},
  339. </if>
  340. <if test="twoPointTwo != null">
  341. #{twoPointTwo,jdbcType=VARCHAR},
  342. </if>
  343. <if test="orderNum != null">
  344. #{orderNum,jdbcType=VARCHAR},
  345. </if>
  346. <if test="remark != null">
  347. #{remark,jdbcType=LONGVARCHAR},
  348. </if>
  349. </trim>
  350. </insert>
  351. <select id="countByExample" parameterType="com.idea.buildManage.model.ParkRoomExample" resultType="java.lang.Long">
  352. select count(*) from park_room
  353. <if test="_parameter != null">
  354. <include refid="Example_Where_Clause" />
  355. </if>
  356. </select>
  357. <update id="updateByExampleSelective" parameterType="map">
  358. update park_room
  359. <set>
  360. <if test="record.id != null">
  361. id = #{record.id,jdbcType=VARCHAR},
  362. </if>
  363. <if test="record.buildId != null">
  364. build_id = #{record.buildId,jdbcType=VARCHAR},
  365. </if>
  366. <if test="record.discId != null">
  367. disc_id = #{record.discId,jdbcType=VARCHAR},
  368. </if>
  369. <if test="record.groupId != null">
  370. group_id = #{record.groupId,jdbcType=VARCHAR},
  371. </if>
  372. <if test="record.roomNo != null">
  373. room_no = #{record.roomNo,jdbcType=VARCHAR},
  374. </if>
  375. <if test="record.floor != null">
  376. floor = #{record.floor,jdbcType=VARCHAR},
  377. </if>
  378. <if test="record.predictionInternalArea != null">
  379. prediction_internal_area = #{record.predictionInternalArea,jdbcType=DOUBLE},
  380. </if>
  381. <if test="record.predictionShareArea != null">
  382. prediction_share_area = #{record.predictionShareArea,jdbcType=DOUBLE},
  383. </if>
  384. <if test="record.predictionBuildArea != null">
  385. prediction_build_area = #{record.predictionBuildArea,jdbcType=DOUBLE},
  386. </if>
  387. <if test="record.predictionLandArea != null">
  388. prediction_land_area = #{record.predictionLandArea,jdbcType=DOUBLE},
  389. </if>
  390. <if test="record.actualInternalArea != null">
  391. actual_internal_area = #{record.actualInternalArea,jdbcType=DOUBLE},
  392. </if>
  393. <if test="record.actualShareArea != null">
  394. actual_share_area = #{record.actualShareArea,jdbcType=DOUBLE},
  395. </if>
  396. <if test="record.actualBuildArea != null">
  397. actual_build_area = #{record.actualBuildArea,jdbcType=DOUBLE},
  398. </if>
  399. <if test="record.actualLandArea != null">
  400. actual_land_area = #{record.actualLandArea,jdbcType=DOUBLE},
  401. </if>
  402. <if test="record.roomUse != null">
  403. room_use = #{record.roomUse,jdbcType=INTEGER},
  404. </if>
  405. <if test="record.roomNumber != null">
  406. room_number = #{record.roomNumber,jdbcType=VARCHAR},
  407. </if>
  408. <if test="record.decorationSituation != null">
  409. decoration_situation = #{record.decorationSituation,jdbcType=INTEGER},
  410. </if>
  411. <if test="record.houseTypeId != null">
  412. house_type_id = #{record.houseTypeId,jdbcType=VARCHAR},
  413. </if>
  414. <if test="record.houseTypePicture != null">
  415. house_type_picture = #{record.houseTypePicture,jdbcType=VARCHAR},
  416. </if>
  417. <if test="record.createdId != null">
  418. created_id = #{record.createdId,jdbcType=VARCHAR},
  419. </if>
  420. <if test="record.createdAt != null">
  421. created_at = #{record.createdAt,jdbcType=TIMESTAMP},
  422. </if>
  423. <if test="record.updatedAt != null">
  424. updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
  425. </if>
  426. <if test="record.updatedId != null">
  427. updated_id = #{record.updatedId,jdbcType=VARCHAR},
  428. </if>
  429. <if test="record.saleStatus != null">
  430. sale_status = #{record.saleStatus,jdbcType=INTEGER},
  431. </if>
  432. <if test="record.soldStatus != null">
  433. sold_status = #{record.soldStatus,jdbcType=INTEGER},
  434. </if>
  435. <if test="record.twoPointTwo != null">
  436. two_point_two = #{record.twoPointTwo,jdbcType=VARCHAR},
  437. </if>
  438. <if test="record.orderNum != null">
  439. order_num = #{record.orderNum,jdbcType=VARCHAR},
  440. </if>
  441. <if test="record.remark != null">
  442. remark = #{record.remark,jdbcType=LONGVARCHAR},
  443. </if>
  444. </set>
  445. <if test="_parameter != null">
  446. <include refid="Update_By_Example_Where_Clause" />
  447. </if>
  448. </update>
  449. <update id="updateByExampleWithBLOBs" parameterType="map">
  450. update park_room
  451. set id = #{record.id,jdbcType=VARCHAR},
  452. build_id = #{record.buildId,jdbcType=VARCHAR},
  453. disc_id = #{record.discId,jdbcType=VARCHAR},
  454. group_id = #{record.groupId,jdbcType=VARCHAR},
  455. room_no = #{record.roomNo,jdbcType=VARCHAR},
  456. floor = #{record.floor,jdbcType=VARCHAR},
  457. prediction_internal_area = #{record.predictionInternalArea,jdbcType=DOUBLE},
  458. prediction_share_area = #{record.predictionShareArea,jdbcType=DOUBLE},
  459. prediction_build_area = #{record.predictionBuildArea,jdbcType=DOUBLE},
  460. prediction_land_area = #{record.predictionLandArea,jdbcType=DOUBLE},
  461. actual_internal_area = #{record.actualInternalArea,jdbcType=DOUBLE},
  462. actual_share_area = #{record.actualShareArea,jdbcType=DOUBLE},
  463. actual_build_area = #{record.actualBuildArea,jdbcType=DOUBLE},
  464. actual_land_area = #{record.actualLandArea,jdbcType=DOUBLE},
  465. room_use = #{record.roomUse,jdbcType=INTEGER},
  466. room_number = #{record.roomNumber,jdbcType=VARCHAR},
  467. decoration_situation = #{record.decorationSituation,jdbcType=INTEGER},
  468. house_type_id = #{record.houseTypeId,jdbcType=VARCHAR},
  469. house_type_picture = #{record.houseTypePicture,jdbcType=VARCHAR},
  470. created_id = #{record.createdId,jdbcType=VARCHAR},
  471. created_at = #{record.createdAt,jdbcType=TIMESTAMP},
  472. updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
  473. updated_id = #{record.updatedId,jdbcType=VARCHAR},
  474. sale_status = #{record.saleStatus,jdbcType=INTEGER},
  475. sold_status = #{record.soldStatus,jdbcType=INTEGER},
  476. two_point_two = #{record.twoPointTwo,jdbcType=VARCHAR},
  477. order_num = #{record.orderNum,jdbcType=VARCHAR},
  478. remark = #{record.remark,jdbcType=LONGVARCHAR}
  479. <if test="_parameter != null">
  480. <include refid="Update_By_Example_Where_Clause" />
  481. </if>
  482. </update>
  483. <update id="updateByExample" parameterType="map">
  484. update park_room
  485. set id = #{record.id,jdbcType=VARCHAR},
  486. build_id = #{record.buildId,jdbcType=VARCHAR},
  487. disc_id = #{record.discId,jdbcType=VARCHAR},
  488. group_id = #{record.groupId,jdbcType=VARCHAR},
  489. room_no = #{record.roomNo,jdbcType=VARCHAR},
  490. floor = #{record.floor,jdbcType=VARCHAR},
  491. prediction_internal_area = #{record.predictionInternalArea,jdbcType=DOUBLE},
  492. prediction_share_area = #{record.predictionShareArea,jdbcType=DOUBLE},
  493. prediction_build_area = #{record.predictionBuildArea,jdbcType=DOUBLE},
  494. prediction_land_area = #{record.predictionLandArea,jdbcType=DOUBLE},
  495. actual_internal_area = #{record.actualInternalArea,jdbcType=DOUBLE},
  496. actual_share_area = #{record.actualShareArea,jdbcType=DOUBLE},
  497. actual_build_area = #{record.actualBuildArea,jdbcType=DOUBLE},
  498. actual_land_area = #{record.actualLandArea,jdbcType=DOUBLE},
  499. room_use = #{record.roomUse,jdbcType=INTEGER},
  500. room_number = #{record.roomNumber,jdbcType=VARCHAR},
  501. decoration_situation = #{record.decorationSituation,jdbcType=INTEGER},
  502. house_type_id = #{record.houseTypeId,jdbcType=VARCHAR},
  503. house_type_picture = #{record.houseTypePicture,jdbcType=VARCHAR},
  504. created_id = #{record.createdId,jdbcType=VARCHAR},
  505. created_at = #{record.createdAt,jdbcType=TIMESTAMP},
  506. updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
  507. updated_id = #{record.updatedId,jdbcType=VARCHAR},
  508. sale_status = #{record.saleStatus,jdbcType=INTEGER},
  509. sold_status = #{record.soldStatus,jdbcType=INTEGER},
  510. two_point_two = #{record.twoPointTwo,jdbcType=VARCHAR},
  511. order_num = #{record.orderNum,jdbcType=VARCHAR}
  512. <if test="_parameter != null">
  513. <include refid="Update_By_Example_Where_Clause" />
  514. </if>
  515. </update>
  516. <update id="updateByPrimaryKeySelective" parameterType="com.idea.buildManage.model.ParkRoom">
  517. update park_room
  518. <set>
  519. <if test="buildId != null">
  520. build_id = #{buildId,jdbcType=VARCHAR},
  521. </if>
  522. <if test="discId != null">
  523. disc_id = #{discId,jdbcType=VARCHAR},
  524. </if>
  525. <if test="groupId != null">
  526. group_id = #{groupId,jdbcType=VARCHAR},
  527. </if>
  528. <if test="roomNo != null">
  529. room_no = #{roomNo,jdbcType=VARCHAR},
  530. </if>
  531. <if test="floor != null">
  532. floor = #{floor,jdbcType=VARCHAR},
  533. </if>
  534. <if test="predictionInternalArea != null">
  535. prediction_internal_area = #{predictionInternalArea,jdbcType=DOUBLE},
  536. </if>
  537. <if test="predictionShareArea != null">
  538. prediction_share_area = #{predictionShareArea,jdbcType=DOUBLE},
  539. </if>
  540. <if test="predictionBuildArea != null">
  541. prediction_build_area = #{predictionBuildArea,jdbcType=DOUBLE},
  542. </if>
  543. <if test="predictionLandArea != null">
  544. prediction_land_area = #{predictionLandArea,jdbcType=DOUBLE},
  545. </if>
  546. <if test="actualInternalArea != null">
  547. actual_internal_area = #{actualInternalArea,jdbcType=DOUBLE},
  548. </if>
  549. <if test="actualShareArea != null">
  550. actual_share_area = #{actualShareArea,jdbcType=DOUBLE},
  551. </if>
  552. <if test="actualBuildArea != null">
  553. actual_build_area = #{actualBuildArea,jdbcType=DOUBLE},
  554. </if>
  555. <if test="actualLandArea != null">
  556. actual_land_area = #{actualLandArea,jdbcType=DOUBLE},
  557. </if>
  558. <if test="roomUse != null">
  559. room_use = #{roomUse,jdbcType=INTEGER},
  560. </if>
  561. <if test="roomNumber != null">
  562. room_number = #{roomNumber,jdbcType=VARCHAR},
  563. </if>
  564. <if test="decorationSituation != null">
  565. decoration_situation = #{decorationSituation,jdbcType=INTEGER},
  566. </if>
  567. <if test="houseTypeId != null">
  568. house_type_id = #{houseTypeId,jdbcType=VARCHAR},
  569. </if>
  570. <if test="houseTypePicture != null">
  571. house_type_picture = #{houseTypePicture,jdbcType=VARCHAR},
  572. </if>
  573. <if test="createdId != null">
  574. created_id = #{createdId,jdbcType=VARCHAR},
  575. </if>
  576. <if test="createdAt != null">
  577. created_at = #{createdAt,jdbcType=TIMESTAMP},
  578. </if>
  579. <if test="updatedAt != null">
  580. updated_at = #{updatedAt,jdbcType=TIMESTAMP},
  581. </if>
  582. <if test="updatedId != null">
  583. updated_id = #{updatedId,jdbcType=VARCHAR},
  584. </if>
  585. <if test="saleStatus != null">
  586. sale_status = #{saleStatus,jdbcType=INTEGER},
  587. </if>
  588. <if test="soldStatus != null">
  589. sold_status = #{soldStatus,jdbcType=INTEGER},
  590. </if>
  591. <if test="twoPointTwo != null">
  592. two_point_two = #{twoPointTwo,jdbcType=VARCHAR},
  593. </if>
  594. <if test="orderNum != null">
  595. order_num = #{orderNum,jdbcType=VARCHAR},
  596. </if>
  597. <if test="remark != null">
  598. remark = #{remark,jdbcType=LONGVARCHAR},
  599. </if>
  600. </set>
  601. where id = #{id,jdbcType=VARCHAR}
  602. </update>
  603. <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.idea.buildManage.model.ParkRoom">
  604. update park_room
  605. set build_id = #{buildId,jdbcType=VARCHAR},
  606. disc_id = #{discId,jdbcType=VARCHAR},
  607. group_id = #{groupId,jdbcType=VARCHAR},
  608. room_no = #{roomNo,jdbcType=VARCHAR},
  609. floor = #{floor,jdbcType=VARCHAR},
  610. prediction_internal_area = #{predictionInternalArea,jdbcType=DOUBLE},
  611. prediction_share_area = #{predictionShareArea,jdbcType=DOUBLE},
  612. prediction_build_area = #{predictionBuildArea,jdbcType=DOUBLE},
  613. prediction_land_area = #{predictionLandArea,jdbcType=DOUBLE},
  614. actual_internal_area = #{actualInternalArea,jdbcType=DOUBLE},
  615. actual_share_area = #{actualShareArea,jdbcType=DOUBLE},
  616. actual_build_area = #{actualBuildArea,jdbcType=DOUBLE},
  617. actual_land_area = #{actualLandArea,jdbcType=DOUBLE},
  618. room_use = #{roomUse,jdbcType=INTEGER},
  619. room_number = #{roomNumber,jdbcType=VARCHAR},
  620. decoration_situation = #{decorationSituation,jdbcType=INTEGER},
  621. house_type_id = #{houseTypeId,jdbcType=VARCHAR},
  622. house_type_picture = #{houseTypePicture,jdbcType=VARCHAR},
  623. created_id = #{createdId,jdbcType=VARCHAR},
  624. created_at = #{createdAt,jdbcType=TIMESTAMP},
  625. updated_at = #{updatedAt,jdbcType=TIMESTAMP},
  626. updated_id = #{updatedId,jdbcType=VARCHAR},
  627. sale_status = #{saleStatus,jdbcType=INTEGER},
  628. sold_status = #{soldStatus,jdbcType=INTEGER},
  629. two_point_two = #{twoPointTwo,jdbcType=VARCHAR},
  630. order_num = #{orderNum,jdbcType=VARCHAR},
  631. remark = #{remark,jdbcType=LONGVARCHAR}
  632. where id = #{id,jdbcType=VARCHAR}
  633. </update>
  634. <update id="updateByPrimaryKey" parameterType="com.idea.buildManage.model.ParkRoom">
  635. update park_room
  636. set build_id = #{buildId,jdbcType=VARCHAR},
  637. disc_id = #{discId,jdbcType=VARCHAR},
  638. group_id = #{groupId,jdbcType=VARCHAR},
  639. room_no = #{roomNo,jdbcType=VARCHAR},
  640. floor = #{floor,jdbcType=VARCHAR},
  641. prediction_internal_area = #{predictionInternalArea,jdbcType=DOUBLE},
  642. prediction_share_area = #{predictionShareArea,jdbcType=DOUBLE},
  643. prediction_build_area = #{predictionBuildArea,jdbcType=DOUBLE},
  644. prediction_land_area = #{predictionLandArea,jdbcType=DOUBLE},
  645. actual_internal_area = #{actualInternalArea,jdbcType=DOUBLE},
  646. actual_share_area = #{actualShareArea,jdbcType=DOUBLE},
  647. actual_build_area = #{actualBuildArea,jdbcType=DOUBLE},
  648. actual_land_area = #{actualLandArea,jdbcType=DOUBLE},
  649. room_use = #{roomUse,jdbcType=INTEGER},
  650. room_number = #{roomNumber,jdbcType=VARCHAR},
  651. decoration_situation = #{decorationSituation,jdbcType=INTEGER},
  652. house_type_id = #{houseTypeId,jdbcType=VARCHAR},
  653. house_type_picture = #{houseTypePicture,jdbcType=VARCHAR},
  654. created_id = #{createdId,jdbcType=VARCHAR},
  655. created_at = #{createdAt,jdbcType=TIMESTAMP},
  656. updated_at = #{updatedAt,jdbcType=TIMESTAMP},
  657. updated_id = #{updatedId,jdbcType=VARCHAR},
  658. sale_status = #{saleStatus,jdbcType=INTEGER},
  659. sold_status = #{soldStatus,jdbcType=INTEGER},
  660. two_point_two = #{twoPointTwo,jdbcType=VARCHAR},
  661. order_num = #{orderNum,jdbcType=VARCHAR}
  662. where id = #{id,jdbcType=VARCHAR}
  663. </update>
  664. </mapper>