RmsCarrierMapper.xml 58 KB

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