RmsShipperMapper.xml 56 KB

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