RoomSelectionInfoMapper.xml 24 KB

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