BmsshipFeeMapper.xml 35 KB

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