RmsCapacityMapper.xml 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  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.steerinfo.dil.mapper.RmsCapacityMapper">
  4. <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsCapacity">
  5. <id column="CAPACITY_ID" jdbcType="DECIMAL" property="capacityId" />
  6. <result column="CAPACITY_NUMBER" jdbcType="VARCHAR" property="capacityNumber" />
  7. <result column="CAPACITY_MAX_LOAD" jdbcType="DECIMAL" property="capacityMaxLoad" />
  8. <result column="CAPACITY_TYPE_ID" jdbcType="DECIMAL" property="capacityTypeId" />
  9. <result column="CAPACITY_STATUS" jdbcType="DECIMAL" property="capacityStatus" />
  10. <result column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId" />
  11. <result column="CAPACITY_ENERGY_ID" jdbcType="VARCHAR" property="capacityEnergyId" />
  12. <result column="CAPACITY_LEN_VAL" jdbcType="DECIMAL" property="capacityLenVal" />
  13. <result column="CAPACITY_WID_VAL" jdbcType="DECIMAL" property="capacityWidVal" />
  14. <result column="CAPACITY_HIG_VAL" jdbcType="DECIMAL" property="capacityHigVal" />
  15. <result column="CAPACITY_OIL_ID" jdbcType="DECIMAL" property="capacityOilId" />
  16. <result column="CAPACITY_FUEL_CONSUMPTION" jdbcType="VARCHAR" property="capacityFuelConsumption" />
  17. <result column="CAPACITY_OWNERIS" jdbcType="VARCHAR" property="capacityOwneris" />
  18. <result column="CAPACITY_BLACKLIST" jdbcType="VARCHAR" property="capacityBlacklist" />
  19. <result column="MEMO" jdbcType="VARCHAR" property="memo" />
  20. <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
  21. <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
  22. <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
  23. <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
  24. <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
  25. <result column="CAPACITY_CORLOR" jdbcType="VARCHAR" property="capacityCorlor" />
  26. <result column="CAPACITY_VIP" jdbcType="VARCHAR" property="capacityVip" />
  27. <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
  28. <result column="CAPACITY_SSO_ID" jdbcType="VARCHAR" property="capacitySsoId" />
  29. <result column="DRIVER_LICENCE_URL" jdbcType="VARCHAR" property="driverLicenceUrl" />
  30. <result column="CAPACITY_USER_DEP" jdbcType="VARCHAR" property="capacityUserDep" />
  31. <result column="CAPACITY_TEL" jdbcType="VARCHAR" property="capacityTel" />
  32. <result column="CAPACITY_BOOKING_NUMBER" jdbcType="DECIMAL" property="capacityBookingNumber" />
  33. </resultMap>
  34. <sql id="columns">
  35. CAPACITY_ID, CAPACITY_NUMBER, CAPACITY_MAX_LOAD, CAPACITY_TYPE_ID, CAPACITY_STATUS,
  36. CARRIER_ID, CAPACITY_ENERGY_ID, CAPACITY_LEN_VAL, CAPACITY_WID_VAL, CAPACITY_HIG_VAL,
  37. CAPACITY_OIL_ID, CAPACITY_FUEL_CONSUMPTION, CAPACITY_OWNERIS, CAPACITY_BLACKLIST,
  38. MEMO, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
  39. CAPACITY_CORLOR, CAPACITY_VIP, DELETED, CAPACITY_SSO_ID, DRIVER_LICENCE_URL, CAPACITY_USER_DEP,
  40. CAPACITY_TEL, CAPACITY_BOOKING_NUMBER
  41. </sql>
  42. <sql id="columns_alias">
  43. t.CAPACITY_ID, t.CAPACITY_NUMBER, t.CAPACITY_MAX_LOAD, t.CAPACITY_TYPE_ID, t.CAPACITY_STATUS,
  44. t.CARRIER_ID, t.CAPACITY_ENERGY_ID, t.CAPACITY_LEN_VAL, t.CAPACITY_WID_VAL, t.CAPACITY_HIG_VAL,
  45. t.CAPACITY_OIL_ID, t.CAPACITY_FUEL_CONSUMPTION, t.CAPACITY_OWNERIS, t.CAPACITY_BLACKLIST,
  46. t.MEMO, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK,
  47. t.CAPACITY_CORLOR, t.CAPACITY_VIP, t.DELETED, t.CAPACITY_SSO_ID, t.DRIVER_LICENCE_URL,
  48. t.CAPACITY_USER_DEP, t.CAPACITY_TEL, t.CAPACITY_BOOKING_NUMBER
  49. </sql>
  50. <sql id="select">
  51. SELECT <include refid="columns" /> FROM RMS_CAPACITY
  52. </sql>
  53. <sql id="select_alias">
  54. SELECT <include refid="columns_alias" /> FROM RMS_CAPACITY t
  55. </sql>
  56. <sql id="where">
  57. <where>
  58. <if test="capacityId != null">
  59. and CAPACITY_ID = #{capacityId}
  60. </if>
  61. <if test="capacityNumber != null and capacityNumber != ''">
  62. and CAPACITY_NUMBER = #{capacityNumber}
  63. </if>
  64. <if test="capacityMaxLoad != null">
  65. and CAPACITY_MAX_LOAD = #{capacityMaxLoad}
  66. </if>
  67. <if test="capacityTypeId != null">
  68. and CAPACITY_TYPE_ID = #{capacityTypeId}
  69. </if>
  70. <if test="capacityStatus != null">
  71. and CAPACITY_STATUS = #{capacityStatus}
  72. </if>
  73. <if test="carrierId != null">
  74. and CARRIER_ID = #{carrierId}
  75. </if>
  76. <if test="capacityEnergyId != null and capacityEnergyId != ''">
  77. and CAPACITY_ENERGY_ID = #{capacityEnergyId}
  78. </if>
  79. <if test="capacityLenVal != null">
  80. and CAPACITY_LEN_VAL = #{capacityLenVal}
  81. </if>
  82. <if test="capacityWidVal != null">
  83. and CAPACITY_WID_VAL = #{capacityWidVal}
  84. </if>
  85. <if test="capacityHigVal != null">
  86. and CAPACITY_HIG_VAL = #{capacityHigVal}
  87. </if>
  88. <if test="capacityOilId != null">
  89. and CAPACITY_OIL_ID = #{capacityOilId}
  90. </if>
  91. <if test="capacityFuelConsumption != null and capacityFuelConsumption != ''">
  92. and CAPACITY_FUEL_CONSUMPTION = #{capacityFuelConsumption}
  93. </if>
  94. <if test="capacityOwneris != null and capacityOwneris != ''">
  95. and CAPACITY_OWNERIS = #{capacityOwneris}
  96. </if>
  97. <if test="capacityBlacklist != null and capacityBlacklist != ''">
  98. and CAPACITY_BLACKLIST = #{capacityBlacklist}
  99. </if>
  100. <if test="memo != null and memo != ''">
  101. and MEMO = #{memo}
  102. </if>
  103. <if test="insertUsername != null and insertUsername != ''">
  104. and INSERT_USERNAME = #{insertUsername}
  105. </if>
  106. <if test="insertTime != null">
  107. and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
  108. </if>
  109. <if test="updateUsername != null and updateUsername != ''">
  110. and UPDATE_USERNAME = #{updateUsername}
  111. </if>
  112. <if test="updateTime != null">
  113. and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
  114. </if>
  115. <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
  116. and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
  117. </if>
  118. <if test="capacityCorlor != null and capacityCorlor != ''">
  119. and CAPACITY_CORLOR = #{capacityCorlor}
  120. </if>
  121. <if test="capacityVip != null and capacityVip != ''">
  122. and CAPACITY_VIP = #{capacityVip}
  123. </if>
  124. <if test="deleted != null">
  125. and DELETED = #{deleted}
  126. </if>
  127. <if test="capacitySsoId != null and capacitySsoId != ''">
  128. and CAPACITY_SSO_ID = #{capacitySsoId}
  129. </if>
  130. <if test="driverLicenceUrl != null and driverLicenceUrl != ''">
  131. and DRIVER_LICENCE_URL = #{driverLicenceUrl}
  132. </if>
  133. <if test="capacityUserDep != null and capacityUserDep != ''">
  134. and CAPACITY_USER_DEP = #{capacityUserDep}
  135. </if>
  136. <if test="capacityTel != null and capacityTel != ''">
  137. and CAPACITY_TEL = #{capacityTel}
  138. </if>
  139. <if test="capacityBookingNumber != null">
  140. and CAPACITY_BOOKING_NUMBER = #{capacityBookingNumber}
  141. </if>
  142. </where>
  143. </sql>
  144. <sql id="whereLike">
  145. <where>
  146. <if test="capacityId != null">
  147. and CAPACITY_ID = #{capacityId}
  148. </if>
  149. <if test="capacityNumber != null and capacityNumber != ''">
  150. and CAPACITY_NUMBER LIKE '%${capacityNumber}%'
  151. </if>
  152. <if test="capacityMaxLoad != null">
  153. and CAPACITY_MAX_LOAD = #{capacityMaxLoad}
  154. </if>
  155. <if test="capacityTypeId != null">
  156. and CAPACITY_TYPE_ID = #{capacityTypeId}
  157. </if>
  158. <if test="capacityStatus != null">
  159. and CAPACITY_STATUS = #{capacityStatus}
  160. </if>
  161. <if test="carrierId != null">
  162. and CARRIER_ID = #{carrierId}
  163. </if>
  164. <if test="capacityEnergyId != null and capacityEnergyId != ''">
  165. and CAPACITY_ENERGY_ID LIKE '%${capacityEnergyId}%'
  166. </if>
  167. <if test="capacityLenVal != null">
  168. and CAPACITY_LEN_VAL = #{capacityLenVal}
  169. </if>
  170. <if test="capacityWidVal != null">
  171. and CAPACITY_WID_VAL = #{capacityWidVal}
  172. </if>
  173. <if test="capacityHigVal != null">
  174. and CAPACITY_HIG_VAL = #{capacityHigVal}
  175. </if>
  176. <if test="capacityOilId != null">
  177. and CAPACITY_OIL_ID = #{capacityOilId}
  178. </if>
  179. <if test="capacityFuelConsumption != null and capacityFuelConsumption != ''">
  180. and CAPACITY_FUEL_CONSUMPTION LIKE '%${capacityFuelConsumption}%'
  181. </if>
  182. <if test="capacityOwneris != null and capacityOwneris != ''">
  183. and CAPACITY_OWNERIS LIKE '%${capacityOwneris}%'
  184. </if>
  185. <if test="capacityBlacklist != null and capacityBlacklist != ''">
  186. and CAPACITY_BLACKLIST LIKE '%${capacityBlacklist}%'
  187. </if>
  188. <if test="memo != null and memo != ''">
  189. and MEMO LIKE '%${memo}%'
  190. </if>
  191. <if test="insertUsername != null and insertUsername != ''">
  192. and INSERT_USERNAME LIKE '%${insertUsername}%'
  193. </if>
  194. <if test="insertTime != null">
  195. and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
  196. </if>
  197. <if test="updateUsername != null and updateUsername != ''">
  198. and UPDATE_USERNAME LIKE '%${updateUsername}%'
  199. </if>
  200. <if test="updateTime != null">
  201. and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
  202. </if>
  203. <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
  204. and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
  205. </if>
  206. <if test="capacityCorlor != null and capacityCorlor != ''">
  207. and CAPACITY_CORLOR LIKE '%${capacityCorlor}%'
  208. </if>
  209. <if test="capacityVip != null and capacityVip != ''">
  210. and CAPACITY_VIP LIKE '%${capacityVip}%'
  211. </if>
  212. <if test="deleted != null">
  213. and DELETED = #{deleted}
  214. </if>
  215. <if test="capacitySsoId != null and capacitySsoId != ''">
  216. and CAPACITY_SSO_ID LIKE '%${capacitySsoId}%'
  217. </if>
  218. <if test="driverLicenceUrl != null and driverLicenceUrl != ''">
  219. and DRIVER_LICENCE_URL LIKE '%${driverLicenceUrl}%'
  220. </if>
  221. <if test="capacityUserDep != null and capacityUserDep != ''">
  222. and CAPACITY_USER_DEP LIKE '%${capacityUserDep}%'
  223. </if>
  224. <if test="capacityTel != null and capacityTel != ''">
  225. and CAPACITY_TEL LIKE '%${capacityTel}%'
  226. </if>
  227. <if test="capacityBookingNumber != null">
  228. and CAPACITY_BOOKING_NUMBER = #{capacityBookingNumber}
  229. </if>
  230. </where>
  231. </sql>
  232. <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
  233. delete from RMS_CAPACITY
  234. where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
  235. </delete>
  236. <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
  237. delete from RMS_CAPACITY
  238. where 1!=1
  239. <if test="capacityNumber != null and capacityNumber != ''">
  240. or CAPACITY_NUMBER = #{capacityNumber}
  241. </if>
  242. <if test="capacityMaxLoad != null">
  243. or CAPACITY_MAX_LOAD = #{capacityMaxLoad}
  244. </if>
  245. <if test="capacityTypeId != null">
  246. or CAPACITY_TYPE_ID = #{capacityTypeId}
  247. </if>
  248. <if test="capacityStatus != null">
  249. or CAPACITY_STATUS = #{capacityStatus}
  250. </if>
  251. <if test="carrierId != null">
  252. or CARRIER_ID = #{carrierId}
  253. </if>
  254. <if test="capacityEnergyId != null and capacityEnergyId != ''">
  255. or CAPACITY_ENERGY_ID = #{capacityEnergyId}
  256. </if>
  257. <if test="capacityLenVal != null">
  258. or CAPACITY_LEN_VAL = #{capacityLenVal}
  259. </if>
  260. <if test="capacityWidVal != null">
  261. or CAPACITY_WID_VAL = #{capacityWidVal}
  262. </if>
  263. <if test="capacityHigVal != null">
  264. or CAPACITY_HIG_VAL = #{capacityHigVal}
  265. </if>
  266. <if test="capacityOilId != null">
  267. or CAPACITY_OIL_ID = #{capacityOilId}
  268. </if>
  269. <if test="capacityFuelConsumption != null and capacityFuelConsumption != ''">
  270. or CAPACITY_FUEL_CONSUMPTION = #{capacityFuelConsumption}
  271. </if>
  272. <if test="capacityOwneris != null and capacityOwneris != ''">
  273. or CAPACITY_OWNERIS = #{capacityOwneris}
  274. </if>
  275. <if test="capacityBlacklist != null and capacityBlacklist != ''">
  276. or CAPACITY_BLACKLIST = #{capacityBlacklist}
  277. </if>
  278. <if test="memo != null and memo != ''">
  279. or MEMO = #{memo}
  280. </if>
  281. <if test="insertUsername != null and insertUsername != ''">
  282. or INSERT_USERNAME = #{insertUsername}
  283. </if>
  284. <if test="insertTime != null">
  285. or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
  286. </if>
  287. <if test="updateUsername != null and updateUsername != ''">
  288. or UPDATE_USERNAME = #{updateUsername}
  289. </if>
  290. <if test="updateTime != null">
  291. or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
  292. </if>
  293. <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
  294. or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
  295. </if>
  296. <if test="capacityCorlor != null and capacityCorlor != ''">
  297. or CAPACITY_CORLOR = #{capacityCorlor}
  298. </if>
  299. <if test="capacityVip != null and capacityVip != ''">
  300. or CAPACITY_VIP = #{capacityVip}
  301. </if>
  302. <if test="deleted != null">
  303. or DELETED = #{deleted}
  304. </if>
  305. <if test="capacitySsoId != null and capacitySsoId != ''">
  306. or CAPACITY_SSO_ID = #{capacitySsoId}
  307. </if>
  308. <if test="driverLicenceUrl != null and driverLicenceUrl != ''">
  309. or DRIVER_LICENCE_URL = #{driverLicenceUrl}
  310. </if>
  311. <if test="capacityUserDep != null and capacityUserDep != ''">
  312. or CAPACITY_USER_DEP = #{capacityUserDep}
  313. </if>
  314. <if test="capacityTel != null and capacityTel != ''">
  315. or CAPACITY_TEL = #{capacityTel}
  316. </if>
  317. <if test="capacityBookingNumber != null">
  318. or CAPACITY_BOOKING_NUMBER = #{capacityBookingNumber}
  319. </if>
  320. </delete>
  321. <insert id="insert" parameterType="com.steerinfo.dil.model.RmsCapacity">
  322. insert into RMS_CAPACITY (CAPACITY_ID, CAPACITY_NUMBER, CAPACITY_MAX_LOAD,
  323. CAPACITY_TYPE_ID, CAPACITY_STATUS, CARRIER_ID,
  324. CAPACITY_ENERGY_ID, CAPACITY_LEN_VAL, CAPACITY_WID_VAL,
  325. CAPACITY_HIG_VAL, CAPACITY_OIL_ID, CAPACITY_FUEL_CONSUMPTION,
  326. CAPACITY_OWNERIS, CAPACITY_BLACKLIST, MEMO,
  327. INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
  328. UPDATE_TIME, INSERT_UPDATE_REMARK, CAPACITY_CORLOR,
  329. CAPACITY_VIP, DELETED, CAPACITY_SSO_ID,
  330. DRIVER_LICENCE_URL, CAPACITY_USER_DEP, CAPACITY_TEL,
  331. CAPACITY_BOOKING_NUMBER)
  332. values (#{capacityId,jdbcType=DECIMAL}, #{capacityNumber,jdbcType=VARCHAR}, #{capacityMaxLoad,jdbcType=DECIMAL},
  333. #{capacityTypeId,jdbcType=DECIMAL}, #{capacityStatus,jdbcType=DECIMAL}, #{carrierId,jdbcType=DECIMAL},
  334. #{capacityEnergyId,jdbcType=VARCHAR}, #{capacityLenVal,jdbcType=DECIMAL}, #{capacityWidVal,jdbcType=DECIMAL},
  335. #{capacityHigVal,jdbcType=DECIMAL}, #{capacityOilId,jdbcType=DECIMAL}, #{capacityFuelConsumption,jdbcType=VARCHAR},
  336. #{capacityOwneris,jdbcType=VARCHAR}, #{capacityBlacklist,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
  337. #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
  338. #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{capacityCorlor,jdbcType=VARCHAR},
  339. #{capacityVip,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{capacitySsoId,jdbcType=VARCHAR},
  340. #{driverLicenceUrl,jdbcType=VARCHAR}, #{capacityUserDep,jdbcType=VARCHAR}, #{capacityTel,jdbcType=VARCHAR},
  341. #{capacityBookingNumber,jdbcType=DECIMAL})
  342. </insert>
  343. <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsCapacity">
  344. insert into RMS_CAPACITY
  345. <trim prefix="(" suffix=")" suffixOverrides=",">
  346. <if test="capacityId != null">
  347. CAPACITY_ID,
  348. </if>
  349. <if test="capacityNumber != null">
  350. CAPACITY_NUMBER,
  351. </if>
  352. <if test="capacityMaxLoad != null">
  353. CAPACITY_MAX_LOAD,
  354. </if>
  355. <if test="capacityTypeId != null">
  356. CAPACITY_TYPE_ID,
  357. </if>
  358. <if test="capacityStatus != null">
  359. CAPACITY_STATUS,
  360. </if>
  361. <if test="carrierId != null">
  362. CARRIER_ID,
  363. </if>
  364. <if test="capacityEnergyId != null">
  365. CAPACITY_ENERGY_ID,
  366. </if>
  367. <if test="capacityLenVal != null">
  368. CAPACITY_LEN_VAL,
  369. </if>
  370. <if test="capacityWidVal != null">
  371. CAPACITY_WID_VAL,
  372. </if>
  373. <if test="capacityHigVal != null">
  374. CAPACITY_HIG_VAL,
  375. </if>
  376. <if test="capacityOilId != null">
  377. CAPACITY_OIL_ID,
  378. </if>
  379. <if test="capacityFuelConsumption != null">
  380. CAPACITY_FUEL_CONSUMPTION,
  381. </if>
  382. <if test="capacityOwneris != null">
  383. CAPACITY_OWNERIS,
  384. </if>
  385. <if test="capacityBlacklist != null">
  386. CAPACITY_BLACKLIST,
  387. </if>
  388. <if test="memo != null">
  389. MEMO,
  390. </if>
  391. <if test="insertUsername != null">
  392. INSERT_USERNAME,
  393. </if>
  394. <if test="insertTime != null">
  395. INSERT_TIME,
  396. </if>
  397. <if test="updateUsername != null">
  398. UPDATE_USERNAME,
  399. </if>
  400. <if test="updateTime != null">
  401. UPDATE_TIME,
  402. </if>
  403. <if test="insertUpdateRemark != null">
  404. INSERT_UPDATE_REMARK,
  405. </if>
  406. <if test="capacityCorlor != null">
  407. CAPACITY_CORLOR,
  408. </if>
  409. <if test="capacityVip != null">
  410. CAPACITY_VIP,
  411. </if>
  412. <if test="deleted != null">
  413. DELETED,
  414. </if>
  415. <if test="capacitySsoId != null">
  416. CAPACITY_SSO_ID,
  417. </if>
  418. <if test="driverLicenceUrl != null">
  419. DRIVER_LICENCE_URL,
  420. </if>
  421. <if test="capacityUserDep != null">
  422. CAPACITY_USER_DEP,
  423. </if>
  424. <if test="capacityTel != null">
  425. CAPACITY_TEL,
  426. </if>
  427. <if test="capacityBookingNumber != null">
  428. CAPACITY_BOOKING_NUMBER,
  429. </if>
  430. </trim>
  431. <trim prefix="values (" suffix=")" suffixOverrides=",">
  432. <if test="capacityId != null">
  433. #{capacityId,jdbcType=DECIMAL},
  434. </if>
  435. <if test="capacityNumber != null">
  436. #{capacityNumber,jdbcType=VARCHAR},
  437. </if>
  438. <if test="capacityMaxLoad != null">
  439. #{capacityMaxLoad,jdbcType=DECIMAL},
  440. </if>
  441. <if test="capacityTypeId != null">
  442. #{capacityTypeId,jdbcType=DECIMAL},
  443. </if>
  444. <if test="capacityStatus != null">
  445. #{capacityStatus,jdbcType=DECIMAL},
  446. </if>
  447. <if test="carrierId != null">
  448. #{carrierId,jdbcType=DECIMAL},
  449. </if>
  450. <if test="capacityEnergyId != null">
  451. #{capacityEnergyId,jdbcType=VARCHAR},
  452. </if>
  453. <if test="capacityLenVal != null">
  454. #{capacityLenVal,jdbcType=DECIMAL},
  455. </if>
  456. <if test="capacityWidVal != null">
  457. #{capacityWidVal,jdbcType=DECIMAL},
  458. </if>
  459. <if test="capacityHigVal != null">
  460. #{capacityHigVal,jdbcType=DECIMAL},
  461. </if>
  462. <if test="capacityOilId != null">
  463. #{capacityOilId,jdbcType=DECIMAL},
  464. </if>
  465. <if test="capacityFuelConsumption != null">
  466. #{capacityFuelConsumption,jdbcType=VARCHAR},
  467. </if>
  468. <if test="capacityOwneris != null">
  469. #{capacityOwneris,jdbcType=VARCHAR},
  470. </if>
  471. <if test="capacityBlacklist != null">
  472. #{capacityBlacklist,jdbcType=VARCHAR},
  473. </if>
  474. <if test="memo != null">
  475. #{memo,jdbcType=VARCHAR},
  476. </if>
  477. <if test="insertUsername != null">
  478. #{insertUsername,jdbcType=VARCHAR},
  479. </if>
  480. <if test="insertTime != null">
  481. #{insertTime,jdbcType=TIMESTAMP},
  482. </if>
  483. <if test="updateUsername != null">
  484. #{updateUsername,jdbcType=VARCHAR},
  485. </if>
  486. <if test="updateTime != null">
  487. #{updateTime,jdbcType=TIMESTAMP},
  488. </if>
  489. <if test="insertUpdateRemark != null">
  490. #{insertUpdateRemark,jdbcType=VARCHAR},
  491. </if>
  492. <if test="capacityCorlor != null">
  493. #{capacityCorlor,jdbcType=VARCHAR},
  494. </if>
  495. <if test="capacityVip != null">
  496. #{capacityVip,jdbcType=VARCHAR},
  497. </if>
  498. <if test="deleted != null">
  499. #{deleted,jdbcType=DECIMAL},
  500. </if>
  501. <if test="capacitySsoId != null">
  502. #{capacitySsoId,jdbcType=VARCHAR},
  503. </if>
  504. <if test="driverLicenceUrl != null">
  505. #{driverLicenceUrl,jdbcType=VARCHAR},
  506. </if>
  507. <if test="capacityUserDep != null">
  508. #{capacityUserDep,jdbcType=VARCHAR},
  509. </if>
  510. <if test="capacityTel != null">
  511. #{capacityTel,jdbcType=VARCHAR},
  512. </if>
  513. <if test="capacityBookingNumber != null">
  514. #{capacityBookingNumber,jdbcType=DECIMAL},
  515. </if>
  516. </trim>
  517. </insert>
  518. <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsCapacity">
  519. update RMS_CAPACITY
  520. set CAPACITY_NUMBER = #{capacityNumber,jdbcType=VARCHAR},
  521. CAPACITY_MAX_LOAD = #{capacityMaxLoad,jdbcType=DECIMAL},
  522. CAPACITY_TYPE_ID = #{capacityTypeId,jdbcType=DECIMAL},
  523. CAPACITY_STATUS = #{capacityStatus,jdbcType=DECIMAL},
  524. CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
  525. CAPACITY_ENERGY_ID = #{capacityEnergyId,jdbcType=VARCHAR},
  526. CAPACITY_LEN_VAL = #{capacityLenVal,jdbcType=DECIMAL},
  527. CAPACITY_WID_VAL = #{capacityWidVal,jdbcType=DECIMAL},
  528. CAPACITY_HIG_VAL = #{capacityHigVal,jdbcType=DECIMAL},
  529. CAPACITY_OIL_ID = #{capacityOilId,jdbcType=DECIMAL},
  530. CAPACITY_FUEL_CONSUMPTION = #{capacityFuelConsumption,jdbcType=VARCHAR},
  531. CAPACITY_OWNERIS = #{capacityOwneris,jdbcType=VARCHAR},
  532. CAPACITY_BLACKLIST = #{capacityBlacklist,jdbcType=VARCHAR},
  533. MEMO = #{memo,jdbcType=VARCHAR},
  534. INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
  535. INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
  536. UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
  537. UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
  538. INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
  539. CAPACITY_CORLOR = #{capacityCorlor,jdbcType=VARCHAR},
  540. CAPACITY_VIP = #{capacityVip,jdbcType=VARCHAR},
  541. DELETED = #{deleted,jdbcType=DECIMAL},
  542. CAPACITY_SSO_ID = #{capacitySsoId,jdbcType=VARCHAR},
  543. DRIVER_LICENCE_URL = #{driverLicenceUrl,jdbcType=VARCHAR},
  544. CAPACITY_USER_DEP = #{capacityUserDep,jdbcType=VARCHAR},
  545. CAPACITY_TEL = #{capacityTel,jdbcType=VARCHAR},
  546. CAPACITY_BOOKING_NUMBER = #{capacityBookingNumber,jdbcType=DECIMAL}
  547. where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
  548. </update>
  549. <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsCapacity">
  550. update RMS_CAPACITY
  551. <set>
  552. <if test="capacityNumber != null">
  553. CAPACITY_NUMBER = #{capacityNumber,jdbcType=VARCHAR},
  554. </if>
  555. <if test="capacityMaxLoad != null">
  556. CAPACITY_MAX_LOAD = #{capacityMaxLoad,jdbcType=DECIMAL},
  557. </if>
  558. <if test="capacityTypeId != null">
  559. CAPACITY_TYPE_ID = #{capacityTypeId,jdbcType=DECIMAL},
  560. </if>
  561. <if test="capacityStatus != null">
  562. CAPACITY_STATUS = #{capacityStatus,jdbcType=DECIMAL},
  563. </if>
  564. <if test="carrierId != null">
  565. CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
  566. </if>
  567. <if test="capacityEnergyId != null">
  568. CAPACITY_ENERGY_ID = #{capacityEnergyId,jdbcType=VARCHAR},
  569. </if>
  570. <if test="capacityLenVal != null">
  571. CAPACITY_LEN_VAL = #{capacityLenVal,jdbcType=DECIMAL},
  572. </if>
  573. <if test="capacityWidVal != null">
  574. CAPACITY_WID_VAL = #{capacityWidVal,jdbcType=DECIMAL},
  575. </if>
  576. <if test="capacityHigVal != null">
  577. CAPACITY_HIG_VAL = #{capacityHigVal,jdbcType=DECIMAL},
  578. </if>
  579. <if test="capacityOilId != null">
  580. CAPACITY_OIL_ID = #{capacityOilId,jdbcType=DECIMAL},
  581. </if>
  582. <if test="capacityFuelConsumption != null">
  583. CAPACITY_FUEL_CONSUMPTION = #{capacityFuelConsumption,jdbcType=VARCHAR},
  584. </if>
  585. <if test="capacityOwneris != null">
  586. CAPACITY_OWNERIS = #{capacityOwneris,jdbcType=VARCHAR},
  587. </if>
  588. <if test="capacityBlacklist != null">
  589. CAPACITY_BLACKLIST = #{capacityBlacklist,jdbcType=VARCHAR},
  590. </if>
  591. <if test="memo != null">
  592. MEMO = #{memo,jdbcType=VARCHAR},
  593. </if>
  594. <if test="insertUsername != null">
  595. INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
  596. </if>
  597. <if test="insertTime != null">
  598. INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
  599. </if>
  600. <if test="updateUsername != null">
  601. UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
  602. </if>
  603. <if test="updateTime != null">
  604. UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
  605. </if>
  606. <if test="insertUpdateRemark != null">
  607. INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
  608. </if>
  609. <if test="capacityCorlor != null">
  610. CAPACITY_CORLOR = #{capacityCorlor,jdbcType=VARCHAR},
  611. </if>
  612. <if test="capacityVip != null">
  613. CAPACITY_VIP = #{capacityVip,jdbcType=VARCHAR},
  614. </if>
  615. <if test="deleted != null">
  616. DELETED = #{deleted,jdbcType=DECIMAL},
  617. </if>
  618. <if test="capacitySsoId != null">
  619. CAPACITY_SSO_ID = #{capacitySsoId,jdbcType=VARCHAR},
  620. </if>
  621. <if test="driverLicenceUrl != null">
  622. DRIVER_LICENCE_URL = #{driverLicenceUrl,jdbcType=VARCHAR},
  623. </if>
  624. <if test="capacityUserDep != null">
  625. CAPACITY_USER_DEP = #{capacityUserDep,jdbcType=VARCHAR},
  626. </if>
  627. <if test="capacityTel != null">
  628. CAPACITY_TEL = #{capacityTel,jdbcType=VARCHAR},
  629. </if>
  630. <if test="capacityBookingNumber != null">
  631. CAPACITY_BOOKING_NUMBER = #{capacityBookingNumber,jdbcType=DECIMAL},
  632. </if>
  633. </set>
  634. where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
  635. </update>
  636. <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
  637. <include refid="select" />
  638. where CAPACITY_ID = #{capacityId,jdbcType=DECIMAL}
  639. </select>
  640. <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
  641. <include refid="select" />
  642. <include refid="where" />
  643. </select>
  644. <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
  645. <include refid="select" />
  646. <include refid="whereLike" />
  647. </select>
  648. <insert id="batchInsert" parameterType="java.util.List">
  649. insert into RMS_CAPACITY
  650. (CAPACITY_ID,
  651. CAPACITY_NUMBER, CAPACITY_MAX_LOAD,
  652. CAPACITY_TYPE_ID, CAPACITY_STATUS,
  653. CARRIER_ID, CAPACITY_ENERGY_ID,
  654. CAPACITY_LEN_VAL, CAPACITY_WID_VAL,
  655. CAPACITY_HIG_VAL, CAPACITY_OIL_ID,
  656. CAPACITY_FUEL_CONSUMPTION, CAPACITY_OWNERIS,
  657. CAPACITY_BLACKLIST, MEMO, INSERT_USERNAME,
  658. INSERT_TIME, UPDATE_USERNAME,
  659. UPDATE_TIME, INSERT_UPDATE_REMARK,
  660. CAPACITY_CORLOR, CAPACITY_VIP,
  661. DELETED, CAPACITY_SSO_ID, DRIVER_LICENCE_URL,
  662. CAPACITY_USER_DEP, CAPACITY_TEL,
  663. CAPACITY_BOOKING_NUMBER)
  664. ( <foreach collection="list" item="item" separator="union all">
  665. select
  666. #{item.capacityId,jdbcType=DECIMAL},
  667. #{item.capacityNumber,jdbcType=VARCHAR}, #{item.capacityMaxLoad,jdbcType=DECIMAL},
  668. #{item.capacityTypeId,jdbcType=DECIMAL}, #{item.capacityStatus,jdbcType=DECIMAL},
  669. #{item.carrierId,jdbcType=DECIMAL}, #{item.capacityEnergyId,jdbcType=VARCHAR},
  670. #{item.capacityLenVal,jdbcType=DECIMAL}, #{item.capacityWidVal,jdbcType=DECIMAL},
  671. #{item.capacityHigVal,jdbcType=DECIMAL}, #{item.capacityOilId,jdbcType=DECIMAL},
  672. #{item.capacityFuelConsumption,jdbcType=VARCHAR}, #{item.capacityOwneris,jdbcType=VARCHAR},
  673. #{item.capacityBlacklist,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},
  674. #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
  675. #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
  676. #{item.capacityCorlor,jdbcType=VARCHAR}, #{item.capacityVip,jdbcType=VARCHAR},
  677. #{item.deleted,jdbcType=DECIMAL}, #{item.capacitySsoId,jdbcType=VARCHAR}, #{item.driverLicenceUrl,jdbcType=VARCHAR},
  678. #{item.capacityUserDep,jdbcType=VARCHAR}, #{item.capacityTel,jdbcType=VARCHAR},
  679. #{item.capacityBookingNumber,jdbcType=DECIMAL} from dual
  680. </foreach> )
  681. </insert>
  682. <update id="batchUpdate" parameterType="java.util.List">
  683. update RMS_CAPACITY
  684. set
  685. CAPACITY_ID=
  686. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  687. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityId,jdbcType=DECIMAL}
  688. </foreach>
  689. ,CAPACITY_NUMBER=
  690. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  691. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityNumber,jdbcType=VARCHAR}
  692. </foreach>
  693. ,CAPACITY_MAX_LOAD=
  694. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  695. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityMaxLoad,jdbcType=DECIMAL}
  696. </foreach>
  697. ,CAPACITY_TYPE_ID=
  698. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  699. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityTypeId,jdbcType=DECIMAL}
  700. </foreach>
  701. ,CAPACITY_STATUS=
  702. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  703. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityStatus,jdbcType=DECIMAL}
  704. </foreach>
  705. ,CARRIER_ID=
  706. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  707. when #{item.capacityId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
  708. </foreach>
  709. ,CAPACITY_ENERGY_ID=
  710. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  711. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityEnergyId,jdbcType=VARCHAR}
  712. </foreach>
  713. ,CAPACITY_LEN_VAL=
  714. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  715. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityLenVal,jdbcType=DECIMAL}
  716. </foreach>
  717. ,CAPACITY_WID_VAL=
  718. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  719. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityWidVal,jdbcType=DECIMAL}
  720. </foreach>
  721. ,CAPACITY_HIG_VAL=
  722. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  723. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityHigVal,jdbcType=DECIMAL}
  724. </foreach>
  725. ,CAPACITY_OIL_ID=
  726. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  727. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityOilId,jdbcType=DECIMAL}
  728. </foreach>
  729. ,CAPACITY_FUEL_CONSUMPTION=
  730. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  731. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityFuelConsumption,jdbcType=VARCHAR}
  732. </foreach>
  733. ,CAPACITY_OWNERIS=
  734. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  735. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityOwneris,jdbcType=VARCHAR}
  736. </foreach>
  737. ,CAPACITY_BLACKLIST=
  738. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  739. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityBlacklist,jdbcType=VARCHAR}
  740. </foreach>
  741. ,MEMO=
  742. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  743. when #{item.capacityId,jdbcType=DECIMAL} then #{item.memo,jdbcType=VARCHAR}
  744. </foreach>
  745. ,INSERT_USERNAME=
  746. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  747. when #{item.capacityId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
  748. </foreach>
  749. ,INSERT_TIME=
  750. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  751. when #{item.capacityId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
  752. </foreach>
  753. ,UPDATE_USERNAME=
  754. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  755. when #{item.capacityId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
  756. </foreach>
  757. ,UPDATE_TIME=
  758. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  759. when #{item.capacityId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
  760. </foreach>
  761. ,INSERT_UPDATE_REMARK=
  762. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  763. when #{item.capacityId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
  764. </foreach>
  765. ,CAPACITY_CORLOR=
  766. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  767. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityCorlor,jdbcType=VARCHAR}
  768. </foreach>
  769. ,CAPACITY_VIP=
  770. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  771. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityVip,jdbcType=VARCHAR}
  772. </foreach>
  773. ,DELETED=
  774. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  775. when #{item.capacityId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
  776. </foreach>
  777. ,CAPACITY_SSO_ID=
  778. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  779. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacitySsoId,jdbcType=VARCHAR}
  780. </foreach>
  781. ,DRIVER_LICENCE_URL=
  782. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  783. when #{item.capacityId,jdbcType=DECIMAL} then #{item.driverLicenceUrl,jdbcType=VARCHAR}
  784. </foreach>
  785. ,CAPACITY_USER_DEP=
  786. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  787. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityUserDep,jdbcType=VARCHAR}
  788. </foreach>
  789. ,CAPACITY_TEL=
  790. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  791. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityTel,jdbcType=VARCHAR}
  792. </foreach>
  793. ,CAPACITY_BOOKING_NUMBER=
  794. <foreach close="end" collection="list" index="index" item="item" open="case CAPACITY_ID" separator=" ">
  795. when #{item.capacityId,jdbcType=DECIMAL} then #{item.capacityBookingNumber,jdbcType=DECIMAL}
  796. </foreach>
  797. where CAPACITY_ID in
  798. <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
  799. #{item.capacityId,jdbcType=DECIMAL}
  800. </foreach>
  801. </update>
  802. <delete id="batchDelete" parameterType="java.util.List">
  803. delete from RMS_CAPACITY
  804. where CAPACITY_ID in
  805. <foreach close=")" collection="list" item="id" open="(" separator=",">
  806. #{id}
  807. </foreach>
  808. </delete>
  809. <!-- 友情提示!!!-->
  810. <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
  811. <select id="getCapacityIdByCapacityNumber" resultType="java.util.Map" parameterType="java.lang.String">
  812. select RC.CAPACITY_ID "capacityId",
  813. RC.CAPACITY_BOOKING_NUMBER "bookingNumber"
  814. from RMS_CAPACITY RC
  815. WHERE rc.CAPACITY_NUMBER = #{capacityNumber} and RC.DELETED=0
  816. </select>
  817. </mapper>