RmsCarrierMapper.xml 61 KB

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