TmsshipEntryWharyResultMapper.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  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.TmsshipEntryWharyResultMapper">
  4. <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmsshipEntryWharyResult">
  5. <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId" />
  6. <result column="TOTAL_RESULT_ID" jdbcType="DECIMAL" property="totalResultId" />
  7. <result column="RESULT_NUMBER" jdbcType="VARCHAR" property="resultNumber" />
  8. <result column="WHARY_ID" jdbcType="DECIMAL" property="wharyId" />
  9. <result column="RESULT_PORT_DECLARATION_TIME" jdbcType="TIMESTAMP" property="resultPortDeclarationTime" />
  10. <result column="RESULT_PORT_DECLARATION_NAME" jdbcType="VARCHAR" property="resultPortDeclarationName" />
  11. <result column="RESULT_ARRIVAL_TIME" jdbcType="TIMESTAMP" property="resultArrivalTime" />
  12. <result column="RESULT_MEMO" jdbcType="VARCHAR" property="resultMemo" />
  13. <result column="DELETE_NAME" jdbcType="VARCHAR" property="deleteName" />
  14. <result column="DELETE_TIME" jdbcType="VARCHAR" property="deleteTime" />
  15. <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
  16. <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
  17. <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
  18. <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
  19. <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
  20. </resultMap>
  21. <sql id="columns">
  22. RESULT_ID, TOTAL_RESULT_ID, RESULT_NUMBER, WHARY_ID, RESULT_PORT_DECLARATION_TIME,
  23. RESULT_PORT_DECLARATION_NAME, RESULT_ARRIVAL_TIME, RESULT_MEMO, DELETE_NAME, DELETE_TIME,
  24. INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK
  25. </sql>
  26. <sql id="columns_alias">
  27. t.RESULT_ID, t.TOTAL_RESULT_ID, t.RESULT_NUMBER, t.WHARY_ID, t.RESULT_PORT_DECLARATION_TIME,
  28. t.RESULT_PORT_DECLARATION_NAME, t.RESULT_ARRIVAL_TIME, t.RESULT_MEMO, t.DELETE_NAME,
  29. t.DELETE_TIME, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME,
  30. t.INSERT_UPDATE_REMARK
  31. </sql>
  32. <sql id="select">
  33. SELECT <include refid="columns"/> FROM TMSSHIP_ENTRY_WHARY_RESULT
  34. </sql>
  35. <sql id="select_alias">
  36. SELECT <include refid="columns_alias"/> FROM TMSSHIP_ENTRY_WHARY_RESULT t
  37. </sql>
  38. <sql id="where">
  39. <where>
  40. <if test="resultId != null">
  41. and RESULT_ID = #{resultId}
  42. </if>
  43. <if test="totalResultId != null">
  44. and TOTAL_RESULT_ID = #{totalResultId}
  45. </if>
  46. <if test="resultNumber != null and resultNumber != ''">
  47. and RESULT_NUMBER = #{resultNumber}
  48. </if>
  49. <if test="wharyId != null">
  50. and WHARY_ID = #{wharyId}
  51. </if>
  52. <if test="resultPortDeclarationTime != null">
  53. and TO_CHAR(RESULT_PORT_DECLARATION_TIME,'yyyy-MM-dd') = #{resultPortDeclarationTime}
  54. </if>
  55. <if test="resultPortDeclarationName != null and resultPortDeclarationName != ''">
  56. and RESULT_PORT_DECLARATION_NAME = #{resultPortDeclarationName}
  57. </if>
  58. <if test="resultArrivalTime != null">
  59. and TO_CHAR(RESULT_ARRIVAL_TIME,'yyyy-MM-dd') = #{resultArrivalTime}
  60. </if>
  61. <if test="resultMemo != null and resultMemo != ''">
  62. and RESULT_MEMO = #{resultMemo}
  63. </if>
  64. <if test="deleteName != null and deleteName != ''">
  65. and DELETE_NAME = #{deleteName}
  66. </if>
  67. <if test="deleteTime != null and deleteTime != ''">
  68. and DELETE_TIME = #{deleteTime}
  69. </if>
  70. <if test="insertUsername != null and insertUsername != ''">
  71. and INSERT_USERNAME = #{insertUsername}
  72. </if>
  73. <if test="insertTime != null">
  74. and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
  75. </if>
  76. <if test="updateUsername != null and updateUsername != ''">
  77. and UPDATE_USERNAME = #{updateUsername}
  78. </if>
  79. <if test="updateTime != null">
  80. and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
  81. </if>
  82. <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
  83. and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
  84. </if>
  85. </where>
  86. </sql>
  87. <sql id="whereLike">
  88. <where>
  89. <if test="resultId != null">
  90. and RESULT_ID = #{resultId}
  91. </if>
  92. <if test="totalResultId != null">
  93. and TOTAL_RESULT_ID = #{totalResultId}
  94. </if>
  95. <if test="resultNumber != null and resultNumber != ''">
  96. and RESULT_NUMBER LIKE '%${resultNumber}%'
  97. </if>
  98. <if test="wharyId != null">
  99. and WHARY_ID = #{wharyId}
  100. </if>
  101. <if test="resultPortDeclarationTime != null">
  102. and TO_CHAR(RESULT_PORT_DECLARATION_TIME,'yyyy-MM-dd') = #{resultPortDeclarationTime}
  103. </if>
  104. <if test="resultPortDeclarationName != null and resultPortDeclarationName != ''">
  105. and RESULT_PORT_DECLARATION_NAME LIKE '%${resultPortDeclarationName}%'
  106. </if>
  107. <if test="resultArrivalTime != null">
  108. and TO_CHAR(RESULT_ARRIVAL_TIME,'yyyy-MM-dd') = #{resultArrivalTime}
  109. </if>
  110. <if test="resultMemo != null and resultMemo != ''">
  111. and RESULT_MEMO LIKE '%${resultMemo}%'
  112. </if>
  113. <if test="deleteName != null and deleteName != ''">
  114. and DELETE_NAME LIKE '%${deleteName}%'
  115. </if>
  116. <if test="deleteTime != null and deleteTime != ''">
  117. and DELETE_TIME LIKE '%${deleteTime}%'
  118. </if>
  119. <if test="insertUsername != null and insertUsername != ''">
  120. and INSERT_USERNAME LIKE '%${insertUsername}%'
  121. </if>
  122. <if test="insertTime != null">
  123. and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
  124. </if>
  125. <if test="updateUsername != null and updateUsername != ''">
  126. and UPDATE_USERNAME LIKE '%${updateUsername}%'
  127. </if>
  128. <if test="updateTime != null">
  129. and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
  130. </if>
  131. <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
  132. and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
  133. </if>
  134. </where>
  135. </sql>
  136. <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
  137. delete from TMSSHIP_ENTRY_WHARY_RESULT
  138. where RESULT_ID = #{resultId,jdbcType=DECIMAL}
  139. </delete>
  140. <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
  141. delete from TMSSHIP_ENTRY_WHARY_RESULT
  142. where 1!=1
  143. <if test="totalResultId != null">
  144. or TOTAL_RESULT_ID = #{totalResultId}
  145. </if>
  146. <if test="resultNumber != null and resultNumber != ''">
  147. or RESULT_NUMBER = #{resultNumber}
  148. </if>
  149. <if test="wharyId != null">
  150. or WHARY_ID = #{wharyId}
  151. </if>
  152. <if test="resultPortDeclarationTime != null">
  153. or TO_CHAR(RESULT_PORT_DECLARATION_TIME,'yyyy-MM-dd') = '#{resultPortDeclarationTime}'
  154. </if>
  155. <if test="resultPortDeclarationName != null and resultPortDeclarationName != ''">
  156. or RESULT_PORT_DECLARATION_NAME = #{resultPortDeclarationName}
  157. </if>
  158. <if test="resultArrivalTime != null">
  159. or TO_CHAR(RESULT_ARRIVAL_TIME,'yyyy-MM-dd') = '#{resultArrivalTime}'
  160. </if>
  161. <if test="resultMemo != null and resultMemo != ''">
  162. or RESULT_MEMO = #{resultMemo}
  163. </if>
  164. <if test="deleteName != null and deleteName != ''">
  165. or DELETE_NAME = #{deleteName}
  166. </if>
  167. <if test="deleteTime != null and deleteTime != ''">
  168. or DELETE_TIME = #{deleteTime}
  169. </if>
  170. <if test="insertUsername != null and insertUsername != ''">
  171. or INSERT_USERNAME = #{insertUsername}
  172. </if>
  173. <if test="insertTime != null">
  174. or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
  175. </if>
  176. <if test="updateUsername != null and updateUsername != ''">
  177. or UPDATE_USERNAME = #{updateUsername}
  178. </if>
  179. <if test="updateTime != null">
  180. or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
  181. </if>
  182. <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
  183. or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
  184. </if>
  185. </delete>
  186. <insert id="insert" parameterType="com.steerinfo.dil.model.TmsshipEntryWharyResult">
  187. insert into TMSSHIP_ENTRY_WHARY_RESULT (RESULT_ID, TOTAL_RESULT_ID, RESULT_NUMBER,
  188. WHARY_ID, RESULT_PORT_DECLARATION_TIME, RESULT_PORT_DECLARATION_NAME,
  189. RESULT_ARRIVAL_TIME, RESULT_MEMO, DELETE_NAME,
  190. DELETE_TIME, INSERT_USERNAME, INSERT_TIME,
  191. UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK
  192. )
  193. values (#{resultId,jdbcType=DECIMAL}, #{totalResultId,jdbcType=DECIMAL}, #{resultNumber,jdbcType=VARCHAR},
  194. #{wharyId,jdbcType=DECIMAL}, #{resultPortDeclarationTime,jdbcType=TIMESTAMP}, #{resultPortDeclarationName,jdbcType=VARCHAR},
  195. #{resultArrivalTime,jdbcType=TIMESTAMP}, #{resultMemo,jdbcType=VARCHAR}, #{deleteName,jdbcType=VARCHAR},
  196. #{deleteTime,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
  197. #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}
  198. )
  199. </insert>
  200. <insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmsshipEntryWharyResult">
  201. insert into TMSSHIP_ENTRY_WHARY_RESULT
  202. <trim prefix="(" suffix=")" suffixOverrides=",">
  203. <if test="resultId != null">
  204. RESULT_ID,
  205. </if>
  206. <if test="totalResultId != null">
  207. TOTAL_RESULT_ID,
  208. </if>
  209. <if test="resultNumber != null">
  210. RESULT_NUMBER,
  211. </if>
  212. <if test="wharyId != null">
  213. WHARY_ID,
  214. </if>
  215. <if test="resultPortDeclarationTime != null">
  216. RESULT_PORT_DECLARATION_TIME,
  217. </if>
  218. <if test="resultPortDeclarationName != null">
  219. RESULT_PORT_DECLARATION_NAME,
  220. </if>
  221. <if test="resultArrivalTime != null">
  222. RESULT_ARRIVAL_TIME,
  223. </if>
  224. <if test="resultMemo != null">
  225. RESULT_MEMO,
  226. </if>
  227. <if test="deleteName != null">
  228. DELETE_NAME,
  229. </if>
  230. <if test="deleteTime != null">
  231. DELETE_TIME,
  232. </if>
  233. <if test="insertUsername != null">
  234. INSERT_USERNAME,
  235. </if>
  236. <if test="insertTime != null">
  237. INSERT_TIME,
  238. </if>
  239. <if test="updateUsername != null">
  240. UPDATE_USERNAME,
  241. </if>
  242. <if test="updateTime != null">
  243. UPDATE_TIME,
  244. </if>
  245. <if test="insertUpdateRemark != null">
  246. INSERT_UPDATE_REMARK,
  247. </if>
  248. </trim>
  249. <trim prefix="values (" suffix=")" suffixOverrides=",">
  250. <if test="resultId != null">
  251. #{resultId,jdbcType=DECIMAL},
  252. </if>
  253. <if test="totalResultId != null">
  254. #{totalResultId,jdbcType=DECIMAL},
  255. </if>
  256. <if test="resultNumber != null">
  257. #{resultNumber,jdbcType=VARCHAR},
  258. </if>
  259. <if test="wharyId != null">
  260. #{wharyId,jdbcType=DECIMAL},
  261. </if>
  262. <if test="resultPortDeclarationTime != null">
  263. #{resultPortDeclarationTime,jdbcType=TIMESTAMP},
  264. </if>
  265. <if test="resultPortDeclarationName != null">
  266. #{resultPortDeclarationName,jdbcType=VARCHAR},
  267. </if>
  268. <if test="resultArrivalTime != null">
  269. #{resultArrivalTime,jdbcType=TIMESTAMP},
  270. </if>
  271. <if test="resultMemo != null">
  272. #{resultMemo,jdbcType=VARCHAR},
  273. </if>
  274. <if test="deleteName != null">
  275. #{deleteName,jdbcType=VARCHAR},
  276. </if>
  277. <if test="deleteTime != null">
  278. #{deleteTime,jdbcType=VARCHAR},
  279. </if>
  280. <if test="insertUsername != null">
  281. #{insertUsername,jdbcType=VARCHAR},
  282. </if>
  283. <if test="insertTime != null">
  284. #{insertTime,jdbcType=TIMESTAMP},
  285. </if>
  286. <if test="updateUsername != null">
  287. #{updateUsername,jdbcType=VARCHAR},
  288. </if>
  289. <if test="updateTime != null">
  290. #{updateTime,jdbcType=TIMESTAMP},
  291. </if>
  292. <if test="insertUpdateRemark != null">
  293. #{insertUpdateRemark,jdbcType=VARCHAR},
  294. </if>
  295. </trim>
  296. </insert>
  297. <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmsshipEntryWharyResult">
  298. update TMSSHIP_ENTRY_WHARY_RESULT
  299. set TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
  300. RESULT_NUMBER = #{resultNumber,jdbcType=VARCHAR},
  301. WHARY_ID = #{wharyId,jdbcType=DECIMAL},
  302. RESULT_PORT_DECLARATION_TIME = #{resultPortDeclarationTime,jdbcType=TIMESTAMP},
  303. RESULT_PORT_DECLARATION_NAME = #{resultPortDeclarationName,jdbcType=VARCHAR},
  304. RESULT_ARRIVAL_TIME = #{resultArrivalTime,jdbcType=TIMESTAMP},
  305. RESULT_MEMO = #{resultMemo,jdbcType=VARCHAR},
  306. DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
  307. DELETE_TIME = #{deleteTime,jdbcType=VARCHAR},
  308. INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
  309. INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
  310. UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
  311. UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
  312. INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}
  313. where RESULT_ID = #{resultId,jdbcType=DECIMAL}
  314. </update>
  315. <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmsshipEntryWharyResult">
  316. update TMSSHIP_ENTRY_WHARY_RESULT
  317. <set>
  318. <if test="totalResultId != null">
  319. TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
  320. </if>
  321. <if test="resultNumber != null">
  322. RESULT_NUMBER = #{resultNumber,jdbcType=VARCHAR},
  323. </if>
  324. <if test="wharyId != null">
  325. WHARY_ID = #{wharyId,jdbcType=DECIMAL},
  326. </if>
  327. <if test="resultPortDeclarationTime != null">
  328. RESULT_PORT_DECLARATION_TIME = #{resultPortDeclarationTime,jdbcType=TIMESTAMP},
  329. </if>
  330. <if test="resultPortDeclarationName != null">
  331. RESULT_PORT_DECLARATION_NAME = #{resultPortDeclarationName,jdbcType=VARCHAR},
  332. </if>
  333. <if test="resultArrivalTime != null">
  334. RESULT_ARRIVAL_TIME = #{resultArrivalTime,jdbcType=TIMESTAMP},
  335. </if>
  336. <if test="resultMemo != null">
  337. RESULT_MEMO = #{resultMemo,jdbcType=VARCHAR},
  338. </if>
  339. <if test="deleteName != null">
  340. DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
  341. </if>
  342. <if test="deleteTime != null">
  343. DELETE_TIME = #{deleteTime,jdbcType=VARCHAR},
  344. </if>
  345. <if test="insertUsername != null">
  346. INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
  347. </if>
  348. <if test="insertTime != null">
  349. INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
  350. </if>
  351. <if test="updateUsername != null">
  352. UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
  353. </if>
  354. <if test="updateTime != null">
  355. UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
  356. </if>
  357. <if test="insertUpdateRemark != null">
  358. INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
  359. </if>
  360. </set>
  361. where RESULT_ID = #{resultId,jdbcType=DECIMAL}
  362. </update>
  363. <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
  364. <include refid="select"/>
  365. where RESULT_ID = #{resultId,jdbcType=DECIMAL}
  366. </select>
  367. <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
  368. <include refid="select"/>
  369. <include refid="where"/>
  370. </select>
  371. <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
  372. <include refid="select"/>
  373. <include refid="whereLike"/>
  374. </select>
  375. <insert id="batchInsert" parameterType="java.util.List">
  376. insert into TMSSHIP_ENTRY_WHARY_RESULT
  377. (RESULT_ID,
  378. TOTAL_RESULT_ID, RESULT_NUMBER,
  379. WHARY_ID, RESULT_PORT_DECLARATION_TIME,
  380. RESULT_PORT_DECLARATION_NAME, RESULT_ARRIVAL_TIME,
  381. RESULT_MEMO, DELETE_NAME, DELETE_TIME,
  382. INSERT_USERNAME, INSERT_TIME,
  383. UPDATE_USERNAME, UPDATE_TIME,
  384. INSERT_UPDATE_REMARK)
  385. ( <foreach collection="list" item="item" separator="union all">
  386. select
  387. #{item.resultId,jdbcType=DECIMAL},
  388. #{item.totalResultId,jdbcType=DECIMAL}, #{item.resultNumber,jdbcType=VARCHAR},
  389. #{item.wharyId,jdbcType=DECIMAL}, #{item.resultPortDeclarationTime,jdbcType=TIMESTAMP},
  390. #{item.resultPortDeclarationName,jdbcType=VARCHAR}, #{item.resultArrivalTime,jdbcType=TIMESTAMP},
  391. #{item.resultMemo,jdbcType=VARCHAR}, #{item.deleteName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=VARCHAR},
  392. #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
  393. #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
  394. #{item.insertUpdateRemark,jdbcType=VARCHAR} from dual
  395. </foreach> )
  396. </insert>
  397. <update id="batchUpdate" parameterType="java.util.List">
  398. update TMSSHIP_ENTRY_WHARY_RESULT
  399. set
  400. RESULT_ID=
  401. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  402. when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
  403. </foreach>
  404. ,TOTAL_RESULT_ID=
  405. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  406. when #{item.resultId,jdbcType=DECIMAL} then #{item.totalResultId,jdbcType=DECIMAL}
  407. </foreach>
  408. ,RESULT_NUMBER=
  409. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  410. when #{item.resultId,jdbcType=DECIMAL} then #{item.resultNumber,jdbcType=VARCHAR}
  411. </foreach>
  412. ,WHARY_ID=
  413. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  414. when #{item.resultId,jdbcType=DECIMAL} then #{item.wharyId,jdbcType=DECIMAL}
  415. </foreach>
  416. ,RESULT_PORT_DECLARATION_TIME=
  417. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  418. when #{item.resultId,jdbcType=DECIMAL} then #{item.resultPortDeclarationTime,jdbcType=TIMESTAMP}
  419. </foreach>
  420. ,RESULT_PORT_DECLARATION_NAME=
  421. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  422. when #{item.resultId,jdbcType=DECIMAL} then #{item.resultPortDeclarationName,jdbcType=VARCHAR}
  423. </foreach>
  424. ,RESULT_ARRIVAL_TIME=
  425. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  426. when #{item.resultId,jdbcType=DECIMAL} then #{item.resultArrivalTime,jdbcType=TIMESTAMP}
  427. </foreach>
  428. ,RESULT_MEMO=
  429. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  430. when #{item.resultId,jdbcType=DECIMAL} then #{item.resultMemo,jdbcType=VARCHAR}
  431. </foreach>
  432. ,DELETE_NAME=
  433. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  434. when #{item.resultId,jdbcType=DECIMAL} then #{item.deleteName,jdbcType=VARCHAR}
  435. </foreach>
  436. ,DELETE_TIME=
  437. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  438. when #{item.resultId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=VARCHAR}
  439. </foreach>
  440. ,INSERT_USERNAME=
  441. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  442. when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
  443. </foreach>
  444. ,INSERT_TIME=
  445. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  446. when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
  447. </foreach>
  448. ,UPDATE_USERNAME=
  449. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  450. when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
  451. </foreach>
  452. ,UPDATE_TIME=
  453. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  454. when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
  455. </foreach>
  456. ,INSERT_UPDATE_REMARK=
  457. <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
  458. when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
  459. </foreach>
  460. where RESULT_ID in
  461. <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
  462. #{item.resultId,jdbcType=DECIMAL}
  463. </foreach>
  464. </update>
  465. <delete id="batchDelete" parameterType="java.util.List">
  466. delete from TMSSHIP_ENTRY_WHARY_RESULT
  467. where RESULT_ID in
  468. <foreach collection="list" item="id" open="(" close=")" separator=",">
  469. #{id}
  470. </foreach>
  471. </delete>
  472. <!-- 友情提示!!!-->
  473. <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
  474. <select id="selectMaxId" resultType="DECIMAL" >
  475. SELECT MAX(RESULT_ID)+1 FROM TMSSHIP_ENTRY_WHARY_RESULT
  476. </select>
  477. </mapper>