RmsCarrierMapper.xml 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247
  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.RmsCarrierMapper">
  4. <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsCarrier">
  5. <id column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId" />
  6. <result column="CARRIER_TRANSPORT_TYPE" jdbcType="VARCHAR" property="carrierTransportType" />
  7. <result column="CARRIER_NAME" jdbcType="VARCHAR" property="carrierName" />
  8. <result column="CARRIER_ABBREVIATION" jdbcType="VARCHAR" property="carrierAbbreviation" />
  9. <result column="CARRIER_ADDRESS" jdbcType="VARCHAR" property="carrierAddress" />
  10. <result column="CARRIER_BID_AREA_ID" jdbcType="DECIMAL" property="carrierBidAreaId" />
  11. <result column="CARRIER_BID_TIME" jdbcType="TIMESTAMP" property="carrierBidTime" />
  12. <result column="CARRIER_LEGAL_REPRESENTATIVE" jdbcType="VARCHAR" property="carrierLegalRepresentative" />
  13. <result column="REGISTER_NO" jdbcType="VARCHAR" property="registerNo" />
  14. <result column="CARRIER_AGENT" jdbcType="VARCHAR" property="carrierAgent" />
  15. <result column="CARRIER_CONTACT_NUMBER" jdbcType="VARCHAR" property="carrierContactNumber" />
  16. <result column="CARRIER_FAX" jdbcType="VARCHAR" property="carrierFax" />
  17. <result column="CARRIER_ACCOUNT" jdbcType="VARCHAR" property="carrierAccount" />
  18. <result column="CARRIER_ACCOUNT_BLANK" jdbcType="VARCHAR" property="carrierAccountBlank" />
  19. <result column="CARRIER_DUTY_PARAGRAPH" jdbcType="VARCHAR" property="carrierDutyParagraph" />
  20. <result column="CARRIER_POSTAL_CODE" jdbcType="VARCHAR" property="carrierPostalCode" />
  21. <result column="REGISTER_CAPITAL" jdbcType="VARCHAR" property="registerCapital" />
  22. <result column="BUSINESS_SCOPE" jdbcType="VARCHAR" property="businessScope" />
  23. <result column="ANNUAL_DATE" jdbcType="VARCHAR" property="annualDate" />
  24. <result column="COMPANY_STATUS_DESC" jdbcType="VARCHAR" property="companyStatusDesc" />
  25. <result column="COMPANY_TYPE_DESC" jdbcType="VARCHAR" property="companyTypeDesc" />
  26. <result column="OPERATION_PERIOD" jdbcType="VARCHAR" property="operationPeriod" />
  27. <result column="REGISTER_DATE" jdbcType="TIMESTAMP" property="registerDate" />
  28. <result column="REGISTER_ORGANIZATION" jdbcType="VARCHAR" property="registerOrganization" />
  29. <result column="REGISTER_APTITUDES" jdbcType="VARCHAR" property="registerAptitudes" />
  30. <result column="CREDENTIAL_DESC" jdbcType="VARCHAR" property="credentialDesc" />
  31. <result column="CONTACTS_NAME" jdbcType="VARCHAR" property="contactsName" />
  32. <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
  33. <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
  34. <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
  35. <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
  36. <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
  37. <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
  38. <result column="CARRIER_TYPE" jdbcType="VARCHAR" property="carrierType" />
  39. <result column="CARRIER_TRANSPORT_CERTIFICATE" jdbcType="BLOB" property="carrierTransportCertificate" />
  40. <result column="CARRIER_BUSINESS_LICENSE" jdbcType="BLOB" property="carrierBusinessLicense" />
  41. <result column="CARRIER_BUSINESS_ABLELICENSE" jdbcType="BLOB" property="carrierBusinessAblelicense" />
  42. </resultMap>
  43. <sql id="columns">
  44. CARRIER_ID, CARRIER_TRANSPORT_TYPE, CARRIER_NAME, CARRIER_ABBREVIATION, CARRIER_ADDRESS,
  45. CARRIER_BID_AREA_ID, CARRIER_BID_TIME, CARRIER_LEGAL_REPRESENTATIVE, REGISTER_NO,
  46. CARRIER_AGENT, CARRIER_CONTACT_NUMBER, CARRIER_FAX, CARRIER_ACCOUNT, CARRIER_ACCOUNT_BLANK,
  47. CARRIER_DUTY_PARAGRAPH, CARRIER_POSTAL_CODE, REGISTER_CAPITAL, BUSINESS_SCOPE, ANNUAL_DATE,
  48. COMPANY_STATUS_DESC, COMPANY_TYPE_DESC, OPERATION_PERIOD, REGISTER_DATE, REGISTER_ORGANIZATION,
  49. REGISTER_APTITUDES, CREDENTIAL_DESC, CONTACTS_NAME, INSERT_USERNAME, INSERT_TIME,
  50. UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, CARRIER_TYPE, CARRIER_TRANSPORT_CERTIFICATE,
  51. CARRIER_BUSINESS_LICENSE, CARRIER_BUSINESS_ABLELICENSE
  52. </sql>
  53. <sql id="columns_alias">
  54. t.CARRIER_ID, t.CARRIER_TRANSPORT_TYPE, t.CARRIER_NAME, t.CARRIER_ABBREVIATION, t.CARRIER_ADDRESS,
  55. t.CARRIER_BID_AREA_ID, t.CARRIER_BID_TIME, t.CARRIER_LEGAL_REPRESENTATIVE, t.REGISTER_NO,
  56. t.CARRIER_AGENT, t.CARRIER_CONTACT_NUMBER, t.CARRIER_FAX, t.CARRIER_ACCOUNT, t.CARRIER_ACCOUNT_BLANK,
  57. t.CARRIER_DUTY_PARAGRAPH, t.CARRIER_POSTAL_CODE, t.REGISTER_CAPITAL, t.BUSINESS_SCOPE,
  58. t.ANNUAL_DATE, t.COMPANY_STATUS_DESC, t.COMPANY_TYPE_DESC, t.OPERATION_PERIOD, t.REGISTER_DATE,
  59. t.REGISTER_ORGANIZATION, t.REGISTER_APTITUDES, t.CREDENTIAL_DESC, t.CONTACTS_NAME,
  60. t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK,
  61. t.DELETED, t.CARRIER_TYPE, t.CARRIER_TRANSPORT_CERTIFICATE, t.CARRIER_BUSINESS_LICENSE,
  62. t.CARRIER_BUSINESS_ABLELICENSE
  63. </sql>
  64. <sql id="select">
  65. SELECT <include refid="columns" /> FROM RMS_CARRIER
  66. </sql>
  67. <sql id="select_alias">
  68. SELECT <include refid="columns_alias" /> FROM RMS_CARRIER t
  69. </sql>
  70. <sql id="where">
  71. <where>
  72. <if test="carrierId != null">
  73. and CARRIER_ID = #{carrierId}
  74. </if>
  75. <if test="carrierTransportType != null and carrierTransportType != ''">
  76. and CARRIER_TRANSPORT_TYPE = #{carrierTransportType}
  77. </if>
  78. <if test="carrierName != null and carrierName != ''">
  79. and CARRIER_NAME = #{carrierName}
  80. </if>
  81. <if test="carrierAbbreviation != null and carrierAbbreviation != ''">
  82. and CARRIER_ABBREVIATION = #{carrierAbbreviation}
  83. </if>
  84. <if test="carrierAddress != null and carrierAddress != ''">
  85. and CARRIER_ADDRESS = #{carrierAddress}
  86. </if>
  87. <if test="carrierBidAreaId != null">
  88. and CARRIER_BID_AREA_ID = #{carrierBidAreaId}
  89. </if>
  90. <if test="carrierBidTime != null">
  91. and TO_CHAR(CARRIER_BID_TIME,'yyyy-MM-dd') = #{carrierBidTime}
  92. </if>
  93. <if test="carrierLegalRepresentative != null and carrierLegalRepresentative != ''">
  94. and CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative}
  95. </if>
  96. <if test="registerNo != null and registerNo != ''">
  97. and REGISTER_NO = #{registerNo}
  98. </if>
  99. <if test="carrierAgent != null and carrierAgent != ''">
  100. and CARRIER_AGENT = #{carrierAgent}
  101. </if>
  102. <if test="carrierContactNumber != null and carrierContactNumber != ''">
  103. and CARRIER_CONTACT_NUMBER = #{carrierContactNumber}
  104. </if>
  105. <if test="carrierFax != null and carrierFax != ''">
  106. and CARRIER_FAX = #{carrierFax}
  107. </if>
  108. <if test="carrierAccount != null and carrierAccount != ''">
  109. and CARRIER_ACCOUNT = #{carrierAccount}
  110. </if>
  111. <if test="carrierAccountBlank != null and carrierAccountBlank != ''">
  112. and CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank}
  113. </if>
  114. <if test="carrierDutyParagraph != null and carrierDutyParagraph != ''">
  115. and CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph}
  116. </if>
  117. <if test="carrierPostalCode != null and carrierPostalCode != ''">
  118. and CARRIER_POSTAL_CODE = #{carrierPostalCode}
  119. </if>
  120. <if test="registerCapital != null and registerCapital != ''">
  121. and REGISTER_CAPITAL = #{registerCapital}
  122. </if>
  123. <if test="businessScope != null and businessScope != ''">
  124. and BUSINESS_SCOPE = #{businessScope}
  125. </if>
  126. <if test="annualDate != null and annualDate != ''">
  127. and ANNUAL_DATE = #{annualDate}
  128. </if>
  129. <if test="companyStatusDesc != null and companyStatusDesc != ''">
  130. and COMPANY_STATUS_DESC = #{companyStatusDesc}
  131. </if>
  132. <if test="companyTypeDesc != null and companyTypeDesc != ''">
  133. and COMPANY_TYPE_DESC = #{companyTypeDesc}
  134. </if>
  135. <if test="operationPeriod != null and operationPeriod != ''">
  136. and OPERATION_PERIOD = #{operationPeriod}
  137. </if>
  138. <if test="registerDate != null">
  139. and TO_CHAR(REGISTER_DATE,'yyyy-MM-dd') = #{registerDate}
  140. </if>
  141. <if test="registerOrganization != null and registerOrganization != ''">
  142. and REGISTER_ORGANIZATION = #{registerOrganization}
  143. </if>
  144. <if test="registerAptitudes != null and registerAptitudes != ''">
  145. and REGISTER_APTITUDES = #{registerAptitudes}
  146. </if>
  147. <if test="credentialDesc != null and credentialDesc != ''">
  148. and CREDENTIAL_DESC = #{credentialDesc}
  149. </if>
  150. <if test="contactsName != null and contactsName != ''">
  151. and CONTACTS_NAME = #{contactsName}
  152. </if>
  153. <if test="insertUsername != null and insertUsername != ''">
  154. and INSERT_USERNAME = #{insertUsername}
  155. </if>
  156. <if test="insertTime != null">
  157. and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
  158. </if>
  159. <if test="updateUsername != null and updateUsername != ''">
  160. and UPDATE_USERNAME = #{updateUsername}
  161. </if>
  162. <if test="updateTime != null">
  163. and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
  164. </if>
  165. <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
  166. and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
  167. </if>
  168. <if test="deleted != null">
  169. and DELETED = #{deleted}
  170. </if>
  171. <if test="carrierType != null and carrierType != ''">
  172. and CARRIER_TYPE = #{carrierType}
  173. </if>
  174. <if test="carrierTransportCertificate != null">
  175. and CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
  176. </if>
  177. <if test="carrierBusinessLicense != null">
  178. and CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense}
  179. </if>
  180. <if test="carrierBusinessAblelicense != null">
  181. and CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense}
  182. </if>
  183. </where>
  184. </sql>
  185. <sql id="whereLike">
  186. <where>
  187. <if test="carrierId != null">
  188. and CARRIER_ID = #{carrierId}
  189. </if>
  190. <if test="carrierTransportType != null and carrierTransportType != ''">
  191. and CARRIER_TRANSPORT_TYPE LIKE '%${carrierTransportType}%'
  192. </if>
  193. <if test="carrierName != null and carrierName != ''">
  194. and CARRIER_NAME LIKE '%${carrierName}%'
  195. </if>
  196. <if test="carrierAbbreviation != null and carrierAbbreviation != ''">
  197. and CARRIER_ABBREVIATION LIKE '%${carrierAbbreviation}%'
  198. </if>
  199. <if test="carrierAddress != null and carrierAddress != ''">
  200. and CARRIER_ADDRESS LIKE '%${carrierAddress}%'
  201. </if>
  202. <if test="carrierBidAreaId != null">
  203. and CARRIER_BID_AREA_ID = #{carrierBidAreaId}
  204. </if>
  205. <if test="carrierBidTime != null">
  206. and TO_CHAR(CARRIER_BID_TIME,'yyyy-MM-dd') = #{carrierBidTime}
  207. </if>
  208. <if test="carrierLegalRepresentative != null and carrierLegalRepresentative != ''">
  209. and CARRIER_LEGAL_REPRESENTATIVE LIKE '%${carrierLegalRepresentative}%'
  210. </if>
  211. <if test="registerNo != null and registerNo != ''">
  212. and REGISTER_NO LIKE '%${registerNo}%'
  213. </if>
  214. <if test="carrierAgent != null and carrierAgent != ''">
  215. and CARRIER_AGENT LIKE '%${carrierAgent}%'
  216. </if>
  217. <if test="carrierContactNumber != null and carrierContactNumber != ''">
  218. and CARRIER_CONTACT_NUMBER LIKE '%${carrierContactNumber}%'
  219. </if>
  220. <if test="carrierFax != null and carrierFax != ''">
  221. and CARRIER_FAX LIKE '%${carrierFax}%'
  222. </if>
  223. <if test="carrierAccount != null and carrierAccount != ''">
  224. and CARRIER_ACCOUNT LIKE '%${carrierAccount}%'
  225. </if>
  226. <if test="carrierAccountBlank != null and carrierAccountBlank != ''">
  227. and CARRIER_ACCOUNT_BLANK LIKE '%${carrierAccountBlank}%'
  228. </if>
  229. <if test="carrierDutyParagraph != null and carrierDutyParagraph != ''">
  230. and CARRIER_DUTY_PARAGRAPH LIKE '%${carrierDutyParagraph}%'
  231. </if>
  232. <if test="carrierPostalCode != null and carrierPostalCode != ''">
  233. and CARRIER_POSTAL_CODE LIKE '%${carrierPostalCode}%'
  234. </if>
  235. <if test="registerCapital != null and registerCapital != ''">
  236. and REGISTER_CAPITAL LIKE '%${registerCapital}%'
  237. </if>
  238. <if test="businessScope != null and businessScope != ''">
  239. and BUSINESS_SCOPE LIKE '%${businessScope}%'
  240. </if>
  241. <if test="annualDate != null and annualDate != ''">
  242. and ANNUAL_DATE LIKE '%${annualDate}%'
  243. </if>
  244. <if test="companyStatusDesc != null and companyStatusDesc != ''">
  245. and COMPANY_STATUS_DESC LIKE '%${companyStatusDesc}%'
  246. </if>
  247. <if test="companyTypeDesc != null and companyTypeDesc != ''">
  248. and COMPANY_TYPE_DESC LIKE '%${companyTypeDesc}%'
  249. </if>
  250. <if test="operationPeriod != null and operationPeriod != ''">
  251. and OPERATION_PERIOD LIKE '%${operationPeriod}%'
  252. </if>
  253. <if test="registerDate != null">
  254. and TO_CHAR(REGISTER_DATE,'yyyy-MM-dd') = #{registerDate}
  255. </if>
  256. <if test="registerOrganization != null and registerOrganization != ''">
  257. and REGISTER_ORGANIZATION LIKE '%${registerOrganization}%'
  258. </if>
  259. <if test="registerAptitudes != null and registerAptitudes != ''">
  260. and REGISTER_APTITUDES LIKE '%${registerAptitudes}%'
  261. </if>
  262. <if test="credentialDesc != null and credentialDesc != ''">
  263. and CREDENTIAL_DESC LIKE '%${credentialDesc}%'
  264. </if>
  265. <if test="contactsName != null and contactsName != ''">
  266. and CONTACTS_NAME LIKE '%${contactsName}%'
  267. </if>
  268. <if test="insertUsername != null and insertUsername != ''">
  269. and INSERT_USERNAME LIKE '%${insertUsername}%'
  270. </if>
  271. <if test="insertTime != null">
  272. and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
  273. </if>
  274. <if test="updateUsername != null and updateUsername != ''">
  275. and UPDATE_USERNAME LIKE '%${updateUsername}%'
  276. </if>
  277. <if test="updateTime != null">
  278. and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
  279. </if>
  280. <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
  281. and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
  282. </if>
  283. <if test="deleted != null">
  284. and DELETED = #{deleted}
  285. </if>
  286. <if test="carrierType != null and carrierType != ''">
  287. and CARRIER_TYPE LIKE '%${carrierType}%'
  288. </if>
  289. <if test="carrierTransportCertificate != null">
  290. and CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
  291. </if>
  292. <if test="carrierBusinessLicense != null">
  293. and CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense}
  294. </if>
  295. <if test="carrierBusinessAblelicense != null">
  296. and CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense}
  297. </if>
  298. </where>
  299. </sql>
  300. <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
  301. delete from RMS_CARRIER
  302. where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
  303. </delete>
  304. <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
  305. delete from RMS_CARRIER
  306. where 1!=1
  307. <if test="carrierTransportType != null and carrierTransportType != ''">
  308. or CARRIER_TRANSPORT_TYPE = #{carrierTransportType}
  309. </if>
  310. <if test="carrierName != null and carrierName != ''">
  311. or CARRIER_NAME = #{carrierName}
  312. </if>
  313. <if test="carrierAbbreviation != null and carrierAbbreviation != ''">
  314. or CARRIER_ABBREVIATION = #{carrierAbbreviation}
  315. </if>
  316. <if test="carrierAddress != null and carrierAddress != ''">
  317. or CARRIER_ADDRESS = #{carrierAddress}
  318. </if>
  319. <if test="carrierBidAreaId != null">
  320. or CARRIER_BID_AREA_ID = #{carrierBidAreaId}
  321. </if>
  322. <if test="carrierBidTime != null">
  323. or TO_CHAR(CARRIER_BID_TIME,'yyyy-MM-dd') = '#{carrierBidTime}'
  324. </if>
  325. <if test="carrierLegalRepresentative != null and carrierLegalRepresentative != ''">
  326. or CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative}
  327. </if>
  328. <if test="registerNo != null and registerNo != ''">
  329. or REGISTER_NO = #{registerNo}
  330. </if>
  331. <if test="carrierAgent != null and carrierAgent != ''">
  332. or CARRIER_AGENT = #{carrierAgent}
  333. </if>
  334. <if test="carrierContactNumber != null and carrierContactNumber != ''">
  335. or CARRIER_CONTACT_NUMBER = #{carrierContactNumber}
  336. </if>
  337. <if test="carrierFax != null and carrierFax != ''">
  338. or CARRIER_FAX = #{carrierFax}
  339. </if>
  340. <if test="carrierAccount != null and carrierAccount != ''">
  341. or CARRIER_ACCOUNT = #{carrierAccount}
  342. </if>
  343. <if test="carrierAccountBlank != null and carrierAccountBlank != ''">
  344. or CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank}
  345. </if>
  346. <if test="carrierDutyParagraph != null and carrierDutyParagraph != ''">
  347. or CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph}
  348. </if>
  349. <if test="carrierPostalCode != null and carrierPostalCode != ''">
  350. or CARRIER_POSTAL_CODE = #{carrierPostalCode}
  351. </if>
  352. <if test="registerCapital != null and registerCapital != ''">
  353. or REGISTER_CAPITAL = #{registerCapital}
  354. </if>
  355. <if test="businessScope != null and businessScope != ''">
  356. or BUSINESS_SCOPE = #{businessScope}
  357. </if>
  358. <if test="annualDate != null and annualDate != ''">
  359. or ANNUAL_DATE = #{annualDate}
  360. </if>
  361. <if test="companyStatusDesc != null and companyStatusDesc != ''">
  362. or COMPANY_STATUS_DESC = #{companyStatusDesc}
  363. </if>
  364. <if test="companyTypeDesc != null and companyTypeDesc != ''">
  365. or COMPANY_TYPE_DESC = #{companyTypeDesc}
  366. </if>
  367. <if test="operationPeriod != null and operationPeriod != ''">
  368. or OPERATION_PERIOD = #{operationPeriod}
  369. </if>
  370. <if test="registerDate != null">
  371. or TO_CHAR(REGISTER_DATE,'yyyy-MM-dd') = '#{registerDate}'
  372. </if>
  373. <if test="registerOrganization != null and registerOrganization != ''">
  374. or REGISTER_ORGANIZATION = #{registerOrganization}
  375. </if>
  376. <if test="registerAptitudes != null and registerAptitudes != ''">
  377. or REGISTER_APTITUDES = #{registerAptitudes}
  378. </if>
  379. <if test="credentialDesc != null and credentialDesc != ''">
  380. or CREDENTIAL_DESC = #{credentialDesc}
  381. </if>
  382. <if test="contactsName != null and contactsName != ''">
  383. or CONTACTS_NAME = #{contactsName}
  384. </if>
  385. <if test="insertUsername != null and insertUsername != ''">
  386. or INSERT_USERNAME = #{insertUsername}
  387. </if>
  388. <if test="insertTime != null">
  389. or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
  390. </if>
  391. <if test="updateUsername != null and updateUsername != ''">
  392. or UPDATE_USERNAME = #{updateUsername}
  393. </if>
  394. <if test="updateTime != null">
  395. or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
  396. </if>
  397. <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
  398. or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
  399. </if>
  400. <if test="deleted != null">
  401. or DELETED = #{deleted}
  402. </if>
  403. <if test="carrierType != null and carrierType != ''">
  404. or CARRIER_TYPE = #{carrierType}
  405. </if>
  406. <if test="carrierTransportCertificate != null">
  407. or CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
  408. </if>
  409. <if test="carrierBusinessLicense != null">
  410. or CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense}
  411. </if>
  412. <if test="carrierBusinessAblelicense != null">
  413. or CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense}
  414. </if>
  415. </delete>
  416. <insert id="insert" parameterType="com.steerinfo.dil.model.RmsCarrier">
  417. insert into RMS_CARRIER (CARRIER_ID, CARRIER_TRANSPORT_TYPE,
  418. CARRIER_NAME, CARRIER_ABBREVIATION, CARRIER_ADDRESS,
  419. CARRIER_BID_AREA_ID, CARRIER_BID_TIME, CARRIER_LEGAL_REPRESENTATIVE,
  420. REGISTER_NO, CARRIER_AGENT, CARRIER_CONTACT_NUMBER,
  421. CARRIER_FAX, CARRIER_ACCOUNT, CARRIER_ACCOUNT_BLANK,
  422. CARRIER_DUTY_PARAGRAPH, CARRIER_POSTAL_CODE,
  423. REGISTER_CAPITAL, BUSINESS_SCOPE, ANNUAL_DATE,
  424. COMPANY_STATUS_DESC, COMPANY_TYPE_DESC, OPERATION_PERIOD,
  425. REGISTER_DATE, REGISTER_ORGANIZATION, REGISTER_APTITUDES,
  426. CREDENTIAL_DESC, CONTACTS_NAME, INSERT_USERNAME,
  427. INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
  428. INSERT_UPDATE_REMARK, DELETED, CARRIER_TYPE,
  429. CARRIER_TRANSPORT_CERTIFICATE, CARRIER_BUSINESS_LICENSE,
  430. CARRIER_BUSINESS_ABLELICENSE)
  431. values (#{carrierId,jdbcType=DECIMAL}, #{carrierTransportType,jdbcType=VARCHAR},
  432. #{carrierName,jdbcType=VARCHAR}, #{carrierAbbreviation,jdbcType=VARCHAR}, #{carrierAddress,jdbcType=VARCHAR},
  433. #{carrierBidAreaId,jdbcType=DECIMAL}, #{carrierBidTime,jdbcType=TIMESTAMP}, #{carrierLegalRepresentative,jdbcType=VARCHAR},
  434. #{registerNo,jdbcType=VARCHAR}, #{carrierAgent,jdbcType=VARCHAR}, #{carrierContactNumber,jdbcType=VARCHAR},
  435. #{carrierFax,jdbcType=VARCHAR}, #{carrierAccount,jdbcType=VARCHAR}, #{carrierAccountBlank,jdbcType=VARCHAR},
  436. #{carrierDutyParagraph,jdbcType=VARCHAR}, #{carrierPostalCode,jdbcType=VARCHAR},
  437. #{registerCapital,jdbcType=VARCHAR}, #{businessScope,jdbcType=VARCHAR}, #{annualDate,jdbcType=VARCHAR},
  438. #{companyStatusDesc,jdbcType=VARCHAR}, #{companyTypeDesc,jdbcType=VARCHAR}, #{operationPeriod,jdbcType=VARCHAR},
  439. #{registerDate,jdbcType=TIMESTAMP}, #{registerOrganization,jdbcType=VARCHAR}, #{registerAptitudes,jdbcType=VARCHAR},
  440. #{credentialDesc,jdbcType=VARCHAR}, #{contactsName,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
  441. #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
  442. #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{carrierType,jdbcType=VARCHAR},
  443. #{carrierTransportCertificate,jdbcType=BLOB}, #{carrierBusinessLicense,jdbcType=BLOB},
  444. #{carrierBusinessAblelicense,jdbcType=BLOB})
  445. </insert>
  446. <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsCarrier">
  447. insert into RMS_CARRIER
  448. <trim prefix="(" suffix=")" suffixOverrides=",">
  449. <if test="carrierId != null">
  450. CARRIER_ID,
  451. </if>
  452. <if test="carrierTransportType != null">
  453. CARRIER_TRANSPORT_TYPE,
  454. </if>
  455. <if test="carrierName != null">
  456. CARRIER_NAME,
  457. </if>
  458. <if test="carrierAbbreviation != null">
  459. CARRIER_ABBREVIATION,
  460. </if>
  461. <if test="carrierAddress != null">
  462. CARRIER_ADDRESS,
  463. </if>
  464. <if test="carrierBidAreaId != null">
  465. CARRIER_BID_AREA_ID,
  466. </if>
  467. <if test="carrierBidTime != null">
  468. CARRIER_BID_TIME,
  469. </if>
  470. <if test="carrierLegalRepresentative != null">
  471. CARRIER_LEGAL_REPRESENTATIVE,
  472. </if>
  473. <if test="registerNo != null">
  474. REGISTER_NO,
  475. </if>
  476. <if test="carrierAgent != null">
  477. CARRIER_AGENT,
  478. </if>
  479. <if test="carrierContactNumber != null">
  480. CARRIER_CONTACT_NUMBER,
  481. </if>
  482. <if test="carrierFax != null">
  483. CARRIER_FAX,
  484. </if>
  485. <if test="carrierAccount != null">
  486. CARRIER_ACCOUNT,
  487. </if>
  488. <if test="carrierAccountBlank != null">
  489. CARRIER_ACCOUNT_BLANK,
  490. </if>
  491. <if test="carrierDutyParagraph != null">
  492. CARRIER_DUTY_PARAGRAPH,
  493. </if>
  494. <if test="carrierPostalCode != null">
  495. CARRIER_POSTAL_CODE,
  496. </if>
  497. <if test="registerCapital != null">
  498. REGISTER_CAPITAL,
  499. </if>
  500. <if test="businessScope != null">
  501. BUSINESS_SCOPE,
  502. </if>
  503. <if test="annualDate != null">
  504. ANNUAL_DATE,
  505. </if>
  506. <if test="companyStatusDesc != null">
  507. COMPANY_STATUS_DESC,
  508. </if>
  509. <if test="companyTypeDesc != null">
  510. COMPANY_TYPE_DESC,
  511. </if>
  512. <if test="operationPeriod != null">
  513. OPERATION_PERIOD,
  514. </if>
  515. <if test="registerDate != null">
  516. REGISTER_DATE,
  517. </if>
  518. <if test="registerOrganization != null">
  519. REGISTER_ORGANIZATION,
  520. </if>
  521. <if test="registerAptitudes != null">
  522. REGISTER_APTITUDES,
  523. </if>
  524. <if test="credentialDesc != null">
  525. CREDENTIAL_DESC,
  526. </if>
  527. <if test="contactsName != null">
  528. CONTACTS_NAME,
  529. </if>
  530. <if test="insertUsername != null">
  531. INSERT_USERNAME,
  532. </if>
  533. <if test="insertTime != null">
  534. INSERT_TIME,
  535. </if>
  536. <if test="updateUsername != null">
  537. UPDATE_USERNAME,
  538. </if>
  539. <if test="updateTime != null">
  540. UPDATE_TIME,
  541. </if>
  542. <if test="insertUpdateRemark != null">
  543. INSERT_UPDATE_REMARK,
  544. </if>
  545. <if test="deleted != null">
  546. DELETED,
  547. </if>
  548. <if test="carrierType != null">
  549. CARRIER_TYPE,
  550. </if>
  551. <if test="carrierTransportCertificate != null">
  552. CARRIER_TRANSPORT_CERTIFICATE,
  553. </if>
  554. <if test="carrierBusinessLicense != null">
  555. CARRIER_BUSINESS_LICENSE,
  556. </if>
  557. <if test="carrierBusinessAblelicense != null">
  558. CARRIER_BUSINESS_ABLELICENSE,
  559. </if>
  560. </trim>
  561. <trim prefix="values (" suffix=")" suffixOverrides=",">
  562. <if test="carrierId != null">
  563. #{carrierId,jdbcType=DECIMAL},
  564. </if>
  565. <if test="carrierTransportType != null">
  566. #{carrierTransportType,jdbcType=VARCHAR},
  567. </if>
  568. <if test="carrierName != null">
  569. #{carrierName,jdbcType=VARCHAR},
  570. </if>
  571. <if test="carrierAbbreviation != null">
  572. #{carrierAbbreviation,jdbcType=VARCHAR},
  573. </if>
  574. <if test="carrierAddress != null">
  575. #{carrierAddress,jdbcType=VARCHAR},
  576. </if>
  577. <if test="carrierBidAreaId != null">
  578. #{carrierBidAreaId,jdbcType=DECIMAL},
  579. </if>
  580. <if test="carrierBidTime != null">
  581. #{carrierBidTime,jdbcType=TIMESTAMP},
  582. </if>
  583. <if test="carrierLegalRepresentative != null">
  584. #{carrierLegalRepresentative,jdbcType=VARCHAR},
  585. </if>
  586. <if test="registerNo != null">
  587. #{registerNo,jdbcType=VARCHAR},
  588. </if>
  589. <if test="carrierAgent != null">
  590. #{carrierAgent,jdbcType=VARCHAR},
  591. </if>
  592. <if test="carrierContactNumber != null">
  593. #{carrierContactNumber,jdbcType=VARCHAR},
  594. </if>
  595. <if test="carrierFax != null">
  596. #{carrierFax,jdbcType=VARCHAR},
  597. </if>
  598. <if test="carrierAccount != null">
  599. #{carrierAccount,jdbcType=VARCHAR},
  600. </if>
  601. <if test="carrierAccountBlank != null">
  602. #{carrierAccountBlank,jdbcType=VARCHAR},
  603. </if>
  604. <if test="carrierDutyParagraph != null">
  605. #{carrierDutyParagraph,jdbcType=VARCHAR},
  606. </if>
  607. <if test="carrierPostalCode != null">
  608. #{carrierPostalCode,jdbcType=VARCHAR},
  609. </if>
  610. <if test="registerCapital != null">
  611. #{registerCapital,jdbcType=VARCHAR},
  612. </if>
  613. <if test="businessScope != null">
  614. #{businessScope,jdbcType=VARCHAR},
  615. </if>
  616. <if test="annualDate != null">
  617. #{annualDate,jdbcType=VARCHAR},
  618. </if>
  619. <if test="companyStatusDesc != null">
  620. #{companyStatusDesc,jdbcType=VARCHAR},
  621. </if>
  622. <if test="companyTypeDesc != null">
  623. #{companyTypeDesc,jdbcType=VARCHAR},
  624. </if>
  625. <if test="operationPeriod != null">
  626. #{operationPeriod,jdbcType=VARCHAR},
  627. </if>
  628. <if test="registerDate != null">
  629. #{registerDate,jdbcType=TIMESTAMP},
  630. </if>
  631. <if test="registerOrganization != null">
  632. #{registerOrganization,jdbcType=VARCHAR},
  633. </if>
  634. <if test="registerAptitudes != null">
  635. #{registerAptitudes,jdbcType=VARCHAR},
  636. </if>
  637. <if test="credentialDesc != null">
  638. #{credentialDesc,jdbcType=VARCHAR},
  639. </if>
  640. <if test="contactsName != null">
  641. #{contactsName,jdbcType=VARCHAR},
  642. </if>
  643. <if test="insertUsername != null">
  644. #{insertUsername,jdbcType=VARCHAR},
  645. </if>
  646. <if test="insertTime != null">
  647. #{insertTime,jdbcType=TIMESTAMP},
  648. </if>
  649. <if test="updateUsername != null">
  650. #{updateUsername,jdbcType=VARCHAR},
  651. </if>
  652. <if test="updateTime != null">
  653. #{updateTime,jdbcType=TIMESTAMP},
  654. </if>
  655. <if test="insertUpdateRemark != null">
  656. #{insertUpdateRemark,jdbcType=VARCHAR},
  657. </if>
  658. <if test="deleted != null">
  659. #{deleted,jdbcType=DECIMAL},
  660. </if>
  661. <if test="carrierType != null">
  662. #{carrierType,jdbcType=VARCHAR},
  663. </if>
  664. <if test="carrierTransportCertificate != null">
  665. #{carrierTransportCertificate,jdbcType=BLOB},
  666. </if>
  667. <if test="carrierBusinessLicense != null">
  668. #{carrierBusinessLicense,jdbcType=BLOB},
  669. </if>
  670. <if test="carrierBusinessAblelicense != null">
  671. #{carrierBusinessAblelicense,jdbcType=BLOB},
  672. </if>
  673. </trim>
  674. </insert>
  675. <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsCarrier">
  676. update RMS_CARRIER
  677. set CARRIER_TRANSPORT_TYPE = #{carrierTransportType,jdbcType=VARCHAR},
  678. CARRIER_NAME = #{carrierName,jdbcType=VARCHAR},
  679. CARRIER_ABBREVIATION = #{carrierAbbreviation,jdbcType=VARCHAR},
  680. CARRIER_ADDRESS = #{carrierAddress,jdbcType=VARCHAR},
  681. CARRIER_BID_AREA_ID = #{carrierBidAreaId,jdbcType=DECIMAL},
  682. CARRIER_BID_TIME = #{carrierBidTime,jdbcType=TIMESTAMP},
  683. CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative,jdbcType=VARCHAR},
  684. REGISTER_NO = #{registerNo,jdbcType=VARCHAR},
  685. CARRIER_AGENT = #{carrierAgent,jdbcType=VARCHAR},
  686. CARRIER_CONTACT_NUMBER = #{carrierContactNumber,jdbcType=VARCHAR},
  687. CARRIER_FAX = #{carrierFax,jdbcType=VARCHAR},
  688. CARRIER_ACCOUNT = #{carrierAccount,jdbcType=VARCHAR},
  689. CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank,jdbcType=VARCHAR},
  690. CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph,jdbcType=VARCHAR},
  691. CARRIER_POSTAL_CODE = #{carrierPostalCode,jdbcType=VARCHAR},
  692. REGISTER_CAPITAL = #{registerCapital,jdbcType=VARCHAR},
  693. BUSINESS_SCOPE = #{businessScope,jdbcType=VARCHAR},
  694. ANNUAL_DATE = #{annualDate,jdbcType=VARCHAR},
  695. COMPANY_STATUS_DESC = #{companyStatusDesc,jdbcType=VARCHAR},
  696. COMPANY_TYPE_DESC = #{companyTypeDesc,jdbcType=VARCHAR},
  697. OPERATION_PERIOD = #{operationPeriod,jdbcType=VARCHAR},
  698. REGISTER_DATE = #{registerDate,jdbcType=TIMESTAMP},
  699. REGISTER_ORGANIZATION = #{registerOrganization,jdbcType=VARCHAR},
  700. REGISTER_APTITUDES = #{registerAptitudes,jdbcType=VARCHAR},
  701. CREDENTIAL_DESC = #{credentialDesc,jdbcType=VARCHAR},
  702. CONTACTS_NAME = #{contactsName,jdbcType=VARCHAR},
  703. INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
  704. INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
  705. UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
  706. UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
  707. INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
  708. DELETED = #{deleted,jdbcType=DECIMAL},
  709. CARRIER_TYPE = #{carrierType,jdbcType=VARCHAR},
  710. CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate,jdbcType=BLOB},
  711. CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense,jdbcType=BLOB},
  712. CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense,jdbcType=BLOB}
  713. where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
  714. </update>
  715. <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsCarrier">
  716. update RMS_CARRIER
  717. <set>
  718. <if test="carrierTransportType != null">
  719. CARRIER_TRANSPORT_TYPE = #{carrierTransportType,jdbcType=VARCHAR},
  720. </if>
  721. <if test="carrierName != null">
  722. CARRIER_NAME = #{carrierName,jdbcType=VARCHAR},
  723. </if>
  724. <if test="carrierAbbreviation != null">
  725. CARRIER_ABBREVIATION = #{carrierAbbreviation,jdbcType=VARCHAR},
  726. </if>
  727. <if test="carrierAddress != null">
  728. CARRIER_ADDRESS = #{carrierAddress,jdbcType=VARCHAR},
  729. </if>
  730. <if test="carrierBidAreaId != null">
  731. CARRIER_BID_AREA_ID = #{carrierBidAreaId,jdbcType=DECIMAL},
  732. </if>
  733. <if test="carrierBidTime != null">
  734. CARRIER_BID_TIME = #{carrierBidTime,jdbcType=TIMESTAMP},
  735. </if>
  736. <if test="carrierLegalRepresentative != null">
  737. CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative,jdbcType=VARCHAR},
  738. </if>
  739. <if test="registerNo != null">
  740. REGISTER_NO = #{registerNo,jdbcType=VARCHAR},
  741. </if>
  742. <if test="carrierAgent != null">
  743. CARRIER_AGENT = #{carrierAgent,jdbcType=VARCHAR},
  744. </if>
  745. <if test="carrierContactNumber != null">
  746. CARRIER_CONTACT_NUMBER = #{carrierContactNumber,jdbcType=VARCHAR},
  747. </if>
  748. <if test="carrierFax != null">
  749. CARRIER_FAX = #{carrierFax,jdbcType=VARCHAR},
  750. </if>
  751. <if test="carrierAccount != null">
  752. CARRIER_ACCOUNT = #{carrierAccount,jdbcType=VARCHAR},
  753. </if>
  754. <if test="carrierAccountBlank != null">
  755. CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank,jdbcType=VARCHAR},
  756. </if>
  757. <if test="carrierDutyParagraph != null">
  758. CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph,jdbcType=VARCHAR},
  759. </if>
  760. <if test="carrierPostalCode != null">
  761. CARRIER_POSTAL_CODE = #{carrierPostalCode,jdbcType=VARCHAR},
  762. </if>
  763. <if test="registerCapital != null">
  764. REGISTER_CAPITAL = #{registerCapital,jdbcType=VARCHAR},
  765. </if>
  766. <if test="businessScope != null">
  767. BUSINESS_SCOPE = #{businessScope,jdbcType=VARCHAR},
  768. </if>
  769. <if test="annualDate != null">
  770. ANNUAL_DATE = #{annualDate,jdbcType=VARCHAR},
  771. </if>
  772. <if test="companyStatusDesc != null">
  773. COMPANY_STATUS_DESC = #{companyStatusDesc,jdbcType=VARCHAR},
  774. </if>
  775. <if test="companyTypeDesc != null">
  776. COMPANY_TYPE_DESC = #{companyTypeDesc,jdbcType=VARCHAR},
  777. </if>
  778. <if test="operationPeriod != null">
  779. OPERATION_PERIOD = #{operationPeriod,jdbcType=VARCHAR},
  780. </if>
  781. <if test="registerDate != null">
  782. REGISTER_DATE = #{registerDate,jdbcType=TIMESTAMP},
  783. </if>
  784. <if test="registerOrganization != null">
  785. REGISTER_ORGANIZATION = #{registerOrganization,jdbcType=VARCHAR},
  786. </if>
  787. <if test="registerAptitudes != null">
  788. REGISTER_APTITUDES = #{registerAptitudes,jdbcType=VARCHAR},
  789. </if>
  790. <if test="credentialDesc != null">
  791. CREDENTIAL_DESC = #{credentialDesc,jdbcType=VARCHAR},
  792. </if>
  793. <if test="contactsName != null">
  794. CONTACTS_NAME = #{contactsName,jdbcType=VARCHAR},
  795. </if>
  796. <if test="insertUsername != null">
  797. INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
  798. </if>
  799. <if test="insertTime != null">
  800. INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
  801. </if>
  802. <if test="updateUsername != null">
  803. UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
  804. </if>
  805. <if test="updateTime != null">
  806. UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
  807. </if>
  808. <if test="insertUpdateRemark != null">
  809. INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
  810. </if>
  811. <if test="deleted != null">
  812. DELETED = #{deleted,jdbcType=DECIMAL},
  813. </if>
  814. <if test="carrierType != null">
  815. CARRIER_TYPE = #{carrierType,jdbcType=VARCHAR},
  816. </if>
  817. <if test="carrierTransportCertificate != null">
  818. CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate,jdbcType=BLOB},
  819. </if>
  820. <if test="carrierBusinessLicense != null">
  821. CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense,jdbcType=BLOB},
  822. </if>
  823. <if test="carrierBusinessAblelicense != null">
  824. CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense,jdbcType=BLOB},
  825. </if>
  826. </set>
  827. where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
  828. </update>
  829. <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
  830. <include refid="select" />
  831. where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
  832. </select>
  833. <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
  834. <include refid="select" />
  835. <include refid="where" />
  836. </select>
  837. <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
  838. <include refid="select" />
  839. <include refid="whereLike" />
  840. </select>
  841. <insert id="batchInsert" parameterType="java.util.List">
  842. insert into RMS_CARRIER
  843. (CARRIER_ID,
  844. CARRIER_TRANSPORT_TYPE, CARRIER_NAME,
  845. CARRIER_ABBREVIATION, CARRIER_ADDRESS,
  846. CARRIER_BID_AREA_ID, CARRIER_BID_TIME,
  847. CARRIER_LEGAL_REPRESENTATIVE, REGISTER_NO,
  848. CARRIER_AGENT, CARRIER_CONTACT_NUMBER,
  849. CARRIER_FAX, CARRIER_ACCOUNT, CARRIER_ACCOUNT_BLANK,
  850. CARRIER_DUTY_PARAGRAPH, CARRIER_POSTAL_CODE,
  851. REGISTER_CAPITAL, BUSINESS_SCOPE,
  852. ANNUAL_DATE, COMPANY_STATUS_DESC,
  853. COMPANY_TYPE_DESC, OPERATION_PERIOD,
  854. REGISTER_DATE, REGISTER_ORGANIZATION,
  855. REGISTER_APTITUDES, CREDENTIAL_DESC,
  856. CONTACTS_NAME, INSERT_USERNAME,
  857. INSERT_TIME, UPDATE_USERNAME,
  858. UPDATE_TIME, INSERT_UPDATE_REMARK,
  859. DELETED, CARRIER_TYPE, CARRIER_TRANSPORT_CERTIFICATE,
  860. CARRIER_BUSINESS_LICENSE, CARRIER_BUSINESS_ABLELICENSE
  861. )
  862. ( <foreach collection="list" item="item" separator="union all">
  863. select
  864. #{item.carrierId,jdbcType=DECIMAL},
  865. #{item.carrierTransportType,jdbcType=VARCHAR}, #{item.carrierName,jdbcType=VARCHAR},
  866. #{item.carrierAbbreviation,jdbcType=VARCHAR}, #{item.carrierAddress,jdbcType=VARCHAR},
  867. #{item.carrierBidAreaId,jdbcType=DECIMAL}, #{item.carrierBidTime,jdbcType=TIMESTAMP},
  868. #{item.carrierLegalRepresentative,jdbcType=VARCHAR}, #{item.registerNo,jdbcType=VARCHAR},
  869. #{item.carrierAgent,jdbcType=VARCHAR}, #{item.carrierContactNumber,jdbcType=VARCHAR},
  870. #{item.carrierFax,jdbcType=VARCHAR}, #{item.carrierAccount,jdbcType=VARCHAR}, #{item.carrierAccountBlank,jdbcType=VARCHAR},
  871. #{item.carrierDutyParagraph,jdbcType=VARCHAR}, #{item.carrierPostalCode,jdbcType=VARCHAR},
  872. #{item.registerCapital,jdbcType=VARCHAR}, #{item.businessScope,jdbcType=VARCHAR},
  873. #{item.annualDate,jdbcType=VARCHAR}, #{item.companyStatusDesc,jdbcType=VARCHAR},
  874. #{item.companyTypeDesc,jdbcType=VARCHAR}, #{item.operationPeriod,jdbcType=VARCHAR},
  875. #{item.registerDate,jdbcType=TIMESTAMP}, #{item.registerOrganization,jdbcType=VARCHAR},
  876. #{item.registerAptitudes,jdbcType=VARCHAR}, #{item.credentialDesc,jdbcType=VARCHAR},
  877. #{item.contactsName,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},
  878. #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
  879. #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
  880. #{item.deleted,jdbcType=DECIMAL}, #{item.carrierType,jdbcType=VARCHAR}, #{item.carrierTransportCertificate,jdbcType=BLOB},
  881. #{item.carrierBusinessLicense,jdbcType=BLOB}, #{item.carrierBusinessAblelicense,jdbcType=BLOB}
  882. from dual
  883. </foreach> )
  884. </insert>
  885. <update id="batchUpdate" parameterType="java.util.List">
  886. update RMS_CARRIER
  887. set
  888. CARRIER_ID=
  889. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  890. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
  891. </foreach>
  892. ,CARRIER_TRANSPORT_TYPE=
  893. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  894. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierTransportType,jdbcType=VARCHAR}
  895. </foreach>
  896. ,CARRIER_NAME=
  897. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  898. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierName,jdbcType=VARCHAR}
  899. </foreach>
  900. ,CARRIER_ABBREVIATION=
  901. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  902. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAbbreviation,jdbcType=VARCHAR}
  903. </foreach>
  904. ,CARRIER_ADDRESS=
  905. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  906. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAddress,jdbcType=VARCHAR}
  907. </foreach>
  908. ,CARRIER_BID_AREA_ID=
  909. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  910. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBidAreaId,jdbcType=DECIMAL}
  911. </foreach>
  912. ,CARRIER_BID_TIME=
  913. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  914. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBidTime,jdbcType=TIMESTAMP}
  915. </foreach>
  916. ,CARRIER_LEGAL_REPRESENTATIVE=
  917. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  918. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierLegalRepresentative,jdbcType=VARCHAR}
  919. </foreach>
  920. ,REGISTER_NO=
  921. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  922. when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerNo,jdbcType=VARCHAR}
  923. </foreach>
  924. ,CARRIER_AGENT=
  925. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  926. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAgent,jdbcType=VARCHAR}
  927. </foreach>
  928. ,CARRIER_CONTACT_NUMBER=
  929. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  930. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierContactNumber,jdbcType=VARCHAR}
  931. </foreach>
  932. ,CARRIER_FAX=
  933. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  934. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierFax,jdbcType=VARCHAR}
  935. </foreach>
  936. ,CARRIER_ACCOUNT=
  937. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  938. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAccount,jdbcType=VARCHAR}
  939. </foreach>
  940. ,CARRIER_ACCOUNT_BLANK=
  941. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  942. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAccountBlank,jdbcType=VARCHAR}
  943. </foreach>
  944. ,CARRIER_DUTY_PARAGRAPH=
  945. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  946. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierDutyParagraph,jdbcType=VARCHAR}
  947. </foreach>
  948. ,CARRIER_POSTAL_CODE=
  949. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  950. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierPostalCode,jdbcType=VARCHAR}
  951. </foreach>
  952. ,REGISTER_CAPITAL=
  953. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  954. when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerCapital,jdbcType=VARCHAR}
  955. </foreach>
  956. ,BUSINESS_SCOPE=
  957. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  958. when #{item.carrierId,jdbcType=DECIMAL} then #{item.businessScope,jdbcType=VARCHAR}
  959. </foreach>
  960. ,ANNUAL_DATE=
  961. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  962. when #{item.carrierId,jdbcType=DECIMAL} then #{item.annualDate,jdbcType=VARCHAR}
  963. </foreach>
  964. ,COMPANY_STATUS_DESC=
  965. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  966. when #{item.carrierId,jdbcType=DECIMAL} then #{item.companyStatusDesc,jdbcType=VARCHAR}
  967. </foreach>
  968. ,COMPANY_TYPE_DESC=
  969. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  970. when #{item.carrierId,jdbcType=DECIMAL} then #{item.companyTypeDesc,jdbcType=VARCHAR}
  971. </foreach>
  972. ,OPERATION_PERIOD=
  973. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  974. when #{item.carrierId,jdbcType=DECIMAL} then #{item.operationPeriod,jdbcType=VARCHAR}
  975. </foreach>
  976. ,REGISTER_DATE=
  977. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  978. when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerDate,jdbcType=TIMESTAMP}
  979. </foreach>
  980. ,REGISTER_ORGANIZATION=
  981. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  982. when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerOrganization,jdbcType=VARCHAR}
  983. </foreach>
  984. ,REGISTER_APTITUDES=
  985. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  986. when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerAptitudes,jdbcType=VARCHAR}
  987. </foreach>
  988. ,CREDENTIAL_DESC=
  989. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  990. when #{item.carrierId,jdbcType=DECIMAL} then #{item.credentialDesc,jdbcType=VARCHAR}
  991. </foreach>
  992. ,CONTACTS_NAME=
  993. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  994. when #{item.carrierId,jdbcType=DECIMAL} then #{item.contactsName,jdbcType=VARCHAR}
  995. </foreach>
  996. ,INSERT_USERNAME=
  997. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  998. when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
  999. </foreach>
  1000. ,INSERT_TIME=
  1001. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  1002. when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
  1003. </foreach>
  1004. ,UPDATE_USERNAME=
  1005. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  1006. when #{item.carrierId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
  1007. </foreach>
  1008. ,UPDATE_TIME=
  1009. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  1010. when #{item.carrierId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
  1011. </foreach>
  1012. ,INSERT_UPDATE_REMARK=
  1013. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  1014. when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
  1015. </foreach>
  1016. ,DELETED=
  1017. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  1018. when #{item.carrierId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
  1019. </foreach>
  1020. ,CARRIER_TYPE=
  1021. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  1022. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierType,jdbcType=VARCHAR}
  1023. </foreach>
  1024. ,CARRIER_TRANSPORT_CERTIFICATE=
  1025. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  1026. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierTransportCertificate,jdbcType=BLOB}
  1027. </foreach>
  1028. ,CARRIER_BUSINESS_LICENSE=
  1029. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  1030. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBusinessLicense,jdbcType=BLOB}
  1031. </foreach>
  1032. ,CARRIER_BUSINESS_ABLELICENSE=
  1033. <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
  1034. when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBusinessAblelicense,jdbcType=BLOB}
  1035. </foreach>
  1036. where CARRIER_ID in
  1037. <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
  1038. #{item.carrierId,jdbcType=DECIMAL}
  1039. </foreach>
  1040. </update>
  1041. <delete id="batchDelete" parameterType="java.util.List">
  1042. delete from RMS_CARRIER
  1043. where CARRIER_ID in
  1044. <foreach close=")" collection="list" item="id" open="(" separator=",">
  1045. #{id}
  1046. </foreach>
  1047. </delete>
  1048. <!-- 友情提示!!!-->
  1049. <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
  1050. <!-- 下拉获取承运商信息-->
  1051. <select id="getCarrierList" parameterType="java.util.Map" resultType="java.util.Map">
  1052. SELECT * FROM
  1053. (
  1054. SELECT
  1055. RC.CARRIER_ID AS "carrierId",
  1056. RC.CARRIER_NAME AS "carrierName",
  1057. RC.CARRIER_TRANSPORT_CERTIFICATE AS "carrierTransportCertificate",
  1058. RC.CARRIER_BUSINESS_LICENSE AS "carrierBusinessLicense",
  1059. RC.CARRIER_BUSINESS_ABLELICENSE AS "carrierBusinessAblelicense",
  1060. RC.CARRIER_ABBREVIATION AS "carrierAbbreviation",
  1061. RC.CARRIER_ADDRESS AS "carrierAddress",
  1062. RC.REGISTER_NO AS "registerNo",
  1063. RC.CARRIER_BID_AREA_ID AS "carrierBidAreaId",
  1064. RC.CARRIER_LEGAL_REPRESENTATIVE AS "carrierLegalRepresentative",
  1065. RC.REGISTER_CAPITAL AS "registerCapital",
  1066. RC.BUSINESS_SCOPE AS "businessScope",
  1067. RC.ANNUAL_DATE AS "annualDate",
  1068. RC.CARRIER_TYPE AS "carrierType",
  1069. RC.COMPANY_STATUS_DESC AS "companyStatusDesc",
  1070. RC.COMPANY_TYPE_DESC AS "companyTypeDesc",
  1071. RC.OPERATION_PERIOD AS "operationPeriod",
  1072. RC.REGISTER_DATE AS "registerDate",
  1073. RC.REGISTER_ORGANIZATION AS "registerOrganization",
  1074. RC.REGISTER_APTITUDES AS "registerAptitudes",
  1075. RC.CARRIER_TRANSPORT_TYPE AS "carrierTransportType",
  1076. RC.CONTACTS_NAME AS "contactsName",
  1077. RC.CARRIER_CONTACT_NUMBER AS "carrierContactNumber"
  1078. FROM RMS_CARRIER RC
  1079. WHERE RC.DELETED != 1
  1080. ORDER BY RC.INSERT_TIME DESC
  1081. )
  1082. <where>
  1083. <if test="carrierName!= null">
  1084. and
  1085. <foreach collection="carrierName" item="item" open="(" separator="," close=")">
  1086. "carrierName" in #{item}
  1087. </foreach>
  1088. </if>
  1089. <if test="carrierTransportCertificate!= null">
  1090. and
  1091. <foreach collection="carrierTransportCertificate" item="item" open="(" separator="," close=")">
  1092. "carrierTransportCertificate" in #{item}
  1093. </foreach>
  1094. </if>
  1095. <if test="carrierBusinessLicense!= null">
  1096. and
  1097. <foreach collection="carrierBusinessLicense" item="item" open="(" separator="," close=")">
  1098. "carrierBusinessLicense" in #{item}
  1099. </foreach>
  1100. </if>
  1101. <if test="carrierBusinessAblelicense= null">
  1102. and
  1103. <foreach collection="carrierBusinessAblelicense" item="item" open="(" separator="," close=")">
  1104. "carrierBusinessAblelicense" in #{item}
  1105. </foreach>
  1106. </if>
  1107. <if test="carrierAbbreviation!= null">
  1108. and
  1109. <foreach collection="carrierAbbreviation" item="item" open="(" separator="," close=")">
  1110. "carrierAbbreviation" in #{item}
  1111. </foreach>
  1112. </if>
  1113. <if test="carrierAddress!= null">
  1114. and
  1115. <foreach collection="carrierAddress" item="item" open="(" separator="," close=")">
  1116. "carrierAddress" in #{item}
  1117. </foreach>
  1118. </if>
  1119. <if test="registerNo!= null">
  1120. and
  1121. <foreach collection="registerNo" item="item" open="(" separator="," close=")">
  1122. "registerNo" in #{item}
  1123. </foreach>
  1124. </if>
  1125. <if test="carrierBidAreaId!= null">
  1126. and
  1127. <foreach collection="carrierBidAreaId" item="item" open="(" separator="," close=")">
  1128. "carrierBidAreaId" in #{item}
  1129. </foreach>
  1130. </if>
  1131. <if test="carrierLegalRepresentative!= null">
  1132. and
  1133. <foreach collection="carrierLegalRepresentative" item="item" open="(" separator="," close=")">
  1134. "carrierLegalRepersentative" in #{item}
  1135. </foreach>
  1136. </if>
  1137. <if test="registerCapital!= null">
  1138. and
  1139. <foreach collection="registerCapital" item="item" open="(" separator="," close=")">
  1140. "registerCapital" in #{item}
  1141. </foreach>
  1142. </if>
  1143. <if test="businessScope!= null">
  1144. and
  1145. <foreach collection="businessScope" item="item" open="(" separator="," close=")">
  1146. "businessScope" in #{item}
  1147. </foreach>
  1148. </if>
  1149. <if test="annualDate!= null">
  1150. and
  1151. <foreach collection="annualDate" item="item" open="(" separator="," close=")">
  1152. "ennualDate" in #{item}
  1153. </foreach>
  1154. </if>
  1155. <if test="companyStatusDesc!= null">
  1156. and
  1157. <foreach collection="companyStatusDesc" item="item" open="(" separator="," close=")">
  1158. "companyStatusDesc" in #{item}
  1159. </foreach>
  1160. </if>
  1161. <if test="carrierType!= null">
  1162. and
  1163. <foreach collection="carrierType" item="item" open="(" separator="," close=")">
  1164. "carrierType" in #{item}
  1165. </foreach>
  1166. </if>
  1167. <if test="companyTypeDesc!= null">
  1168. and
  1169. <foreach collection="companyTypeDesc" item="item" open="(" separator="," close=")">
  1170. "companyTypeDesc" in #{item}
  1171. </foreach>
  1172. </if>
  1173. <if test="operationPeriod!= null">
  1174. and
  1175. <foreach collection="operationPeriod" item="item" open="(" separator="," close=")">
  1176. "operationPeriod" in #{item}
  1177. </foreach>
  1178. </if>
  1179. <if test="registerDate!= null">
  1180. and
  1181. <foreach collection="registerDate" item="item" open="(" separator="," close=")">
  1182. "registerDate" in #{item}
  1183. </foreach>
  1184. </if>
  1185. <if test="registerOrganization!= null">
  1186. and
  1187. <foreach collection="registerOrganization" item="item" open="(" separator="," close=")">
  1188. "registerOrganization" in #{item}
  1189. </foreach>
  1190. </if>
  1191. <if test="registerAptitudes!= null">
  1192. and
  1193. <foreach collection="registerAptitudes" item="item" open="(" separator="," close=")">
  1194. "registerAptitudes" in #{item}
  1195. </foreach>
  1196. </if>
  1197. <if test="carrierTransportType!= null">
  1198. and
  1199. <foreach collection="carrierTransportType" item="item" open="(" separator="," close=")">
  1200. "carrierTransportType" in #{item}
  1201. </foreach>
  1202. </if>
  1203. <if test="contactsName!= null">
  1204. and
  1205. <foreach collection="contactsName" item="item" open="(" separator="," close=")">
  1206. "contactsName" in #{item}
  1207. </foreach>
  1208. </if>
  1209. <if test="carrierContactNumber!= null">
  1210. and
  1211. <foreach collection="carrierContactNumber" item="item" open="(" separator="," close=")">
  1212. "carrierContactNumber" in #{item}
  1213. </foreach>
  1214. </if>
  1215. </where>
  1216. </select>
  1217. <!-- 根据id值获取承运商信息-->
  1218. <select id="selectCarrierById" resultType="java.util.LinkedHashMap">
  1219. select
  1220. RC.CARRIER_ID as "carrierId",
  1221. RC.CARRIER_NAME as "carrierName",
  1222. RC.CARRIER_TRANSPORT_CERTIFICATE as "carrierTransportCertificate",
  1223. RC.CARRIER_BUSINESS_LICENSE as "carrierBusinessLicense",
  1224. RC.CARRIER_BUSINESS_ABLELICENSE as "carrierBusinessAblelicense",
  1225. RC.CARRIER_ABBREVIATION as "carrierAbbreviation",
  1226. RC.CARRIER_ADDRESS as "carrierAddress",
  1227. RC.REGISTER_NO as "registerNo",
  1228. RC.CARRIER_BID_AREA_ID as "carrierBidAreaId",
  1229. RC.CARRIER_LEGAL_REPRESENTATIVE as "carrierLegalRepresentative",
  1230. RC.REGISTER_CAPITAL as "registerCapital",
  1231. RC.BUSINESS_SCOPE as "businessScope",
  1232. RC.ANNUAL_DATE as "annualDate",
  1233. RC.CARRIER_TYPE as "carrierType",
  1234. RC.COMPANY_STATUS_DESC as "companyStatusDesc",
  1235. RC.COMPANY_TYPE_DESC as "companyTypeDesc",
  1236. RC.OPERATION_PERIOD as "operationPeriod",
  1237. RC.REGISTER_DATE as "registerDate",
  1238. RC.REGISTER_ORGANIZATION as "registerOrganization",
  1239. RC.REGISTER_APTITUDES as "registerAptitudes",
  1240. RC.CARRIER_TRANSPORT_TYPE as "carrierTransportType",
  1241. RC.CONTACTS_NAME as "contactsName",
  1242. RC.CARRIER_CONTACT_NUMBER as "carrierContactNumber"
  1243. from RMS_CARRIER RC
  1244. WHERE RC.CARRIER_ID=#{id}
  1245. </select>
  1246. </mapper>