RmsCarrierMapper.xml 60 KB

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