RmsShipperMapper.xml 52 KB

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